Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
import CodeLocation from "../CodeLocation";
import Token from "../Token";
import ASTNode from "./ASTNode";
import ASTVisitor from "./ASTVisitor";
/**
* Is put into the AST after it failed to parse something. Such an AST is invalid, and an error must have been generated.
* It is generated during synchronisation, which occurs on every statement, but you should expect it everywhere when handling the AST.
* @category AST
*/
export default class ErrorNode extends ASTNode {
constructor(
public tokens: {
tokens: Token[];
}
) {
super();
}
accept<R>(visitor: ASTVisitor<R>): R {
return visitor.visitErrorNode(this);
}
}
fc9b20a43This file is pinned to the selected release. Download the original to open it in your design tool.