@@ -17,33 +17,33 @@ import IDEContextual
1717 */
1818private class LocationOverridingMethodAccess extends MethodAccess {
1919 override predicate hasLocationInfo ( string path , int sl , int sc , int el , int ec ) {
20- exists ( MemberRefExpr e | e .getReferencedCallable ( ) = getMethod ( ) |
20+ exists ( MemberRefExpr e | e .getReferencedCallable ( ) = this . getMethod ( ) |
2121 exists ( int elRef , int ecRef | e .hasLocationInfo ( path , _, _, elRef , ecRef ) |
2222 sl = elRef and
23- sc = ecRef - getMethod ( ) .getName ( ) .length ( ) + 1 and
23+ sc = ecRef - this . getMethod ( ) .getName ( ) .length ( ) + 1 and
2424 el = elRef and
2525 ec = ecRef
2626 )
2727 )
2828 or
29- not exists ( MemberRefExpr e | e .getReferencedCallable ( ) = getMethod ( ) ) and
29+ not exists ( MemberRefExpr e | e .getReferencedCallable ( ) = this . getMethod ( ) ) and
3030 exists ( int slSuper , int scSuper , int elSuper , int ecSuper |
3131 super .hasLocationInfo ( path , slSuper , scSuper , elSuper , ecSuper )
3232 |
3333 (
34- if exists ( getTypeArgument ( _) )
34+ if exists ( this . getTypeArgument ( _) )
3535 then
3636 exists ( Location locTypeArg |
37- locTypeArg = getTypeArgument ( count ( getTypeArgument ( _) ) - 1 ) .getLocation ( )
37+ locTypeArg = this . getTypeArgument ( count ( this . getTypeArgument ( _) ) - 1 ) .getLocation ( )
3838 |
3939 sl = locTypeArg .getEndLine ( ) and
4040 sc = locTypeArg .getEndColumn ( ) + 2
4141 )
4242 else (
43- if exists ( getQualifier ( ) )
43+ if exists ( this . getQualifier ( ) )
4444 then
4545 // Note: this needs to be the original (full) location of the qualifier, not the modified one.
46- exists ( Location locQual | locQual = getQualifier ( ) .getLocation ( ) |
46+ exists ( Location locQual | locQual = this . getQualifier ( ) .getLocation ( ) |
4747 sl = locQual .getEndLine ( ) and
4848 sc = locQual .getEndColumn ( ) + 2
4949 )
@@ -54,10 +54,10 @@ private class LocationOverridingMethodAccess extends MethodAccess {
5454 )
5555 ) and
5656 (
57- if getNumArgument ( ) > 0
57+ if this . getNumArgument ( ) > 0
5858 then
5959 // Note: this needs to be the original (full) location of the first argument, not the modified one.
60- exists ( Location locArg | locArg = getArgument ( 0 ) .getLocation ( ) |
60+ exists ( Location locArg | locArg = this . getArgument ( 0 ) .getLocation ( ) |
6161 el = locArg .getStartLine ( ) and
6262 ec = locArg .getStartColumn ( ) - 2
6363 )
@@ -80,10 +80,10 @@ private class LocationOverridingTypeAccess extends TypeAccess {
8080 super .hasLocationInfo ( path , slSuper , scSuper , elSuper , ecSuper )
8181 |
8282 (
83- if exists ( getQualifier ( ) )
83+ if exists ( this . getQualifier ( ) )
8484 then
8585 // Note: this needs to be the original (full) location of the qualifier, not the modified one.
86- exists ( Location locQual | locQual = getQualifier ( ) .getLocation ( ) |
86+ exists ( Location locQual | locQual = this . getQualifier ( ) .getLocation ( ) |
8787 sl = locQual .getEndLine ( ) and
8888 sc = locQual .getEndColumn ( ) + 2
8989 )
@@ -93,10 +93,10 @@ private class LocationOverridingTypeAccess extends TypeAccess {
9393 )
9494 ) and
9595 (
96- if exists ( getTypeArgument ( _) )
96+ if exists ( this . getTypeArgument ( _) )
9797 then
9898 // Note: this needs to be the original (full) location of the first type argument, not the modified one.
99- exists ( Location locArg | locArg = getTypeArgument ( 0 ) .getLocation ( ) |
99+ exists ( Location locArg | locArg = this . getTypeArgument ( 0 ) .getLocation ( ) |
100100 el = locArg .getStartLine ( ) and
101101 ec = locArg .getStartColumn ( ) - 2
102102 )
@@ -117,7 +117,7 @@ private class LocationOverridingFieldAccess extends FieldAccess {
117117 override predicate hasLocationInfo ( string path , int sl , int sc , int el , int ec ) {
118118 super .hasLocationInfo ( path , _, _, el , ec ) and
119119 sl = el and
120- sc = ec - getField ( ) .getName ( ) .length ( ) + 1
120+ sc = ec - this . getField ( ) .getName ( ) .length ( ) + 1
121121 }
122122}
123123
@@ -131,7 +131,7 @@ private class LocationOverridingImportType extends ImportType {
131131 el = elSuper and
132132 ec = ecSuper - 1 and
133133 sl = el and
134- sc = ecSuper - getImportedType ( ) .getName ( ) .length ( )
134+ sc = ecSuper - this . getImportedType ( ) .getName ( ) .length ( )
135135 )
136136 }
137137}
@@ -146,7 +146,7 @@ private class LocationOverridingImportStaticTypeMember extends ImportStaticTypeM
146146 el = elSuper and
147147 ec = ecSuper - 1 and
148148 sl = el and
149- sc = ecSuper - getName ( ) .length ( )
149+ sc = ecSuper - this . getName ( ) .length ( )
150150 )
151151 }
152152}
0 commit comments