mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
add JS support the using keyword
This commit is contained in:
@@ -39,6 +39,8 @@ predicate isSymbolicConstant(Variable v) {
|
||||
exists(VarDef vd | vd = getSingleDef(v) |
|
||||
vd.(VariableDeclarator).getDeclStmt() instanceof ConstDeclStmt
|
||||
or
|
||||
vd.(VariableDeclarator).getDeclStmt() instanceof UsingDeclStmt
|
||||
or
|
||||
isConstant(vd.getSource())
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user