Exemplo n.º 1
0
 //
 // Summary:
 //     Visits the children of the System.Linq.Expressions.GotoExpression.
 //
 // Parameters:
 //   node:
 //     The expression to visit.
 //
 // Returns:
 //     The modified expression, if it or any subexpression was modified; otherwise,
 //     returns the original expression.
 protected override Expression VisitGoto(GotoExpression node)
 {
     Console.WriteLine("VisitGoto:");
     Console.WriteLine('\t' + node.GetType().ToString());
     Console.WriteLine('\t' + node.ToString());
     return(base.VisitGoto(node));
 }
Exemplo n.º 2
0
 /// <summary>访问子内容为: <see cref="T:System.Linq.Expressions.GotoExpression"></see>.</summary>
 /// <param name="node">被访问的表达式</param>
 /// <returns>The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.</returns>
 protected override Expression VisitGoto(GotoExpression node)
 {
     Log(node.ToString());
     throw new NotImplementedException();
 }
Exemplo n.º 3
0
 protected override Expression VisitGoto(GotoExpression node)
 {
     this._writer.Write(node.ToString());
     return(node);
 }