2 types derived from NewArrayExpression
System.Linq.Expressions (2)
System\Linq\Expressions\NewArrayExpression.cs (2)
82
internal sealed class NewArrayInitExpression :
NewArrayExpression
98
internal sealed class NewArrayBoundsExpression :
NewArrayExpression
44 references to NewArrayExpression
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
ExpressionTrees\Sources\ExprLambdaUtils.vb (1)
384
Protected Overrides Function VisitNewArray(node As
NewArrayExpression
) As Expression
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\PredefinedTypes.cs (1)
167
new PredefinedTypeInfo(PredefinedType.PT_NEWARRAYEXPRESSION, typeof(System.Linq.Expressions.
NewArrayExpression
), "System.Linq.Expressions.NewArrayExpression"),
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\Expressions\ExpressionResolverBuilder.cs (1)
129
static
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)
898
NewArrayExpression
node = (
NewArrayExpression
)expr;
System\Linq\Expressions\Compiler\StackSpiller.cs (3)
469
var
node = (
NewArrayExpression
)expr;
489
expr =
NewArrayExpression
.Make(node.NodeType, node.Type, new TrueReadOnlyCollection<Expression>(cr[0, -1]!));
System\Linq\Expressions\DebugViewWriter.cs (1)
786
protected internal override Expression VisitNewArray(
NewArrayExpression
node)
System\Linq\Expressions\Expression.DebuggerProxy.cs (2)
332
private readonly
NewArrayExpression
_node;
334
public NewArrayExpressionProxy(
NewArrayExpression
node)
System\Linq\Expressions\ExpressionStringBuilder.cs (1)
539
protected internal override Expression VisitNewArray(
NewArrayExpression
node)
System\Linq\Expressions\ExpressionVisitor.cs (2)
416
/// Visits the children of the <see cref="
NewArrayExpression
"/>.
421
protected internal virtual Expression VisitNewArray(
NewArrayExpression
node)
System\Linq\Expressions\Interpreter\LightCompiler.cs (3)
2517
Debug.Assert(typeof(
NewArrayExpression
).GetCustomAttribute<RequiresDynamicCodeAttribute>() is not null);
2518
var
node = (
NewArrayExpression
)expr;
System\Linq\Expressions\NewArrayExpression.cs (23)
26
internal static
NewArrayExpression
Make(ExpressionType nodeType, Type type, ReadOnlyCollection<Expression> expressions)
65
public
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>
123
public 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>
135
public static
NewArrayExpression
NewArrayInit(Type type, IEnumerable<Expression> initializers)
178
return
NewArrayExpression
.Make(ExpressionType.NewArrayInit, type.MakeArrayType(), initializerList);
183
internal 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>
199
public 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>
211
public static
NewArrayExpression
NewArrayBounds(Type type, IEnumerable<Expression> bounds)
250
return
NewArrayExpression
.Make(ExpressionType.NewArrayBounds, arrayType, boundsList);
System.Linq.Queryable (2)
System\Linq\EnumerableRewriter.cs (2)
108
NewArrayExpression
na = (
NewArrayExpression
)expr;