@@ -61,17 +61,15 @@ class ParameterNode extends DataFlow::SourceNode {
6161 * new Array(16)
6262 * ```
6363 */
64- class InvokeNode extends DataFlow:: SourceNode {
65- InvokeNode ( ) { this instanceof DataFlow:: Impl:: InvokeNodeDef }
66-
64+ class InvokeNode extends DataFlow:: SourceNode instanceof DataFlow:: Impl:: InvokeNodeDef {
6765 /** Gets the syntactic invoke expression underlying this function invocation. */
68- InvokeExpr getInvokeExpr ( ) { result = this . ( DataFlow :: Impl :: InvokeNodeDef ) .getInvokeExpr ( ) }
66+ InvokeExpr getInvokeExpr ( ) { result = super .getInvokeExpr ( ) }
6967
7068 /** Gets the name of the function or method being invoked, if it can be determined. */
71- string getCalleeName ( ) { result = this . ( DataFlow :: Impl :: InvokeNodeDef ) .getCalleeName ( ) }
69+ string getCalleeName ( ) { result = super .getCalleeName ( ) }
7270
7371 /** Gets the data flow node specifying the function to be called. */
74- DataFlow:: Node getCalleeNode ( ) { result = this . ( DataFlow :: Impl :: InvokeNodeDef ) .getCalleeNode ( ) }
72+ DataFlow:: Node getCalleeNode ( ) { result = super .getCalleeNode ( ) }
7573
7674 /**
7775 * Gets the data flow node corresponding to the `i`th argument of this invocation.
@@ -92,10 +90,10 @@ class InvokeNode extends DataFlow::SourceNode {
9290 * but the position of `z` cannot be determined, hence there are no first and second
9391 * argument nodes.
9492 */
95- DataFlow:: Node getArgument ( int i ) { result = this . ( DataFlow :: Impl :: InvokeNodeDef ) .getArgument ( i ) }
93+ DataFlow:: Node getArgument ( int i ) { result = super .getArgument ( i ) }
9694
9795 /** Gets the data flow node corresponding to an argument of this invocation. */
98- DataFlow:: Node getAnArgument ( ) { result = this . ( DataFlow :: Impl :: InvokeNodeDef ) .getAnArgument ( ) }
96+ DataFlow:: Node getAnArgument ( ) { result = super .getAnArgument ( ) }
9997
10098 /** Gets the data flow node corresponding to the last argument of this invocation. */
10199 DataFlow:: Node getLastArgument ( ) { result = getArgument ( getNumArgument ( ) - 1 ) }
@@ -112,12 +110,10 @@ class InvokeNode extends DataFlow::SourceNode {
112110 * ```
113111 * .
114112 */
115- DataFlow:: Node getASpreadArgument ( ) {
116- result = this .( DataFlow:: Impl:: InvokeNodeDef ) .getASpreadArgument ( )
117- }
113+ DataFlow:: Node getASpreadArgument ( ) { result = super .getASpreadArgument ( ) }
118114
119115 /** Gets the number of arguments of this invocation, if it can be determined. */
120- int getNumArgument ( ) { result = this . ( DataFlow :: Impl :: InvokeNodeDef ) .getNumArgument ( ) }
116+ int getNumArgument ( ) { result = super .getNumArgument ( ) }
121117
122118 Function getEnclosingFunction ( ) { result = getBasicBlock ( ) .getContainer ( ) }
123119
@@ -258,15 +254,13 @@ class InvokeNode extends DataFlow::SourceNode {
258254 * Math.abs(x)
259255 * ```
260256 */
261- class CallNode extends InvokeNode {
262- CallNode ( ) { this instanceof DataFlow:: Impl:: CallNodeDef }
263-
257+ class CallNode extends InvokeNode instanceof DataFlow:: Impl:: CallNodeDef {
264258 /**
265259 * Gets the data flow node corresponding to the receiver expression of this method call.
266260 *
267261 * For example, the receiver of `x.m()` is `x`.
268262 */
269- DataFlow:: Node getReceiver ( ) { result = this . ( DataFlow :: Impl :: CallNodeDef ) .getReceiver ( ) }
263+ DataFlow:: Node getReceiver ( ) { result = super .getReceiver ( ) }
270264}
271265
272266/**
@@ -279,11 +273,9 @@ class CallNode extends InvokeNode {
279273 * Math.abs(x)
280274 * ```
281275 */
282- class MethodCallNode extends CallNode {
283- MethodCallNode ( ) { this instanceof DataFlow:: Impl:: MethodCallNodeDef }
284-
276+ class MethodCallNode extends CallNode instanceof DataFlow:: Impl:: MethodCallNodeDef {
285277 /** Gets the name of the invoked method, if it can be determined. */
286- string getMethodName ( ) { result = this . ( DataFlow :: Impl :: MethodCallNodeDef ) .getMethodName ( ) }
278+ string getMethodName ( ) { result = super .getMethodName ( ) }
287279
288280 /**
289281 * Holds if this data flow node calls method `methodName` on receiver node `receiver`.
0 commit comments