UNPKG

solidity-antlr4

Version:

Solidity Lang Lexer and Parser by official ANTLR4 grammar

14 lines (13 loc) 485 B
import { BaseNode } from "../base.js"; export class VariableDeclarationStatement extends BaseNode { type = "VariableDeclarationStatement"; variable = null; variableTuple = null; expression = null; constructor(ctx, visitor) { super(ctx, visitor); this.variableTuple = ctx.variableDeclarationTuple()?.accept(visitor) ?? null; this.variable = ctx.variableDeclaration()?.accept(visitor) ?? null; this.expression = ctx.expression()?.accept(visitor) ?? null; } }