File tree 3 files changed +9
-5
lines changed
3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -389,6 +389,7 @@ module ModConsistency {
389
389
) >= 2 and
390
390
// paramerized modules are not treated nicely, so we ignore them here.
391
391
not i .getResolvedModule ( ) .getEnclosing * ( ) .asModule ( ) .hasParameter ( _, _, _) and
392
+ not i .getResolvedModule ( ) .asModule ( ) .hasAnnotation ( "signature" ) and
392
393
not i .getLocation ( )
393
394
.getFile ( )
394
395
.getAbsolutePath ( )
Original file line number Diff line number Diff line change @@ -211,7 +211,9 @@ module PredConsistency {
211
211
c > 1 and
212
212
resolvePredicateExpr ( pe , p ) and
213
213
// parameterized modules are expected to resolve to multiple.
214
- not exists ( ClasslessPredicate sig | not sig .isSignature ( ) and resolvePredicateExpr ( pe , sig ) )
214
+ not exists ( Predicate sig | sig .getParent * ( ) .hasAnnotation ( "signature" ) |
215
+ resolvePredicateExpr ( pe , sig )
216
+ )
215
217
}
216
218
217
219
query predicate multipleResolveCall ( Call call , int c , PredicateOrBuiltin p ) {
@@ -227,6 +229,6 @@ module PredConsistency {
227
229
c > 1 and
228
230
resolveCall ( call , p ) and
229
231
// parameterized modules are expected to resolve to multiple.
230
- not exists ( ClasslessPredicate sig | not sig .isSignature ( ) and resolveCall ( call , sig ) )
232
+ not exists ( Predicate sig | sig .getParent * ( ) . hasAnnotation ( "signature" ) | resolveCall ( call , sig ) )
231
233
}
232
234
}
Original file line number Diff line number Diff line change 24
24
PredConsistency:: noResolvePredicateExpr ( node ) and
25
25
msg = "PredConsistency::noResolvePredicateExpr"
26
26
or
27
- PredConsistency:: multipleResolveCall ( node , _, _) and
28
- msg = "PredConsistency::multipleResolveCall"
29
- or
27
+ // This went out the window with parameterised modules.
28
+ // PredConsistency::multipleResolveCall(node, _, _) and
29
+ // msg = "PredConsistency::multipleResolveCall"
30
+ // or
30
31
PredConsistency:: multipleResolvePredicateExpr ( node , _, _) and
31
32
msg = "PredConsistency::multipleResolvePredicateExpr"
32
33
or
You can’t perform that action at this time.
0 commit comments