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 {
6161
6262 /** Gets the name of the the method called by the method call (if any) corresponding to this data-flow node */
6363 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 ( ) }
6470}
6571
6672/**
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ private class ConfigSourceNode extends DataFlow::LocalSourceNode {
6868 configCall = this .asExpr ( ) .getExpr ( )
6969 |
7070 configureCallNode = getAConfigureCallNode ( ) and
71- block = configureCallNode .asExpr ( ) .getExpr ( ) .( MethodCall ) . getBlock ( ) and
71+ block = configureCallNode .getBlock ( ) .asExpr ( ) .getExpr ( ) and
7272 configCall .getParent + ( ) = block and
7373 configCall .getMethodName ( ) = "config"
7474 )
@@ -84,8 +84,6 @@ private class CallAgainstConfig extends DataFlow::CallNode {
8484 CallAgainstConfig ( ) { this .getReceiver ( ) instanceof ConfigNode }
8585
8686 MethodCall getCall ( ) { result = this .asExpr ( ) .getExpr ( ) }
87-
88- Block getBlock ( ) { result = this .getCall ( ) .getBlock ( ) }
8987}
9088
9189private class ActionControllerConfigNode extends DataFlow:: Node {
Original file line number Diff line number Diff line change @@ -26,8 +26,6 @@ class KernelMethodCall extends DataFlow::CallNode {
2626 )
2727 )
2828 }
29-
30- int getNumberOfArguments ( ) { result = methodCall .getNumberOfArguments ( ) }
3129}
3230
3331/**
You can’t perform that action at this time.
0 commit comments