UNPKG

solidity-antlr4

Version:

Solidity Lang Lexer and Parser by official ANTLR4 grammar

14 lines (13 loc) 394 B
import { BaseNode } from "../base.js"; export class CatchClause extends BaseNode { type = "CatchClause"; errorName = null; parameters = null; body; constructor(ctx, visitor) { super(ctx, visitor); this.errorName = ctx.identifier()?.accept(visitor) ?? null; this.body = ctx.block().accept(visitor); this.parameters = ctx.parameterList()?.accept(visitor) ?? null; } }