Antlr4.Semantics.RuleCollector.DiscoverOuterAlt C# (CSharp) Method

DiscoverOuterAlt() public method

public DiscoverOuterAlt ( AltAST alt ) : void
alt AltAST
return void
        public override void DiscoverOuterAlt(AltAST alt)
        {
            if (alt.altLabel != null)
            {
                ruleToAltLabels.Map(currentRuleName, alt.altLabel);
                string altLabel = alt.altLabel.Text;
                altLabelToRuleName[Utils.Capitalize(altLabel)] = currentRuleName;
                altLabelToRuleName[Utils.Decapitalize(altLabel)] = currentRuleName;
            }
        }