solidity-antlr4
Version:
Solidity Lang Lexer and Parser by official ANTLR4 grammar
14 lines (13 loc) • 441 B
JavaScript
import { BaseNode } from "../base.js";
export class IndexRangeAccess extends BaseNode {
type = "IndexRangeAccess";
baseExpression;
startExpression = null;
endExpression = null;
constructor(ctx, visitor) {
super(ctx, visitor);
this.baseExpression = ctx.expression(0).accept(visitor);
this.startExpression = ctx._startIndex?.accept(visitor) ?? null;
this.endExpression = ctx._endIndex?.accept(visitor) ?? null;
}
}