mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
Dynamic: Sync ApiGraphModels.qll
This commit is contained in:
@@ -267,7 +267,7 @@ private predicate summaryModel(string type, string path, string input, string ou
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Holds if a type model exists for the given parameters. */
|
/** Holds if a type model exists for the given parameters. */
|
||||||
private predicate typeModel(string type1, string type2, string path) {
|
predicate typeModel(string type1, string type2, string path) {
|
||||||
exists(string row |
|
exists(string row |
|
||||||
typeModel(row) and
|
typeModel(row) and
|
||||||
row.splitAt(";", 0) = type1 and
|
row.splitAt(";", 0) = type1 and
|
||||||
@@ -435,7 +435,7 @@ private API::Node getNodeFromType(string type) {
|
|||||||
* Gets the API node identified by the first `n` tokens of `path` in the given `(type, path)` tuple.
|
* Gets the API node identified by the first `n` tokens of `path` in the given `(type, path)` tuple.
|
||||||
*/
|
*/
|
||||||
pragma[nomagic]
|
pragma[nomagic]
|
||||||
private API::Node getNodeFromPath(string type, AccessPath path, int n) {
|
API::Node getNodeFromPath(string type, AccessPath path, int n) {
|
||||||
isRelevantFullPath(type, path) and
|
isRelevantFullPath(type, path) and
|
||||||
(
|
(
|
||||||
n = 0 and
|
n = 0 and
|
||||||
|
|||||||
@@ -267,7 +267,7 @@ private predicate summaryModel(string type, string path, string input, string ou
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Holds if a type model exists for the given parameters. */
|
/** Holds if a type model exists for the given parameters. */
|
||||||
private predicate typeModel(string type1, string type2, string path) {
|
predicate typeModel(string type1, string type2, string path) {
|
||||||
exists(string row |
|
exists(string row |
|
||||||
typeModel(row) and
|
typeModel(row) and
|
||||||
row.splitAt(";", 0) = type1 and
|
row.splitAt(";", 0) = type1 and
|
||||||
@@ -435,7 +435,7 @@ private API::Node getNodeFromType(string type) {
|
|||||||
* Gets the API node identified by the first `n` tokens of `path` in the given `(type, path)` tuple.
|
* Gets the API node identified by the first `n` tokens of `path` in the given `(type, path)` tuple.
|
||||||
*/
|
*/
|
||||||
pragma[nomagic]
|
pragma[nomagic]
|
||||||
private API::Node getNodeFromPath(string type, AccessPath path, int n) {
|
API::Node getNodeFromPath(string type, AccessPath path, int n) {
|
||||||
isRelevantFullPath(type, path) and
|
isRelevantFullPath(type, path) and
|
||||||
(
|
(
|
||||||
n = 0 and
|
n = 0 and
|
||||||
|
|||||||
Reference in New Issue
Block a user