solidity-antlr4
Version:
Solidity Lang Lexer and Parser by official ANTLR4 grammar
12 lines (11 loc) • 329 B
JavaScript
import { BaseNodeString } from "../base.js";
export class IdentifierPath extends BaseNodeString {
type = "IdentifierPath";
name;
identifiers;
constructor(ctx, visitor) {
super(ctx, visitor);
this.name = ctx.getText();
this.identifiers = ctx.identifier().map((identifier) => identifier.accept(visitor));
}
}