QL: insert placeholder (that compiles) in localDefinitions.ql

This commit is contained in:
Erik Krogh Kristensen
2021-05-26 12:28:42 +00:00
committed by GitHub
parent fe6595ec02
commit 571b949a06

View File

@@ -8,13 +8,13 @@
*/
import codeql.IDEContextual
import codeql_ql.AST
import codeql_ql.ast.internal.TreeSitter::Generated
external string selectedSourceFile();
from AstNode e, Variable def, string kind
where
e = def.getAnAccess() and
none() and // e = def.getAnAccess() and // TODO: Get binding to work.
kind = "local variable" and
e.getLocation().getFile() = getFileBySourceArchiveName(selectedSourceFile())
select e, def, kind