@@ -96,7 +96,7 @@ class PreprocessorBlock extends @element {
96
96
// before it in the source.
97
97
exists ( int ix , PreprocessorBranchDirective prev |
98
98
ix = getPreprocIndex ( mkElement ( this ) .( PreprocessorBranchDirective ) .getIf ( ) ) and
99
- prev = getPreprocFromIndex ( getFile ( ) , ix - 1 )
99
+ prev = getPreprocFromIndex ( this . getFile ( ) , ix - 1 )
100
100
|
101
101
if prev instanceof PreprocessorEndif
102
102
then
@@ -118,13 +118,13 @@ class PreprocessorBlock extends @element {
118
118
PreprocessorBlock getParent ( ) {
119
119
not mkElement ( this ) instanceof File and
120
120
(
121
- if exists ( getParentInternal ( ) )
121
+ if exists ( this . getParentInternal ( ) )
122
122
then
123
123
// found parent directive
124
- result = getParentInternal ( )
124
+ result = this . getParentInternal ( )
125
125
else
126
126
// top level directive
127
- mkElement ( result ) = getFile ( )
127
+ mkElement ( result ) = this . getFile ( )
128
128
)
129
129
}
130
130
@@ -134,32 +134,32 @@ class PreprocessorBlock extends @element {
134
134
PreprocessorBlock getAChild ( ) { result .getParent ( ) = this }
135
135
136
136
private Include getAnEnclosedInclude ( ) {
137
- result .getFile ( ) = getFile ( ) and
138
- result .getLocation ( ) .getStartLine ( ) > getStartLine ( ) and
139
- result .getLocation ( ) .getStartLine ( ) <= getEndLine ( )
137
+ result .getFile ( ) = this . getFile ( ) and
138
+ result .getLocation ( ) .getStartLine ( ) > this . getStartLine ( ) and
139
+ result .getLocation ( ) .getStartLine ( ) <= this . getEndLine ( )
140
140
}
141
141
142
142
/**
143
143
* Gets an include directive that is directly in this
144
144
* `PreprocessorBlock`.
145
145
*/
146
146
Include getAnInclude ( ) {
147
- result = getAnEnclosedInclude ( ) and
148
- not result = getAChild ( ) .getAnEnclosedInclude ( )
147
+ result = this . getAnEnclosedInclude ( ) and
148
+ not result = this . getAChild ( ) .getAnEnclosedInclude ( )
149
149
}
150
150
151
151
private Macro getAnEnclosedMacro ( ) {
152
- result .getFile ( ) = getFile ( ) and
153
- result .getLocation ( ) .getStartLine ( ) > getStartLine ( ) and
154
- result .getLocation ( ) .getStartLine ( ) <= getEndLine ( )
152
+ result .getFile ( ) = this . getFile ( ) and
153
+ result .getLocation ( ) .getStartLine ( ) > this . getStartLine ( ) and
154
+ result .getLocation ( ) .getStartLine ( ) <= this . getEndLine ( )
155
155
}
156
156
157
157
/**
158
158
* Gets a macro definition that is directly in this
159
159
* `PreprocessorBlock`.
160
160
*/
161
161
Macro getAMacro ( ) {
162
- result = getAnEnclosedMacro ( ) and
163
- not result = getAChild ( ) .getAnEnclosedMacro ( )
162
+ result = this . getAnEnclosedMacro ( ) and
163
+ not result = this . getAChild ( ) .getAnEnclosedMacro ( )
164
164
}
165
165
}
0 commit comments