mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
JavaScript: Autoformat all QL files.
This commit is contained in:
@@ -14,8 +14,9 @@ import javascript
|
||||
private import semmle.javascript.dataflow.InferredTypes
|
||||
|
||||
from InvokeExpr invk, DataFlow::AnalyzedNode callee
|
||||
where callee.asExpr() = invk.getCallee() and
|
||||
forex (InferredType tp | tp = callee.getAType() | tp != TTFunction() and tp != TTClass()) and
|
||||
not invk.isAmbient() and
|
||||
not invk instanceof OptionalUse
|
||||
select invk, "Callee is not a function: it has type " + callee.ppTypes() + "."
|
||||
where
|
||||
callee.asExpr() = invk.getCallee() and
|
||||
forex(InferredType tp | tp = callee.getAType() | tp != TTFunction() and tp != TTClass()) and
|
||||
not invk.isAmbient() and
|
||||
not invk instanceof OptionalUse
|
||||
select invk, "Callee is not a function: it has type " + callee.ppTypes() + "."
|
||||
|
||||
Reference in New Issue
Block a user