@@ -53,9 +53,7 @@ class Location extends @location {
5353 predicate fullLocationInfo (
5454 Container container , int startline , int startcolumn , int endline , int endcolumn
5555 ) {
56- locations_default ( this , unresolveElement ( container ) , startline , startcolumn , endline , endcolumn ) or
57- locations_expr ( this , unresolveElement ( container ) , startline , startcolumn , endline , endcolumn ) or
58- locations_stmt ( this , unresolveElement ( container ) , startline , startcolumn , endline , endcolumn )
56+ locations_default ( this , unresolveElement ( container ) , startline , startcolumn , endline , endcolumn )
5957 }
6058
6159 /**
@@ -146,30 +144,32 @@ class Locatable extends Element { }
146144 * expressions, one for statements and one for other program elements.
147145 */
148146class UnknownLocation extends Location {
149- UnknownLocation ( ) { this .getFile ( ) .getAbsolutePath ( ) = "" }
147+ UnknownLocation ( ) {
148+ this .getFile ( ) .getAbsolutePath ( ) = "" and locations_default ( this , _, 0 , 0 , 0 , 0 )
149+ }
150150}
151151
152152/**
153153 * A dummy location which is used when something doesn't have a location in
154154 * the source code but needs to have a `Location` associated with it.
155+ *
156+ * DEPRECATED: use `UnknownLocation`
155157 */
156- class UnknownDefaultLocation extends UnknownLocation {
157- UnknownDefaultLocation ( ) { locations_default ( this , _, 0 , 0 , 0 , 0 ) }
158- }
158+ deprecated class UnknownDefaultLocation extends UnknownLocation { }
159159
160160/**
161161 * A dummy location which is used when an expression doesn't have a
162162 * location in the source code but needs to have a `Location` associated
163163 * with it.
164+ *
165+ * DEPRECATED: use `UnknownLocation`
164166 */
165- class UnknownExprLocation extends UnknownLocation {
166- UnknownExprLocation ( ) { locations_expr ( this , _, 0 , 0 , 0 , 0 ) }
167- }
167+ deprecated class UnknownExprLocation extends UnknownLocation { }
168168
169169/**
170170 * A dummy location which is used when a statement doesn't have a location
171171 * in the source code but needs to have a `Location` associated with it.
172+ *
173+ * DEPRECATED: use `UnknownLocation`
172174 */
173- class UnknownStmtLocation extends UnknownLocation {
174- UnknownStmtLocation ( ) { locations_stmt ( this , _, 0 , 0 , 0 , 0 ) }
175- }
175+ deprecated class UnknownStmtLocation extends UnknownLocation { }
0 commit comments