solidity-antlr4
Version:
Solidity Lang Lexer and Parser by official ANTLR4 grammar
16 lines (15 loc) • 404 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.BooleanLiteral = void 0;
var _base = require("../base.cjs");
class BooleanLiteral extends _base.BaseNode {
type = "BooleanLiteral";
value = null;
constructor(ctx, visitor) {
super(ctx, visitor);
this.value = ctx.True() ? true : ctx.False() ? false : null;
}
}
exports.BooleanLiteral = BooleanLiteral;