Compare commits

...

1 Commits

Author SHA1 Message Date
Alex Eyers-Taylor
64df703785 JS: Fix perfomance issues in overlay mode. 2025-05-19 10:59:01 +01:00

View File

@@ -28,8 +28,10 @@ class Token extends Locatable, @token {
/** Gets the token following this token inside the same toplevel structure, if any. */
Token getNextToken() {
this.getTopLevel() = result.getTopLevel() and
this.getIndex() + 1 = result.getIndex()
exists (TopLevel topLevel, int index |
tokeninfo(this, _, topLevel, index, _) and
tokeninfo(result, _, topLevel, index + 1, _)
)
}
/** Gets the token preceding this token inside the same toplevel structure, if any. */