File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
java/ql/src/utils/stub-generator Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -285,14 +285,19 @@ private string stubQualifier(RefType t) {
285
285
else result = ""
286
286
}
287
287
288
+ pragma [ nomagic]
289
+ private predicate needsPackageNameHelper ( RefType t , GeneratedTopLevel top , string name ) {
290
+ t .getSourceDeclaration ( ) = [ getAReferencedType ( top ) , top ] .getSourceDeclaration ( ) and
291
+ name = t .getName ( )
292
+ }
293
+
288
294
/**
289
295
* Holds if `t` may clash with another type of the same name, so should be referred to using the fully qualified name
290
296
*/
291
297
private predicate needsPackageName ( RefType t ) {
292
- exists ( GeneratedTopLevel top , RefType other |
293
- t .getSourceDeclaration ( ) = [ getAReferencedType ( top ) , top ] .getSourceDeclaration ( ) and
294
- other .getSourceDeclaration ( ) = [ getAReferencedType ( top ) , top ] .getSourceDeclaration ( ) and
295
- t .getName ( ) = other .getName ( ) and
298
+ exists ( GeneratedTopLevel top , RefType other , string name |
299
+ needsPackageNameHelper ( t , top , name ) and
300
+ needsPackageNameHelper ( other , top , name ) and
296
301
t != other
297
302
)
298
303
}
You can’t perform that action at this time.
0 commit comments