solidity-antlr4
Version:
Solidity Lang Lexer and Parser by official ANTLR4 grammar
18 lines (17 loc) • 538 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.YulVariableDeclaration = void 0;
var _base = require("../base.cjs");
class YulVariableDeclaration extends _base.BaseNode {
type = "YulVariableDeclaration";
identifiers = [];
expression = null;
constructor(ctx, visitor) {
super(ctx, visitor);
this.identifiers = ctx.YulIdentifier().map(i => i.getText());
this.expression = ctx.yulExpression()?.accept(visitor) ?? null;
}
}
exports.YulVariableDeclaration = YulVariableDeclaration;