compat fix

This commit is contained in:
Chris Wanstrath 2025-12-08 09:35:29 -08:00
parent 31603d705a
commit 4da3c5ac06

View File

@ -141,7 +141,7 @@ export class Tree {
// TODO: TEMPORARY SHIM
class SyntaxNodeType {
constructor(public nodeType: NodeType) { }
constructor(public nodeType: NodeType, public isError: boolean) { }
is(other: string) {
return this.nodeType === other
@ -333,7 +333,7 @@ export class SyntaxNode {
}
get type(): SyntaxNodeType {
return new SyntaxNodeType(this.#type)
return new SyntaxNodeType(this.#type, this.#isError)
}
set type(name: NodeType) {