2 types derived from NewArrayExpression
System.Linq.Expressions (2)
System\Linq\Expressions\NewArrayExpression.cs (2)
82internal sealed class NewArrayInitExpression : NewArrayExpression 98internal sealed class NewArrayBoundsExpression : NewArrayExpression
44 references to NewArrayExpression
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
ExpressionTrees\Sources\ExprLambdaUtils.vb (1)
384Protected Overrides Function VisitNewArray(node As NewArrayExpression) As Expression
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\PredefinedTypes.cs (1)
167new PredefinedTypeInfo(PredefinedType.PT_NEWARRAYEXPRESSION, typeof(System.Linq.Expressions.NewArrayExpression), "System.Linq.Expressions.NewArrayExpression"),
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\Expressions\ExpressionResolverBuilder.cs (1)
129static NewArrayExpression NewArrayInit(Type elementType, IEnumerable<Expression> expr)
netstandard (1)
netstandard.cs (1)
1019[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Expressions.NewArrayExpression))]
System.Core (1)
System.Core.cs (1)
157[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Expressions.NewArrayExpression))]
System.Linq.Expressions (37)
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (2)
898NewArrayExpression node = (NewArrayExpression)expr;
System\Linq\Expressions\Compiler\StackSpiller.cs (3)
469var node = (NewArrayExpression)expr; 489expr = NewArrayExpression.Make(node.NodeType, node.Type, new TrueReadOnlyCollection<Expression>(cr[0, -1]!));
System\Linq\Expressions\DebugViewWriter.cs (1)
786protected internal override Expression VisitNewArray(NewArrayExpression node)
System\Linq\Expressions\Expression.DebuggerProxy.cs (2)
332private readonly NewArrayExpression _node; 334public NewArrayExpressionProxy(NewArrayExpression node)
System\Linq\Expressions\ExpressionStringBuilder.cs (1)
539protected internal override Expression VisitNewArray(NewArrayExpression node)
System\Linq\Expressions\ExpressionVisitor.cs (2)
416/// Visits the children of the <see cref="NewArrayExpression"/>. 421protected internal virtual Expression VisitNewArray(NewArrayExpression node)
System\Linq\Expressions\Interpreter\LightCompiler.cs (3)
2517Debug.Assert(typeof(NewArrayExpression).GetCustomAttribute<RequiresDynamicCodeAttribute>() is not null); 2518var node = (NewArrayExpression)expr;
System\Linq\Expressions\NewArrayExpression.cs (23)
26internal static NewArrayExpression Make(ExpressionType nodeType, Type type, ReadOnlyCollection<Expression> expressions) 65public NewArrayExpression Update(IEnumerable<Expression> expressions) 117/// Creates a <see cref="NewArrayExpression"/> of the specified type from the provided initializers. 121/// <returns>A <see cref="NewArrayExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.NewArrayInit"/> and the <see cref="NewArrayExpression.Expressions"/> property set to the specified value.</returns> 123public static NewArrayExpression NewArrayInit(Type type, params Expression[] initializers) 129/// Creates a <see cref="NewArrayExpression"/> of the specified type from the provided initializers. 133/// <returns>A <see cref="NewArrayExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.NewArrayInit"/> and the <see cref="NewArrayExpression.Expressions"/> property set to the specified value.</returns> 135public static NewArrayExpression NewArrayInit(Type type, IEnumerable<Expression> initializers) 178return NewArrayExpression.Make(ExpressionType.NewArrayInit, type.MakeArrayType(), initializerList); 183internal static NewArrayExpression NewObjectArrayInit(IEnumerable<Expression> initializers) 193/// Creates a <see cref="NewArrayExpression"/> that represents creating an array that has a specified rank. 196/// <param name="bounds">An array that contains Expression objects to use to populate the <see cref="NewArrayExpression.Expressions"/> collection.</param> 197/// <returns>A <see cref="NewArrayExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.NewArrayBounds"/> and the <see cref="NewArrayExpression.Expressions"/> property set to the specified value.</returns> 199public static NewArrayExpression NewArrayBounds(Type type, params Expression[] bounds) 205/// Creates a <see cref="NewArrayExpression"/> that represents creating an array that has a specified rank. 208/// <param name="bounds">An <see cref="IEnumerable{T}"/> that contains <see cref="Expression"/> objects to use to populate the <see cref="NewArrayExpression.Expressions"/> collection.</param> 209/// <returns>A <see cref="NewArrayExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.NewArrayBounds"/> and the <see cref="NewArrayExpression.Expressions"/> property set to the specified value.</returns> 211public static NewArrayExpression NewArrayBounds(Type type, IEnumerable<Expression> bounds) 250return NewArrayExpression.Make(ExpressionType.NewArrayBounds, arrayType, boundsList);
System.Linq.Queryable (2)
System\Linq\EnumerableRewriter.cs (2)
108NewArrayExpression na = (NewArrayExpression)expr;