compat fix
This commit is contained in:
parent
31603d705a
commit
4da3c5ac06
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user