35 references to NewExpression
System.Activities (4)
Microsoft\VisualBasic\Activities\VisualBasicDesignerHelper.cs (1)
496
FindTypeReferences(memberInit.
NewExpression
, typeReferences);
Microsoft\VisualBasic\Activities\VisualBasicHelper.cs (2)
903
newExpression = (NewExpression)Rewrite(memberInit.
NewExpression
, lambdaParameters, out abort);
1268
return FindParameter(memberInit.
NewExpression
) ?? FindParameter(memberInit.Bindings);
System\Activities\ExpressionUtilities.cs (1)
1025
hasChanged |= TryRewriteLambdaExpression(memberInit.
NewExpression
, out other, publicAccessor);
System.Core (16)
Microsoft\Scripting\Ast\DebugViewWriter.cs (1)
843
Visit(node.
NewExpression
);
Microsoft\Scripting\Ast\Expression.DebuggerProxy.cs (1)
295
public NewExpression NewExpression { get { return _node.
NewExpression
; } }
Microsoft\Scripting\Ast\ExpressionStringBuilder.cs (3)
440
if (node.
NewExpression
.Arguments.Count == 0 &&
441
node.
NewExpression
.Type.Name.Contains("<")) {
445
Visit(node.
NewExpression
);
Microsoft\Scripting\Ast\ExpressionVisitor.cs (1)
544
VisitAndConvert(node.
NewExpression
, "VisitMemberInit"),
Microsoft\Scripting\Ast\MemberInitExpression.cs (2)
142
/// <param name="newExpression">The <see cref="
NewExpression
" /> property of the result.</param>
146
if (newExpression ==
NewExpression
&& bindings == Bindings) {
Microsoft\Scripting\Compiler\LambdaCompiler.Expressions.cs (4)
839
EmitExpression(init.
NewExpression
);
841
if (init.
NewExpression
.Type.IsValueType && init.Bindings.Count > 0) {
842
loc = _ilg.DeclareLocal(init.
NewExpression
.Type);
846
EmitMemberInit(init.Bindings, loc == null, init.
NewExpression
.Type);
Microsoft\Scripting\Compiler\StackSpiller.cs (2)
641
Result result = RewriteExpression(node.
NewExpression
, stack);
666
RequireNotRefInstance(node.
NewExpression
);
System\Linq\Expressions\ExpressionVisitor.cs (2)
282
NewExpression n = this.VisitNew(init.
NewExpression
);
284
if (n != init.
NewExpression
|| bindings != init.Bindings) {
System.Data.Entity (6)
System\Data\Objects\ELinq\EntityExpressionVisitor.cs (2)
331
NewExpression n = this.VisitNew(init.
NewExpression
);
333
if (n != init.
NewExpression
|| bindings != init.Bindings)
System\Data\Objects\ELinq\InitializerFacet.cs (1)
408
Expression newProjection = Expression.MemberInit(_initExpression.
NewExpression
, memberBindings);
System\Data\Objects\ELinq\Translator.cs (3)
816
if (null == linq.
NewExpression
.Constructor ||
817
0 != linq.
NewExpression
.Constructor.GetParameters().Length)
852
initializerMetadata = InitializerMetadata.CreateEmptyProjectionInitializer(parent.EdmItemCollection, linq.
NewExpression
);
System.Data.Linq (3)
SqlClient\Query\Funcletizer.cs (2)
406
NewExpression n = this.VisitNew(init.
NewExpression
);
408
if (n != init.
NewExpression
|| bindings != init.Bindings) {
SqlClient\Query\QueryConverter.cs (1)
856
NewExpression qn = init.
NewExpression
;
System.Data.Services (2)
parent\Client\System\Data\Services\Client\ALinq\ALinqExpressionVisitor.cs (2)
544
NewExpression n = this.VisitNew(init.
NewExpression
);
546
if (n != init.
NewExpression
|| bindings != init.Bindings)
System.Data.Services.Client (4)
System\Data\Services\Client\ALinq\ALinqExpressionVisitor.cs (2)
544
NewExpression n = this.VisitNew(init.
NewExpression
);
546
if (n != init.
NewExpression
|| bindings != init.Bindings)
System\Data\Services\Client\ALinq\ResourceBinder.cs (1)
1880
return MatchResource(source, out resource) && (mie != null) && (mie.
NewExpression
.Arguments.Count == 0);
System\Data\Services\Client\ProjectionPlanCompiler.cs (1)
541
Type projectedType = init.
NewExpression
.Type;