@@ -32,7 +32,7 @@ private module Input implements InputSig {
32
32
private module Impl = Make< Input > ;
33
33
34
34
/** A file or folder. */
35
- class Container extends Locatable , Impl:: Container {
35
+ class Container extends ElementBase , Impl:: Container {
36
36
override string toString ( ) { result = Impl:: Container .super .toString ( ) }
37
37
}
38
38
@@ -47,11 +47,6 @@ class Container extends Locatable, Impl::Container {
47
47
* To get the full path, use `getAbsolutePath`.
48
48
*/
49
49
class Folder extends Container , Impl:: Folder {
50
- override Location getLocation ( ) {
51
- result .getContainer ( ) = this and
52
- result .hasLocationInfo ( _, 0 , 0 , 0 , 0 )
53
- }
54
-
55
50
override string getAPrimaryQlClass ( ) { result = "Folder" }
56
51
}
57
52
@@ -70,11 +65,6 @@ class Folder extends Container, Impl::Folder {
70
65
class File extends Container , Impl:: File {
71
66
override string getAPrimaryQlClass ( ) { result = "File" }
72
67
73
- override Location getLocation ( ) {
74
- result .getContainer ( ) = this and
75
- result .hasLocationInfo ( _, 0 , 0 , 0 , 0 )
76
- }
77
-
78
68
/** Holds if this file was compiled as C (at any point). */
79
69
predicate compiledAsC ( ) { fileannotations ( underlyingElement ( this ) , 1 , "compiled as c" , "1" ) }
80
70
@@ -128,7 +118,7 @@ class File extends Container, Impl::File {
128
118
* except the dummy file, whose name is the empty string, which contains
129
119
* declarations that are built into the compiler.
130
120
*/
131
- override predicate fromSource ( ) { numlines ( underlyingElement ( this ) , _, _, _) }
121
+ predicate fromSource ( ) { numlines ( underlyingElement ( this ) , _, _, _) }
132
122
133
123
/** Gets the metric file. */
134
124
MetricFile getMetrics ( ) { result = this }
0 commit comments