solidity-antlr4
Version:
Solidity Lang Lexer and Parser by official ANTLR4 grammar
12 lines (11 loc) • 318 B
JavaScript
import { BaseNode } from "../base.js";
export class YulIfStatement extends BaseNode {
type = "YulIfStatement";
condition = null;
body = null;
constructor(ctx, visitor) {
super(ctx, visitor);
this.condition = ctx._cond?.accept(visitor) ?? null;
this.body = ctx._body?.accept(visitor) ?? null;
}
}