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