Examples of StructDecl


Examples of org.antlr.v4.codegen.model.decl.StructDecl

    }
    modifiers = Utils.nodesToStrings(r.modifiers);

    index = r.index;

    ruleCtx = new StructDecl(factory, r);
    altToContext = new AltLabelStructDecl[r.getOriginalNumberOfAlts()+1];
    addContextGetters(factory, r);

    if ( r.args!=null ) {
      Collection<Attribute> decls = r.args.attributes.values();
View Full Code Here

Examples of org.antlr.v4.codegen.model.decl.StructDecl

        }
        else {
          d = new RuleContextListDecl(factory, label, ctxName);
        }

        StructDecl struct = ruleCtx;
        if ( altLabelCtxs!=null ) {
          StructDecl s = altLabelCtxs.get(altLabel);
          if ( s!=null ) struct = s; // if alt label, use subctx
        }
        struct.addDecl(d); // stick in overall rule's ctx
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.