solidity-antlr4
Version:
Solidity Lang Lexer and Parser by official ANTLR4 grammar
14 lines (13 loc) • 385 B
JavaScript
import { BaseNode } from "../base.js";
export class MappingType extends BaseNode {
type = "MappingType";
name = null;
keyType = null;
valueType = null;
constructor(ctx, visitor) {
super(ctx, visitor);
this.name = ctx._name?.accept(visitor) ?? null;
this.keyType = ctx._key?.accept(visitor) ?? null;
this.valueType = ctx._value?.accept(visitor) ?? null;
}
}