UNPKG

solidity-antlr4

Version:

Solidity Lang Lexer and Parser by official ANTLR4 grammar

12 lines (11 loc) 337 B
import { BaseNode } from "../base.js"; export class IndexAccess extends BaseNode { type = "IndexAccess"; baseExpression; indexExpression = null; constructor(ctx, visitor) { super(ctx, visitor); this.baseExpression = ctx.expression(0).accept(visitor); this.indexExpression = ctx._index?.accept(visitor) ?? null; } }