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
10
10
/**
11
11
* Gets the line of the `ix`th `PreprocessorBranchDirective` in file `f`.
12
12
*/
13
- cached
14
13
private int getPreprocLineFromIndex ( File f , int ix ) {
15
14
result =
16
15
rank [ ix ] ( PreprocessorBranchDirective g | g .getFile ( ) = f | g .getLocation ( ) .getStartLine ( ) )
@@ -70,26 +69,22 @@ class PreprocessorBlock extends @element {
70
69
/**
71
70
* Gets the file this `PreprocessorBlock` is located in.
72
71
*/
73
- cached
74
72
File getFile ( ) { result = mkElement ( this ) .getFile ( ) }
75
73
76
74
/**
77
75
* Gets the start line number of this `PreprocessorBlock`.
78
76
*/
79
- cached
80
77
int getStartLine ( ) { result = mkElement ( this ) .getLocation ( ) .getStartLine ( ) }
81
78
82
79
/**
83
80
* Gets the end line number of this `PreprocessorBlock`.
84
81
*/
85
- cached
86
82
int getEndLine ( ) {
87
83
result = mkElement ( this ) .( File ) .getMetrics ( ) .getNumberOfLines ( ) or
88
84
result =
89
85
mkElement ( this ) .( PreprocessorBranchDirective ) .getNext ( ) .getLocation ( ) .getStartLine ( ) - 1
90
86
}
91
87
92
- cached
93
88
private PreprocessorBlock getParentInternal ( ) {
94
89
// find the `#ifdef` corresponding to this block and the
95
90
// PreprocessorBranchDirective `prev` that came directly
You can’t perform that action at this time.
0 commit comments