20 references to TryGetInlineArrayElementField
Microsoft.CodeAnalysis.CSharp (20)
Binder\Binder.ValueChecks.cs (1)
893
getItemOrSliceHelper = getItemOrSliceHelper.AsMember(getItemOrSliceHelper.ContainingType.Construct(ImmutableArray.Create(elementAccess.Expression.Type.
TryGetInlineArrayElementField
().TypeWithAnnotations)));
Binder\Binder_Conversions.cs (1)
448
FieldSymbol? elementField = source.Type.
TryGetInlineArrayElementField
();
Binder\Binder_Expressions.cs (1)
9035
Debug.Assert(expr.Type.
TryGetInlineArrayElementField
() is not null);
Binder\ForEachEnumeratorInfo.cs (1)
75
(collectionType.HasInlineArrayAttribute(out _) && collectionType.
TryGetInlineArrayElementField
() is FieldSymbol elementField && elementType.Equals(elementField.TypeWithAnnotations, TypeCompareKind.ConsiderEverything)));
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1147
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)
1598
int slot = MakeMemberSlot(elementAccess.Expression, elementAccess.Expression.Type.
TryGetInlineArrayElementField
());
FlowAnalysis\NullableWalker.cs (3)
4824
TypeWithAnnotations type = expressionType.
TryGetInlineArrayElementField
()!.TypeWithAnnotations;
8136
value.Type.
TryGetInlineArrayElementField
() is not null)
11001
getEnumeratorType = spanType.Construct(ImmutableArray.Create(convertedResult.Type!.
TryGetInlineArrayElementField
()!.TypeWithAnnotations));
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (1)
785
elementRef = elementRef.Construct(inlineArrayType, inlineArrayType.
TryGetInlineArrayElementField
()!.Type);
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (3)
335
return createSpan.Construct(node.Expression.Type, node.Expression.Type.
TryGetInlineArrayElementField
()!.Type);
362
elementRef = elementRef.Construct(node.Expression.Type, node.Expression.Type.
TryGetInlineArrayElementField
()!.Type);
381
elementRef = elementRef.Construct(node.Expression.Type, node.Expression.Type.
TryGetInlineArrayElementField
()!.Type);
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
228
refLocal.Type.
TryGetInlineArrayElementField
() is not null);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (3)
316
(local.SynthesizedKind == SynthesizedLocalKind.ForEachArray && local.Type.HasInlineArrayAttribute(out _) && local.Type.
TryGetInlineArrayElementField
() is object));
511
(local.SynthesizedKind == SynthesizedLocalKind.ForEachArray && local.Type.HasInlineArrayAttribute(out _) && local.Type.
TryGetInlineArrayElementField
() is object));
854
(leftLocal.SynthesizedKind == SynthesizedLocalKind.ForEachArray && leftLocal.Type.HasInlineArrayAttribute(out _) && leftLocal.Type.
TryGetInlineArrayElementField
() is object));
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
175
(synthesizedKind == SynthesizedLocalKind.ForEachArray && local.Type.HasInlineArrayAttribute(out _) && local.Type.
TryGetInlineArrayElementField
() is object));