@@ -58,25 +58,26 @@ class ExternalApi extends DataFlowDispatch::DataFlowCallable {
5858 */
5959 string getInfo ( ) { result = this .getInfoPrefix ( ) + "#" + this .getSignature ( ) }
6060
61- /** Gets a node that is an input to a call to this API. */
62- private ArgumentNode getAnInput ( ) {
63- exists ( DispatchCall call |
64- result .getCall ( ) .( DataFlowDispatch:: NonDelegateDataFlowCall ) .getDispatchCall ( ) = call
65- |
66- this = call .getADynamicTarget ( ) .getUnboundDeclaration ( )
61+ /** Gets a call to this API callable. */
62+ DispatchCall getACall ( ) {
63+ exists ( DataFlowDispatch:: NonDelegateDataFlowCall call | call .getDispatchCall ( ) = result |
64+ this = result .getADynamicTarget ( ) .getUnboundDeclaration ( )
6765 or
68- this = call .getAStaticTarget ( ) .getUnboundDeclaration ( )
66+ this = result .getAStaticTarget ( ) .getUnboundDeclaration ( )
6967 )
7068 }
7169
70+ /** Gets a node that is an input to a call to this API. */
71+ private ArgumentNode getAnInput ( ) {
72+ result .getCall ( ) .( DataFlowDispatch:: NonDelegateDataFlowCall ) .getDispatchCall ( ) = this .getACall ( )
73+ }
74+
7275 /** Gets a node that is an output from a call to this API. */
7376 private DataFlow:: Node getAnOutput ( ) {
7477 exists ( DataFlowDispatch:: NonDelegateDataFlowCall call , DataFlowImplCommon:: ReturnKindExt ret |
7578 result = ret .getAnOutNode ( call )
7679 |
77- this = call .getDispatchCall ( ) .getADynamicTarget ( ) .getUnboundDeclaration ( )
78- or
79- this = call .getDispatchCall ( ) .getAStaticTarget ( ) .getUnboundDeclaration ( )
80+ this .getACall ( ) = call .getDispatchCall ( )
8081 )
8182 }
8283
0 commit comments