@@ -47,7 +47,7 @@ module API {
4747 * Gets a call to a method on the receiver represented by this API component.
4848 */
4949 DataFlow:: CallNode getAMethodCall ( string method ) {
50- result = getReturn ( method ) .getAnImmediateUse ( )
50+ result = this . getReturn ( method ) .getAnImmediateUse ( )
5151 }
5252
5353 /**
@@ -60,21 +60,21 @@ module API {
6060 */
6161 bindingset [ m]
6262 bindingset [ result ]
63- Node getMember ( string m ) { result = getASuccessor ( Label:: member ( m ) ) }
63+ Node getMember ( string m ) { result = this . getASuccessor ( Label:: member ( m ) ) }
6464
6565 /**
6666 * Gets a node representing a member of this API component where the name of the member is
6767 * not known statically.
6868 */
69- Node getUnknownMember ( ) { result = getASuccessor ( Label:: unknownMember ( ) ) }
69+ Node getUnknownMember ( ) { result = this . getASuccessor ( Label:: unknownMember ( ) ) }
7070
7171 /**
7272 * Gets a node representing a member of this API component where the name of the member may
7373 * or may not be known statically.
7474 */
7575 Node getAMember ( ) {
76- result = getASuccessor ( Label:: member ( _) ) or
77- result = getUnknownMember ( )
76+ result = this . getASuccessor ( Label:: member ( _) ) or
77+ result = this . getUnknownMember ( )
7878 }
7979
8080 /**
@@ -88,28 +88,30 @@ module API {
8888 * This predicate may have multiple results when there are multiple constructor calls invoking this API component.
8989 * Consider using `getAnInstantiation()` if there is a need to distinguish between individual constructor calls.
9090 */
91- Node getInstance ( ) { result = getASuccessor ( Label:: instance ( ) ) }
91+ Node getInstance ( ) { result = this . getASuccessor ( Label:: instance ( ) ) }
9292
9393 /**
9494 * Gets a node representing the result of calling a method on the receiver represented by this node.
9595 */
96- Node getReturn ( string method ) { result = getASuccessor ( Label:: return ( method ) ) }
96+ Node getReturn ( string method ) { result = this . getASuccessor ( Label:: return ( method ) ) }
9797
9898 /**
9999 * Gets a `new` call to the function represented by this API component.
100100 */
101- DataFlow:: Node getAnInstantiation ( ) { result = getInstance ( ) .getAnImmediateUse ( ) }
101+ DataFlow:: Node getAnInstantiation ( ) { result = this . getInstance ( ) .getAnImmediateUse ( ) }
102102
103103 /**
104104 * Gets a node representing a subclass of the class represented by this node.
105105 */
106- Node getASubclass ( ) { result = getASuccessor ( Label:: subclass ( ) ) }
106+ Node getASubclass ( ) { result = this . getASuccessor ( Label:: subclass ( ) ) }
107107
108108 /**
109109 * Gets a string representation of the lexicographically least among all shortest access paths
110110 * from the root to this node.
111111 */
112- string getPath ( ) { result = min ( string p | p = getAPath ( Impl:: distanceFromRoot ( this ) ) | p ) }
112+ string getPath ( ) {
113+ result = min ( string p | p = this .getAPath ( Impl:: distanceFromRoot ( this ) ) | p )
114+ }
113115
114116 /**
115117 * Gets a node such that there is an edge in the API graph between this node and the other
@@ -127,13 +129,13 @@ module API {
127129 * Gets a node such that there is an edge in the API graph between this node and the other
128130 * one.
129131 */
130- Node getAPredecessor ( ) { result = getAPredecessor ( _) }
132+ Node getAPredecessor ( ) { result = this . getAPredecessor ( _) }
131133
132134 /**
133135 * Gets a node such that there is an edge in the API graph between that other node and
134136 * this one.
135137 */
136- Node getASuccessor ( ) { result = getASuccessor ( _) }
138+ Node getASuccessor ( ) { result = this . getASuccessor ( _) }
137139
138140 /**
139141 * Gets the data-flow node that gives rise to this node, if any.
@@ -146,7 +148,7 @@ module API {
146148 or
147149 // For nodes that do not have a meaningful location, `path` is the empty string and all other
148150 // parameters are zero.
149- not exists ( getInducingNode ( ) ) and
151+ not exists ( this . getInducingNode ( ) ) and
150152 result instanceof EmptyLocation
151153 }
152154
@@ -189,7 +191,7 @@ module API {
189191 class Use extends Node , Impl:: MkUse {
190192 override string toString ( ) {
191193 exists ( string type | type = "Use " |
192- result = type + getPath ( )
194+ result = type + this . getPath ( )
193195 or
194196 not exists ( this .getPath ( ) ) and result = type + "with no path"
195197 )
0 commit comments