コード例 #1
0
            public override object ErrorNode(ITokenStream input, IToken start, IToken stop, RecognitionException e)
            {
                GrammarAST t = new GrammarASTErrorNode(input, start, stop, e);

                if (_outer != null)
                {
                    t.enclosingRuleName = _outer.currentRuleName;
                }
                return(t);
            }
コード例 #2
0
 public override object ErrorNode( ITokenStream input, IToken start, IToken stop, RecognitionException e )
 {
     GrammarAST t = new GrammarASTErrorNode( input, start, stop, e );
     if ( _outer != null )
         t.enclosingRuleName = _outer.currentRuleName;
     return t;
 }