@@ -821,7 +821,7 @@ abstract class TranslatedElement extends TTranslatedElement {
821
821
abstract Locatable getAst ( ) ;
822
822
823
823
/** DEPRECATED: Alias for getAst */
824
- deprecated Locatable getAST ( ) { result = getAst ( ) }
824
+ deprecated Locatable getAST ( ) { result = this . getAst ( ) }
825
825
826
826
/**
827
827
* Get the first instruction to be executed in the evaluation of this element.
@@ -831,7 +831,7 @@ abstract class TranslatedElement extends TTranslatedElement {
831
831
/**
832
832
* Get the immediate child elements of this element.
833
833
*/
834
- final TranslatedElement getAChild ( ) { result = getChild ( _) }
834
+ final TranslatedElement getAChild ( ) { result = this . getChild ( _) }
835
835
836
836
/**
837
837
* Gets the immediate child element of this element. The `id` is unique
@@ -844,25 +844,29 @@ abstract class TranslatedElement extends TTranslatedElement {
844
844
* Gets the an identifier string for the element. This id is unique within
845
845
* the scope of the element's function.
846
846
*/
847
- final int getId ( ) { result = getUniqueId ( ) }
847
+ final int getId ( ) { result = this . getUniqueId ( ) }
848
848
849
849
private TranslatedElement getChildByRank ( int rankIndex ) {
850
850
result =
851
- rank [ rankIndex + 1 ] ( TranslatedElement child , int id | child = getChild ( id ) | child order by id )
851
+ rank [ rankIndex + 1 ] ( TranslatedElement child , int id |
852
+ child = this .getChild ( id )
853
+ |
854
+ child order by id
855
+ )
852
856
}
853
857
854
858
language [ monotonicAggregates]
855
859
private int getDescendantCount ( ) {
856
860
result =
857
- 1 + sum ( TranslatedElement child | child = getChildByRank ( _) | child .getDescendantCount ( ) )
861
+ 1 + sum ( TranslatedElement child | child = this . getChildByRank ( _) | child .getDescendantCount ( ) )
858
862
}
859
863
860
864
private int getUniqueId ( ) {
861
- if not exists ( getParent ( ) )
865
+ if not exists ( this . getParent ( ) )
862
866
then result = 0
863
867
else
864
868
exists ( TranslatedElement parent |
865
- parent = getParent ( ) and
869
+ parent = this . getParent ( ) and
866
870
if this = parent .getChildByRank ( 0 )
867
871
then result = 1 + parent .getUniqueId ( )
868
872
else
@@ -908,7 +912,7 @@ abstract class TranslatedElement extends TTranslatedElement {
908
912
* there is no enclosing `try`.
909
913
*/
910
914
Instruction getExceptionSuccessorInstruction ( ) {
911
- result = getParent ( ) .getExceptionSuccessorInstruction ( )
915
+ result = this . getParent ( ) .getExceptionSuccessorInstruction ( )
912
916
}
913
917
914
918
/**
@@ -1022,14 +1026,14 @@ abstract class TranslatedElement extends TTranslatedElement {
1022
1026
exists ( Locatable ast |
1023
1027
result .getAst ( ) = ast and
1024
1028
result .getTag ( ) = tag and
1025
- hasTempVariableAndAst ( tag , ast )
1029
+ this . hasTempVariableAndAst ( tag , ast )
1026
1030
)
1027
1031
}
1028
1032
1029
1033
pragma [ noinline]
1030
1034
private predicate hasTempVariableAndAst ( TempVariableTag tag , Locatable ast ) {
1031
- hasTempVariable ( tag , _) and
1032
- ast = getAst ( )
1035
+ this . hasTempVariable ( tag , _) and
1036
+ ast = this . getAst ( )
1033
1037
}
1034
1038
1035
1039
/**
0 commit comments