1 write to NewExpression
System.Linq.Expressions (1)
System\Linq\Expressions\ListInitExpression.cs (1)
26NewExpression = newExpression;
27 references to NewExpression
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
ExpressionTrees\Sources\ExprLambdaUtils.vb (1)
284Visit(node.NewExpression)
System.Linq.Expressions (26)
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (4)
1053EmitExpression(init.NewExpression); 1055if (init.NewExpression.Type.IsValueType) 1057loc = GetLocal(init.NewExpression.Type); 1061EmitListInit(init.Initializers, loc == null, init.NewExpression.Type);
System\Linq\Expressions\Compiler\StackSpiller.cs (2)
629Result newResult = RewriteExpression(node.NewExpression, stack); 671bool isRefNew = IsRefInstance(node.NewExpression);
System\Linq\Expressions\DebugViewWriter.cs (1)
825Visit(node.NewExpression);
System\Linq\Expressions\Expression.DebuggerProxy.cs (1)
251public NewExpression NewExpression => _node.NewExpression;
System\Linq\Expressions\ExpressionStringBuilder.cs (1)
324Visit(node.NewExpression);
System\Linq\Expressions\ExpressionVisitor.cs (1)
566VisitAndConvert(node.NewExpression, nameof(VisitListInit)),
System\Linq\Expressions\Interpreter\LightCompiler.cs (1)
2691EmitThisForMethodCall(node.NewExpression);
System\Linq\Expressions\ListInitExpression.cs (15)
40public sealed override Type Type => NewExpression.Type; 74return MemberInitExpression.ReduceListInit(NewExpression, Initializers, keepOnStack: true); 82/// <param name="newExpression">The <see cref="NewExpression"/> property of the result.</param> 87if (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>