Exemplo n.º 1
0
        public override void EnterEntity([NotNull] KayleeParser.EntityContext context)
        {
            var identifier = context.IDENTIFIER();
            var isQuery    = context.QUERY() != null;

            Entity = new Entity(schema, parent, identifier.GetText(), isQuery);

            var body = context.entityBody();

            VisitFields(body);
            VisitKeys(body);
            VisitMutations(body);
            VisitEntities(body);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Exit a parse tree produced by <see cref="KayleeParser.entity"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitEntity([NotNull] KayleeParser.EntityContext context)
 {
 }