File tree Expand file tree Collapse file tree 2 files changed +23
-1707
lines changed
test/query-tests/diagnostics Expand file tree Collapse file tree 2 files changed +23
-1707
lines changed Original file line number Diff line number Diff line change 6
6
7
7
import rust
8
8
9
+ /**
10
+ * Gets a location for an `Unimplemented` node.
11
+ */
12
+ Location getUnimplementedLocation ( Unimplemented node ) {
13
+ result = node .( Locatable ) .getLocation ( )
14
+ or
15
+ not node instanceof Locatable and
16
+ result instanceof EmptyLocation
17
+ }
18
+
9
19
/**
10
20
* Gets `l.toString()`, but with any locations outside of the source location prefix cleaned up.
11
21
*/
@@ -29,7 +39,7 @@ string multipleString(int i) {
29
39
query predicate listUnimplemented ( string location , string msg ) {
30
40
// something that is not extracted yet
31
41
exists ( int c |
32
- c = strictcount ( Unimplemented n | cleanLocationString ( n . getLocation ( ) ) = location ) and
42
+ c = strictcount ( Unimplemented n | cleanLocationString ( getUnimplementedLocation ( n ) ) = location ) and
33
43
msg = "Not yet implemented" + multipleString ( c ) + "."
34
44
)
35
45
}
You can’t perform that action at this time.
0 commit comments