mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +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_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
|
||||
|
||||
Reference in New Issue
Block a user