mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
This will allow the extractor to emit class(id, ...) when all it knows about a class is its name, due to not having it available on the classpath. Previously it would have had to guess whether it belonged to @class or @interface, possibly introducing an inconsistency.
12 lines
396 B
Plaintext
12 lines
396 B
Plaintext
class ClassOrInterface extends @classorinterface {
|
|
string toString() { result = "class-or-interface" }
|
|
}
|
|
|
|
class Package extends @package {
|
|
string toString() { result = "package" }
|
|
}
|
|
|
|
from ClassOrInterface id, string nodeName, Package parentId, ClassOrInterface sourceId
|
|
where classes_or_interfaces(id, nodeName, parentId, sourceId) and isInterface(id)
|
|
select id, nodeName, parentId, sourceId
|