Antlr4.Codegen.ParserFactory.RuleRef C# (CSharp) Method

RuleRef() public method

public RuleRef ( GrammarAST ID, GrammarAST label, GrammarAST args ) : IList
ID Antlr4.Tool.Ast.GrammarAST
label Antlr4.Tool.Ast.GrammarAST
args Antlr4.Tool.Ast.GrammarAST
return IList
        public override IList<SrcOp> RuleRef(GrammarAST ID, GrammarAST label, GrammarAST args)
        {
            InvokeRule invokeOp = new InvokeRule(this, ID, label);
            // If no manual label and action refs as token/rule not label, we need to define implicit label
            if (controller.NeedsImplicitLabel(ID, invokeOp))
                DefineImplicitLabel(ID, invokeOp);
            AddToLabelList listLabelOp = GetAddToListOpIfListLabelPresent(invokeOp, label);
            return List(invokeOp, listLabelOp);
        }