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