1 write to NewExpression
System.Linq.Expressions (1)
System\Linq\Expressions\MemberInitExpression.cs (1)
19NewExpression = newExpression;
22 references to NewExpression
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
ExpressionTrees\Sources\ExprLambdaUtils.vb (1)
151Visit(node.NewExpression)
System.Linq.Expressions (21)
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (4)
1009EmitExpression(init.NewExpression); 1011if (init.NewExpression.Type.IsValueType && init.Bindings.Count > 0) 1013loc = GetLocal(init.NewExpression.Type); 1017EmitMemberInit(init.Bindings, loc == null, init.NewExpression.Type);
System\Linq\Expressions\Compiler\StackSpiller.cs (2)
707Result result = RewriteExpression(node.NewExpression, stack); 740bool isRefNew = IsRefInstance(node.NewExpression);
System\Linq\Expressions\DebugViewWriter.cs (1)
856Visit(node.NewExpression);
System\Linq\Expressions\Expression.DebuggerProxy.cs (1)
306public NewExpression NewExpression => _node.NewExpression;
System\Linq\Expressions\ExpressionStringBuilder.cs (3)
416if (node.NewExpression.ArgumentCount == 0 && 417node.NewExpression.Type.Name.Contains('<')) 424Visit(node.NewExpression);
System\Linq\Expressions\ExpressionVisitor.cs (1)
552VisitAndConvert(node.NewExpression, nameof(VisitMemberInit)),
System\Linq\Expressions\Interpreter\LightCompiler.cs (1)
2716EmitThisForMethodCall(node.NewExpression);
System\Linq\Expressions\MemberInitExpression.cs (8)
27public sealed override Type Type => NewExpression.Type; 66return ReduceMemberInit(NewExpression, Bindings, keepOnStack: true); 119/// <param name="newExpression">The <see cref="NewExpression"/> property of the result.</param> 124if (newExpression == NewExpression && bindings != null) 139/// <returns>A <see cref="MemberInitExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.MemberInit"/> and the <see cref="MemberInitExpression.NewExpression"/> and <see cref="MemberInitExpression.Bindings"/> properties set to the specified values.</returns> 140/// <param name="newExpression">A <see cref="NewExpression"/> to set the <see cref="MemberInitExpression.NewExpression"/> property equal to.</param> 151/// <returns>A <see cref="MemberInitExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.MemberInit"/> and the <see cref="MemberInitExpression.NewExpression"/> and <see cref="MemberInitExpression.Bindings"/> properties set to the specified values.</returns> 152/// <param name="newExpression">A <see cref="NewExpression"/> to set the <see cref="MemberInitExpression.NewExpression"/> property equal to.</param>