File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed
Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import cpp
1010/**
1111 * Gets the line of the `ix`th `PreprocessorBranchDirective` in file `f`.
1212 */
13- cached
1413private int getPreprocLineFromIndex ( File f , int ix ) {
1514 result =
1615 rank [ ix ] ( PreprocessorBranchDirective g | g .getFile ( ) = f | g .getLocation ( ) .getStartLine ( ) )
@@ -70,26 +69,22 @@ class PreprocessorBlock extends @element {
7069 /**
7170 * Gets the file this `PreprocessorBlock` is located in.
7271 */
73- cached
7472 File getFile ( ) { result = mkElement ( this ) .getFile ( ) }
7573
7674 /**
7775 * Gets the start line number of this `PreprocessorBlock`.
7876 */
79- cached
8077 int getStartLine ( ) { result = mkElement ( this ) .getLocation ( ) .getStartLine ( ) }
8178
8279 /**
8380 * Gets the end line number of this `PreprocessorBlock`.
8481 */
85- cached
8682 int getEndLine ( ) {
8783 result = mkElement ( this ) .( File ) .getMetrics ( ) .getNumberOfLines ( ) or
8884 result =
8985 mkElement ( this ) .( PreprocessorBranchDirective ) .getNext ( ) .getLocation ( ) .getStartLine ( ) - 1
9086 }
9187
92- cached
9388 private PreprocessorBlock getParentInternal ( ) {
9489 // find the `#ifdef` corresponding to this block and the
9590 // PreprocessorBranchDirective `prev` that came directly
You can’t perform that action at this time.
0 commit comments