Skip to content

Commit 0d89120

Browse files
author
rstam
committed
Implemented VisitNew in ExpressionPrettyPrinter.
1 parent bcb5efc commit 0d89120

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Driver/Linq/ExpressionPrettyPrinter.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,16 @@ protected override Expression VisitLambda(LambdaExpression lambda)
283283
/// <returns>The NewExpression.</returns>
284284
protected override NewExpression VisitNew(NewExpression nex)
285285
{
286-
throw new NotImplementedException();
286+
WriteHeader(nex);
287+
using (new Indentation(this))
288+
{
289+
WriteLine("Arguments:");
290+
foreach (var arg in nex.Arguments)
291+
{
292+
VisitIndented(arg);
293+
}
294+
}
295+
return nex;
287296
}
288297

289298
/// <summary>

0 commit comments

Comments
 (0)