21 references to TryGetInlineArrayElementField
Microsoft.CodeAnalysis.CSharp (21)
Binder\Binder.ValueChecks.cs (1)
1162
getItemOrSliceHelper = getItemOrSliceHelper.AsMember(getItemOrSliceHelper.ContainingType.Construct(ImmutableArray.Create(elementAccess.Expression.Type.
TryGetInlineArrayElementField
().TypeWithAnnotations)));
Binder\Binder_Conversions.cs (1)
525
FieldSymbol? elementField = source.Type.
TryGetInlineArrayElementField
();
Binder\Binder_Expressions.cs (1)
9683
Debug.Assert(expr.Type.
TryGetInlineArrayElementField
() is not null);
Binder\ForEachEnumeratorInfo.cs (1)
81
(collectionType.HasInlineArrayAttribute(out _) && collectionType.
TryGetInlineArrayElementField
() is FieldSymbol elementField && elementType.Equals(elementField.TypeWithAnnotations, TypeCompareKind.ConsiderEverything)));
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1162
source.
TryGetInlineArrayElementField
() is { TypeWithAnnotations: var elementType } &&
BoundTree\BoundInlineArrayAccess.cs (2)
62
Debug.Assert(((NamedTypeSymbol)Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].Equals(Expression.Type?.
TryGetInlineArrayElementField
()?.TypeWithAnnotations ?? default, TypeCompareKind.ConsiderEverything));
70
Debug.Assert(Type.Equals(Expression.Type?.
TryGetInlineArrayElementField
()?.Type, TypeCompareKind.ConsiderEverything));
FlowAnalysis\DefiniteAssignment.cs (1)
1551
int slot = MakeMemberSlot(elementAccess.Expression, elementAccess.Expression.Type.
TryGetInlineArrayElementField
());
FlowAnalysis\NullableWalker.cs (3)
5369
TypeWithAnnotations type = expressionType.
TryGetInlineArrayElementField
()!.TypeWithAnnotations;
9100
value.Type.
TryGetInlineArrayElementField
() is not null)
12513
getEnumeratorType = spanType.Construct(ImmutableArray.Create(convertedResult.Type!.
TryGetInlineArrayElementField
()!.TypeWithAnnotations));
Lowering\AsyncRewriter\RuntimeAsyncRewriter.cs (1)
228
(leftLocal.LocalSymbol.SynthesizedKind == SynthesizedLocalKind.ForEachArray && leftLocal.LocalSymbol.Type.HasInlineArrayAttribute(out _) && leftLocal.LocalSymbol.Type.
TryGetInlineArrayElementField
() is object));
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (1)
784
elementRef = elementRef.Construct(inlineArrayType, inlineArrayType.
TryGetInlineArrayElementField
()!.Type);
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (3)
398
return createSpan.Construct(node.Expression.Type, node.Expression.Type.
TryGetInlineArrayElementField
()!.Type);
425
elementRef = elementRef.Construct(node.Expression.Type, node.Expression.Type.
TryGetInlineArrayElementField
()!.Type);
444
elementRef = elementRef.Construct(node.Expression.Type, node.Expression.Type.
TryGetInlineArrayElementField
()!.Type);
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
247
refLocal.Type.
TryGetInlineArrayElementField
() is not null);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (2)
320
(local.SynthesizedKind == SynthesizedLocalKind.ForEachArray && local.Type.HasInlineArrayAttribute(out _) && local.Type.
TryGetInlineArrayElementField
() is object));
645
(leftLocal.SynthesizedKind == SynthesizedLocalKind.ForEachArray && leftLocal.Type.HasInlineArrayAttribute(out _) && leftLocal.Type.
TryGetInlineArrayElementField
() is object));
Lowering\StateMachineRewriter\RefInitializationHoister.cs (1)
75
(local.SynthesizedKind == SynthesizedLocalKind.ForEachArray && local.Type.HasInlineArrayAttribute(out _) && local.Type.
TryGetInlineArrayElementField
() is object));
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
179
(synthesizedKind == SynthesizedLocalKind.ForEachArray && local.Type.HasInlineArrayAttribute(out _) && local.Type.
TryGetInlineArrayElementField
() is object));