We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d90fca3 commit dcd81b5Copy full SHA for dcd81b5
queries/undeclared-action-input.ql
@@ -36,14 +36,16 @@ class ActionDeclaration extends File {
36
}
37
38
Expr getAFunctionChildExpr(Function f) {
39
- result = f.getBody().getAChildStmt*().getAChildExpr*()
+ result.getContainer() = f
40
41
42
/*
43
* Result is a function that is called from the body of the given function `f`
44
*/
45
Function calledBy(Function f) {
46
result = getAFunctionChildExpr(f).(InvokeExpr).getResolvedCallee()
47
+ or
48
+ result.getEnclosingContainer() = f // assume outer function causes inner function to be called
49
50
51
class GetInputMethodCallExpr extends MethodCallExpr {
0 commit comments