Antlr4.Semantics.SymbolCollector.RuleCatch C# (CSharp) Method

RuleCatch() public method

public RuleCatch ( GrammarAST arg, ActionAST action ) : void
arg Antlr4.Tool.Ast.GrammarAST
action Antlr4.Tool.Ast.ActionAST
return void
        public override void RuleCatch(GrammarAST arg, ActionAST action)
        {
            GrammarAST catchme = (GrammarAST)action.Parent;
            currentRule.exceptions.Add(catchme);
            action.resolver = currentRule;
        }