public override object VisitEventSetDecl(PParser.EventSetDeclContext context) { string symbolName = context.name.GetText(); NamedEventSet decl = CurrentScope.Put(symbolName, context); nodesToDeclarations.Put(context, decl); return(null); }
public NamedEventSet Put(string name, PParser.EventSetDeclContext tree) { NamedEventSet eventSet = new NamedEventSet(name, tree); CheckConflicts(eventSet, Namespace(eventSets), Namespace(interfaces)); eventSets.Add(name, eventSet); return(eventSet); }
public override object VisitEventSetDecl(PParser.EventSetDeclContext context) { // EVENTSET name=iden var es = (NamedEventSet)nodesToDeclarations.Get(context); // ASSIGN LBRACE eventSetLiteral RBRACE es.AddEvents((PEvent[])Visit(context.eventSetLiteral())); // SEMI return(es); }