mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
QL: insert placeholder (that compiles) in localDefinitions.ql
This commit is contained in:
committed by
GitHub
parent
fe6595ec02
commit
571b949a06
@@ -8,13 +8,13 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import codeql.IDEContextual
|
import codeql.IDEContextual
|
||||||
import codeql_ql.AST
|
import codeql_ql.ast.internal.TreeSitter::Generated
|
||||||
|
|
||||||
external string selectedSourceFile();
|
external string selectedSourceFile();
|
||||||
|
|
||||||
from AstNode e, Variable def, string kind
|
from AstNode e, Variable def, string kind
|
||||||
where
|
where
|
||||||
e = def.getAnAccess() and
|
none() and // e = def.getAnAccess() and // TODO: Get binding to work.
|
||||||
kind = "local variable" and
|
kind = "local variable" and
|
||||||
e.getLocation().getFile() = getFileBySourceArchiveName(selectedSourceFile())
|
e.getLocation().getFile() = getFileBySourceArchiveName(selectedSourceFile())
|
||||||
select e, def, kind
|
select e, def, kind
|
||||||
|
|||||||
Reference in New Issue
Block a user