Skip to content

Commit 3cf9e3e

Browse files
committed
Py/js/ruby: sync files
1 parent 18f4b75 commit 3cf9e3e

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

javascript/ql/lib/semmle/javascript/frameworks/data/internal/ApiGraphModels.qll

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,15 @@ module ModelOutput {
643643
baseNode = getInvocationFromPath(type, path)
644644
}
645645

646+
/**
647+
* Holds if a `baseNode` is an invocation identified by the `type,path` part of a summary row.
648+
*/
649+
cached
650+
predicate resolvedSummaryRefBase(string type, string path, API::Node baseNode) {
651+
summaryModel(type, path, _, _, _) and
652+
baseNode = getNodeFromPath(type, path)
653+
}
654+
646655
/**
647656
* Holds if `node` is seen as an instance of `type` due to a type definition
648657
* contributed by a CSV model.

ruby/ql/lib/codeql/ruby/frameworks/data/internal/ApiGraphModels.qll

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,15 @@ module ModelOutput {
643643
baseNode = getInvocationFromPath(type, path)
644644
}
645645

646+
/**
647+
* Holds if a `baseNode` is an invocation identified by the `type,path` part of a summary row.
648+
*/
649+
cached
650+
predicate resolvedSummaryRefBase(string type, string path, API::Node baseNode) {
651+
summaryModel(type, path, _, _, _) and
652+
baseNode = getNodeFromPath(type, path)
653+
}
654+
646655
/**
647656
* Holds if `node` is seen as an instance of `type` due to a type definition
648657
* contributed by a CSV model.

0 commit comments

Comments
 (0)