mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
QL: insert placeholder (that compiles) in localReferences.ql
This commit is contained in:
committed by
GitHub
parent
530df51e8f
commit
fe6595ec02
@@ -8,14 +8,13 @@
|
||||
*/
|
||||
|
||||
import codeql.IDEContextual
|
||||
import codeql_ql.AST
|
||||
import codeql_ql.ast.Variable
|
||||
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
|
||||
def.getLocation().getFile() = getFileBySourceArchiveName(selectedSourceFile())
|
||||
select e, def, kind
|
||||
|
||||
Reference in New Issue
Block a user