UNPKG

solidity-antlr4

Version:

Solidity Lang Lexer and Parser by official ANTLR4 grammar

10 lines (9 loc) 255 B
import { BaseNode } from "../base.js"; export class BooleanLiteral extends BaseNode { type = "BooleanLiteral"; value = null; constructor(ctx, visitor) { super(ctx, visitor); this.value = ctx.True() ? true : ctx.False() ? false : null; } }