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) {