@@ -62,11 +62,10 @@ class Folder extends Container, Impl::Folder {
62
62
* The base name further decomposes into the _stem_ and _extension_ -- see
63
63
* `getStem` and `getExtension`. To get the full path, use `getAbsolutePath`.
64
64
*/
65
- class File extends Container , Impl:: File {
65
+ class File extends Container , Locatable , Impl:: File {
66
66
override string getAPrimaryQlClass ( ) { result = "File" }
67
67
68
- /** Gets the primary location of this file. */
69
- Location getLocation ( ) {
68
+ override Location getLocation ( ) {
70
69
result .getContainer ( ) = this and
71
70
result .hasLocationInfo ( _, 0 , 0 , 0 , 0 )
72
71
}
@@ -124,7 +123,7 @@ class File extends Container, Impl::File {
124
123
* except the dummy file, whose name is the empty string, which contains
125
124
* declarations that are built into the compiler.
126
125
*/
127
- predicate fromSource ( ) { numlines ( underlyingElement ( this ) , _, _, _) }
126
+ override predicate fromSource ( ) { numlines ( underlyingElement ( this ) , _, _, _) }
128
127
129
128
/** Gets the metric file. */
130
129
MetricFile getMetrics ( ) { result = this }
0 commit comments