@@ -170,21 +170,21 @@ class File extends Container, @file {
170170 override string getURL ( ) { result = "file://" + this .getAbsolutePath ( ) + ":0:0:0:0" }
171171
172172 /** Gets the number of lines in this file. */
173- int getNumberOfLines ( ) { result = max ( getAToken ( ) .getLocation ( ) .getEndLine ( ) ) }
173+ int getNumberOfLines ( ) { result = max ( this . getAToken ( ) .getLocation ( ) .getEndLine ( ) ) }
174174
175175 /** Get a token in this file. */
176176 private Generated:: Token getAToken ( ) { result .getLocation ( ) .getFile ( ) = this }
177177
178178 /** Get a comment token in this file. */
179- private Generated:: Token getACommentToken ( ) { result = getAToken ( ) and result instanceof @token_comment }
179+ private Generated:: Token getACommentToken ( ) { result = this . getAToken ( ) and result instanceof @token_comment }
180180
181181 /** Get a non-comment token in this file. */
182182 private Generated:: Token getANonCommentToken ( ) {
183- result = getAToken ( ) and not result instanceof @token_comment
183+ result = this . getAToken ( ) and not result instanceof @token_comment
184184 }
185185
186186 private predicate isTokenStartingAtLine ( Generated:: Token t , int startLine ) {
187- t = getANonCommentToken ( ) and
187+ t = this . getANonCommentToken ( ) and
188188 t .getLocation ( ) .getStartLine ( ) = startLine
189189 }
190190
@@ -198,10 +198,10 @@ class File extends Container, @file {
198198 result =
199199 sum ( int startLine , int numLines |
200200 exists ( Generated:: Token t |
201- isTokenStartingAtLine ( t , startLine ) and
201+ this . isTokenStartingAtLine ( t , startLine ) and
202202 t .getLocation ( ) .getNumLines ( ) = numLines and
203203 not exists ( Generated:: Token t2 |
204- isTokenStartingAtLine ( t2 , startLine ) and
204+ this . isTokenStartingAtLine ( t2 , startLine ) and
205205 t2 .getLocation ( ) .getNumLines ( ) > numLines
206206 )
207207 )
@@ -211,5 +211,5 @@ class File extends Container, @file {
211211 }
212212
213213 /** Gets the number of lines of comments in this file. */
214- int getNumberOfLinesOfComments ( ) { result = count ( getACommentToken ( ) ) }
214+ int getNumberOfLinesOfComments ( ) { result = count ( this . getACommentToken ( ) ) }
215215}
0 commit comments