public override EntityObjectModel VisitEventDefinition([NotNull] EventDefinitionContext context) { string name = context.GetEventNameText(); CurrentFieldDefinitions = context.fieldDefinition(); return(new EntityObjectModel(name, ModelType.Event)); }
public static string GetEventNameText(this EventDefinitionContext context) { var eventName = context.eventName(); var eventNameText = eventName.children.AggregateText(); return(eventNameText); }