File tree Expand file tree Collapse file tree
test/query-tests/diagnostics Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77import rust
88
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+
919/**
1020 * Gets `l.toString()`, but with any locations outside of the source location prefix cleaned up.
1121 */
@@ -29,7 +39,7 @@ string multipleString(int i) {
2939query predicate listUnimplemented ( string location , string msg ) {
3040 // something that is not extracted yet
3141 exists ( int c |
32- c = strictcount ( Unimplemented n | cleanLocationString ( n . getLocation ( ) ) = location ) and
42+ c = strictcount ( Unimplemented n | cleanLocationString ( getUnimplementedLocation ( n ) ) = location ) and
3343 msg = "Not yet implemented" + multipleString ( c ) + "."
3444 )
3545}
You can’t perform that action at this time.
0 commit comments