mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
JS: Update use of API graphs library in features for ML-powered queries
Co-authored-by: Aditya Sharad <adityasharad@github.com>
This commit is contained in:
@@ -247,11 +247,12 @@ private module AccessPaths {
|
|||||||
else accessPath = previousAccessPath + " " + paramName
|
else accessPath = previousAccessPath + " " + paramName
|
||||||
)
|
)
|
||||||
or
|
or
|
||||||
exists(string callbackName, string index |
|
exists(string callbackName, int index |
|
||||||
node =
|
node =
|
||||||
getNamedParameter(previousNode.getASuccessor("param " + index).getMember(callbackName),
|
getNamedParameter(previousNode
|
||||||
paramName) and
|
.getASuccessor(API::Label::parameter(index))
|
||||||
index != "-1" and // ignore receiver
|
.getMember(callbackName), paramName) and
|
||||||
|
index != -1 and // ignore receiver
|
||||||
if includeStructuralInfo = true
|
if includeStructuralInfo = true
|
||||||
then
|
then
|
||||||
accessPath =
|
accessPath =
|
||||||
|
|||||||
Reference in New Issue
Block a user