1 write to NewExpression
System.Linq.Expressions (1)
System\Linq\Expressions\ListInitExpression.cs (1)
26
NewExpression
= newExpression;
27 references to NewExpression
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
ExpressionTrees\Sources\ExprLambdaUtils.vb (1)
284
Visit(node.
NewExpression
)
System.Linq.Expressions (26)
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (4)
1053
EmitExpression(init.
NewExpression
);
1055
if (init.
NewExpression
.Type.IsValueType)
1057
loc = GetLocal(init.
NewExpression
.Type);
1061
EmitListInit(init.Initializers, loc == null, init.
NewExpression
.Type);
System\Linq\Expressions\Compiler\StackSpiller.cs (2)
629
Result newResult = RewriteExpression(node.
NewExpression
, stack);
671
bool isRefNew = IsRefInstance(node.
NewExpression
);
System\Linq\Expressions\DebugViewWriter.cs (1)
825
Visit(node.
NewExpression
);
System\Linq\Expressions\Expression.DebuggerProxy.cs (1)
251
public NewExpression NewExpression => _node.
NewExpression
;
System\Linq\Expressions\ExpressionStringBuilder.cs (1)
324
Visit(node.
NewExpression
);
System\Linq\Expressions\ExpressionVisitor.cs (1)
566
VisitAndConvert(node.
NewExpression
, nameof(VisitListInit)),
System\Linq\Expressions\Interpreter\LightCompiler.cs (1)
2691
EmitThisForMethodCall(node.
NewExpression
);
System\Linq\Expressions\ListInitExpression.cs (15)
40
public sealed override Type Type =>
NewExpression
.Type;
74
return MemberInitExpression.ReduceListInit(
NewExpression
, Initializers, keepOnStack: true);
82
/// <param name="newExpression">The <see cref="
NewExpression
"/> property of the result.</param>
87
if (newExpression ==
NewExpression
&& initializers != null)
104
/// <param name="newExpression">A <see cref="NewExpression"/> to set the <see cref="ListInitExpression.
NewExpression
"/> property equal to.</param>
106
/// <returns>A <see cref="ListInitExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.ListInit"/> and the <see cref="ListInitExpression.
NewExpression
"/> property set to the specified value.</returns>
117
/// <param name="newExpression">A <see cref="NewExpression"/> to set the <see cref="ListInitExpression.
NewExpression
"/> property equal to.</param>
119
/// <returns>A <see cref="ListInitExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.ListInit"/> and the <see cref="ListInitExpression.
NewExpression
"/> property set to the specified value.</returns>
140
/// <param name="newExpression">A <see cref="NewExpression"/> to set the <see cref="ListInitExpression.
NewExpression
"/> property equal to.</param>
143
/// <returns>A <see cref="ListInitExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.ListInit"/> and the <see cref="ListInitExpression.
NewExpression
"/> property set to the specified value.</returns>
154
/// <param name="newExpression">A <see cref="NewExpression"/> to set the <see cref="ListInitExpression.
NewExpression
"/> property equal to.</param>
157
/// <returns>A <see cref="ListInitExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.ListInit"/> and the <see cref="ListInitExpression.
NewExpression
"/> property set to the specified value.</returns>
181
/// <param name="newExpression">A <see cref="NewExpression"/> to set the <see cref="ListInitExpression.
NewExpression
"/> property equal to.</param>
185
/// and the <see cref="ListInitExpression.
NewExpression
"/> and <see cref="ListInitExpression.Initializers"/> properties set to the specified values.
199
/// <param name="newExpression">A <see cref="NewExpression"/> to set the <see cref="ListInitExpression.
NewExpression
"/> property equal to.</param>