From 4da3c5ac06ba30e6f18c174a99275790cf5f75df Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Mon, 8 Dec 2025 09:35:29 -0800 Subject: [PATCH] compat fix --- src/parser/node.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parser/node.ts b/src/parser/node.ts index 137365f..1bea752 100644 --- a/src/parser/node.ts +++ b/src/parser/node.ts @@ -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) {