Antlr4.Semantics.SemanticPipeline.IdentifyStartRules C# (CSharp) 메소드

IdentifyStartRules() 개인적인 메소드

private IdentifyStartRules ( SymbolCollector collector ) : void
collector SymbolCollector
리턴 void
        internal virtual void IdentifyStartRules(SymbolCollector collector)
        {
            foreach (GrammarAST @ref in collector.rulerefs)
            {
                string ruleName = @ref.Text;
                Rule r = g.GetRule(ruleName);
                if (r != null)
                    r.isStartRule = false;
            }
        }