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
|
||||
)
|
||||
or
|
||||
exists(string callbackName, string index |
|
||||
exists(string callbackName, int index |
|
||||
node =
|
||||
getNamedParameter(previousNode.getASuccessor("param " + index).getMember(callbackName),
|
||||
paramName) and
|
||||
index != "-1" and // ignore receiver
|
||||
getNamedParameter(previousNode
|
||||
.getASuccessor(API::Label::parameter(index))
|
||||
.getMember(callbackName), paramName) and
|
||||
index != -1 and // ignore receiver
|
||||
if includeStructuralInfo = true
|
||||
then
|
||||
accessPath =
|
||||
|
||||
Reference in New Issue
Block a user