Exemple #1
0
        private Node iterateWrapper(ParserRuleContext ctx, Visitor visitor, Node parent)
        {
            IterateOverContext it = new IterateOverContext(this);

            it.iterateOverChildren(ctx, visitor, parent);
            return(parent);
        }
Exemple #2
0
        public override Node visitPrimitives(JuliarParser.PrimitivesContext ctx)
        {
            PrimitiveNode      primitiveNode = new PrimitiveNode();
            IterateOverContext context       = new IterateOverContext(this);

            context.iterateOverChildren(ctx, this, primitiveNode);
            return(primitiveNode);
        }
Exemple #3
0
        public override Node visitTypes(JuliarParser.TypesContext ctx)
        {
            IntegralTypeNode integralTypeNode = new IntegralTypeNode();

            IterateOverContext context = new IterateOverContext(this);

            context.iterateOverChildren(ctx.primitiveTypes(), this, integralTypeNode);

            return(integralTypeNode);
        }