mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Initial support for source models
This commit is contained in:
@@ -889,10 +889,17 @@ module Private {
|
||||
* model.
|
||||
*/
|
||||
predicate isSourceNode(InterpretNode node, string kind) {
|
||||
exists(InterpretNode ref, string output |
|
||||
sourceElementRef(ref, output, kind) and
|
||||
interpretOutput(output, 0, ref, node)
|
||||
)
|
||||
exists(InterpretNode ref, string output | isSourceNode(ref, node, output, kind))
|
||||
}
|
||||
|
||||
// TODO: I wonder if this is actually the interface we want to expose.
|
||||
predicate isSourceNode(InterpretNode node, string output, string kind) {
|
||||
exists(InterpretNode ref | isSourceNode(ref, node, output, kind))
|
||||
}
|
||||
|
||||
predicate isSourceNode(InterpretNode ref, InterpretNode node, string output, string kind) {
|
||||
sourceElementRef(ref, output, kind) and
|
||||
interpretOutput(output, 0, ref, node)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user