File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,12 @@ class CallNode extends LocalSourceNode {
61
61
62
62
/** Gets the name of the the method called by the method call (if any) corresponding to this data-flow node */
63
63
string getMethodName ( ) { result = node .getExpr ( ) .( MethodCall ) .getMethodName ( ) }
64
+
65
+ /** Gets the number of arguments of this call. */
66
+ int getNumberOfArguments ( ) { result = node .getNumberOfArguments ( ) }
67
+
68
+ /** Gets the block of this call. */
69
+ Node getBlock ( ) { result .asExpr ( ) = node .getBlock ( ) }
64
70
}
65
71
66
72
/**
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ private class ConfigSourceNode extends DataFlow::LocalSourceNode {
68
68
configCall = this .asExpr ( ) .getExpr ( )
69
69
|
70
70
configureCallNode = getAConfigureCallNode ( ) and
71
- block = configureCallNode .asExpr ( ) .getExpr ( ) .( MethodCall ) . getBlock ( ) and
71
+ block = configureCallNode .getBlock ( ) .asExpr ( ) .getExpr ( ) and
72
72
configCall .getParent + ( ) = block and
73
73
configCall .getMethodName ( ) = "config"
74
74
)
@@ -84,8 +84,6 @@ private class CallAgainstConfig extends DataFlow::CallNode {
84
84
CallAgainstConfig ( ) { this .getReceiver ( ) instanceof ConfigNode }
85
85
86
86
MethodCall getCall ( ) { result = this .asExpr ( ) .getExpr ( ) }
87
-
88
- Block getBlock ( ) { result = this .getCall ( ) .getBlock ( ) }
89
87
}
90
88
91
89
private class ActionControllerConfigNode extends DataFlow:: Node {
Original file line number Diff line number Diff line change @@ -26,8 +26,6 @@ class KernelMethodCall extends DataFlow::CallNode {
26
26
)
27
27
)
28
28
}
29
-
30
- int getNumberOfArguments ( ) { result = methodCall .getNumberOfArguments ( ) }
31
29
}
32
30
33
31
/**
You can’t perform that action at this time.
0 commit comments