public PExpr Visit( SyntaxErrorExpr e ) { return new PExpr( _global.CreateSyntaxError( e, e.ErrorMessage ) ); }
bool IsCondition( out Expr c ) { if( !_parser.Match( JSTokenizerToken.OpenPar ) ) c = new SyntaxErrorExpr( _parser.Location, "Expected '('." ); else { c = Expression( 0 ); if( _parser.Match( JSTokenizerToken.ClosePar ) ) return true; c = new SyntaxErrorExpr( _parser.Location, "Expected ')'." ); } return false; }
public override Expr Visit( SyntaxErrorExpr e ) { _collector( e ); return e; }