4 instantiations of IndexExpression
System.Linq.Expressions (4)
System\Linq\Expressions\Compiler\StackSpiller.cs (2)
199new IndexExpression( 422expr = new IndexExpression(
System\Linq\Expressions\IndexExpression.cs (2)
198return new IndexExpression(array, null, indexList); 366return new IndexExpression(instance, indexer, argList);
62 references to IndexExpression
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
1555var indexExpression = Expression.MakeIndex(sourceExpression, itemProperty, indexArguments);
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
ExpressionTrees\Sources\ExprLambdaUtils.vb (1)
210Protected Overrides Function VisitIndex(node As IndexExpression) As Expression
netstandard (1)
netstandard.cs (1)
1004[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Expressions.IndexExpression))]
System.Core (1)
System.Core.cs (1)
142[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Expressions.IndexExpression))]
System.Linq.Expressions (58)
System\Dynamic\Utils\ExpressionUtils.cs (2)
199IndexExpression index = (IndexExpression)expression;
System\Linq\Expressions\BinaryExpression.cs (3)
232var index = (IndexExpression)Left; 252IndexExpression tempIndex = Expression.MakeIndex(tempObj, index.Indexer, tempArgs.ToReadOnly());
System\Linq\Expressions\Compiler\LambdaCompiler.Address.cs (5)
55AddressOf((IndexExpression)node, type); 186private void AddressOf(IndexExpression node, Type type) 245result = AddressOfWriteBack((IndexExpression)node); 309private WriteBack? AddressOfWriteBack(IndexExpression node) 319private WriteBack AddressOfWriteBackCore(IndexExpression node)
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (6)
229var node = (IndexExpression)expr; 253var index = (IndexExpression)node.Left; 293private void EmitGetIndexCall(IndexExpression node, Type? objectType) 321private void EmitSetIndexCall(IndexExpression node, Type? objectType)
System\Linq\Expressions\Compiler\StackSpiller.cs (4)
183var index = (IndexExpression)node.Left; 406var node = (IndexExpression)expr;
System\Linq\Expressions\DebugViewWriter.cs (1)
1112protected internal override Expression VisitIndex(IndexExpression node)
System\Linq\Expressions\Expression.cs (1)
255PropertyInfo? indexer = ((IndexExpression)expression).Indexer;
System\Linq\Expressions\Expression.DebuggerProxy.cs (2)
164private readonly IndexExpression _node; 166public IndexExpressionProxy(IndexExpression node)
System\Linq\Expressions\ExpressionStringBuilder.cs (1)
749protected internal override Expression VisitIndex(IndexExpression node)
System\Linq\Expressions\ExpressionVisitor.cs (2)
380/// Visits the children of the <see cref="IndexExpression"/>. 385protected internal virtual Expression VisitIndex(IndexExpression node)
System\Linq\Expressions\IArgumentProvider.cs (1)
9/// <see cref="NewExpression"/>, and <see cref="IndexExpression"/>).
System\Linq\Expressions\IndexExpression.cs (20)
87public IndexExpression Update(Expression @object, IEnumerable<Expression>? arguments) 132/// Creates an <see cref="IndexExpression"/> that represents accessing an indexed property in an object. 137/// <returns>The created <see cref="IndexExpression"/>.</returns> 138public static IndexExpression MakeIndex(Expression instance, PropertyInfo? indexer, IEnumerable<Expression>? arguments) 153/// Creates an <see cref="IndexExpression"/> to access an array. 159/// <returns>The created <see cref="IndexExpression"/>.</returns> 160public static IndexExpression ArrayAccess(Expression array, params Expression[]? indexes) 166/// Creates an <see cref="IndexExpression"/> to access an array. 172/// <returns>The created <see cref="IndexExpression"/>.</returns> 173public static IndexExpression ArrayAccess(Expression array, IEnumerable<Expression>? indexes) 206/// Creates an <see cref="IndexExpression"/> representing the access to an indexed property. 211/// <returns>The created <see cref="IndexExpression"/>.</returns> 213public static IndexExpression Property(Expression instance, string propertyName, params Expression[]? arguments) 342/// Creates an <see cref="IndexExpression"/> representing the access to an indexed property. 347/// <returns>The created <see cref="IndexExpression"/>.</returns> 348public static IndexExpression Property(Expression? instance, PropertyInfo indexer, params Expression[]? arguments) 354/// Creates an <see cref="IndexExpression"/> representing the access to an indexed property. 359/// <returns>The created <see cref="IndexExpression"/>.</returns> 360public static IndexExpression Property(Expression? instance, PropertyInfo indexer, IEnumerable<Expression>? arguments) => 363private static IndexExpression MakeIndexProperty(Expression? instance, PropertyInfo indexer, string paramName, ReadOnlyCollection<Expression> argList)
System\Linq\Expressions\Interpreter\LightCompiler.cs (8)
572var index = (IndexExpression)expr; 589private void EmitIndexGet(IndexExpression index) 607var index = (IndexExpression)node.Left; 2235return ((IndexExpression)node).Object!.Type.IsArray; 2264var indexNode = (IndexExpression)node;
System\Linq\Expressions\UnaryExpression.cs (2)
239var index = (IndexExpression)Operand;