39 references to TypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (39)
Binder\Binder.ValueChecks.cs (1)
1162getItemOrSliceHelper = getItemOrSliceHelper.AsMember(getItemOrSliceHelper.ContainingType.Construct(ImmutableArray.Create(elementAccess.Expression.Type.TryGetInlineArrayElementField().TypeWithAnnotations)));
Binder\Binder_Expressions.cs (1)
9847Construct(ImmutableArray.Create(elementField.TypeWithAnnotations));
Binder\ForEachEnumeratorInfo.cs (1)
81(collectionType.HasInlineArrayAttribute(out _) && collectionType.TryGetInlineArrayElementField() is FieldSymbol elementField && elementType.Equals(elementField.TypeWithAnnotations, TypeCompareKind.ConsiderEverything)));
Binder\ForEachLoopBinder.cs (2)
866spanType = spanType.Construct(ImmutableArray.Create(elementField.TypeWithAnnotations)); 888((result is EnumeratorResult.Succeeded && builder.ElementTypeWithAnnotations.Equals(elementField.TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions) &&
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1162source.TryGetInlineArrayElementField() is { TypeWithAnnotations: var elementType } &&
BoundTree\BoundInlineArrayAccess.cs (1)
62Debug.Assert(((NamedTypeSymbol)Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].Equals(Expression.Type?.TryGetInlineArrayElementField()?.TypeWithAnnotations ?? default, TypeCompareKind.ConsiderEverything));
Emitter\Model\FieldSymbolAdapter.cs (1)
35TypeWithAnnotations fieldTypeWithAnnotations = AdaptedFieldSymbol.TypeWithAnnotations;
Emitter\Model\SpecializedFieldReference.cs (1)
63TypeWithAnnotations oldType = _underlyingField.TypeWithAnnotations;
FlowAnalysis\FlowAnalysisPass.cs (1)
157F.NullRef(field.TypeWithAnnotations),
FlowAnalysis\NullableWalker.cs (10)
2935nullableAnnotation = backingField.TypeWithAnnotations.NullableAnnotation; 5369TypeWithAnnotations type = expressionType.TryGetInlineArrayElementField()!.TypeWithAnnotations; 9462TrackNullableStateForAssignment(value, field.TypeWithAnnotations, targetSlot, valueType, MakeSlot(value)); 9560TrackNullableStateOfNullableValue(targetFieldSlot, targetField.Type, null, valueField.TypeWithAnnotations.ToTypeWithState(), valueFieldSlot); 9572targetField.TypeWithAnnotations, 9573valueField.TypeWithAnnotations.ToTypeWithState(), 9590Debug.Assert(targetField.TypeWithAnnotations.Type.StrippedType() is NamedTypeSymbol { IsUnionType: true }); 9593TypeWithState valueFieldType = ApplyUnconditionalAnnotations(valueField.TypeWithAnnotations.ToTypeWithState(), GetRValueAnnotations(valueField)); 9622targetField.TypeWithAnnotations, 12513getEnumeratorType = spanType.Construct(ImmutableArray.Create(convertedResult.Type!.TryGetInlineArrayElementField()!.TypeWithAnnotations));
FlowAnalysis\NullableWalker_Patterns.cs (1)
733var type = field.TypeWithAnnotations;
Symbols\FieldSymbol.cs (3)
75public TypeSymbol Type => TypeWithAnnotations.Type; 356if (DeriveUseSiteInfoFromType(ref result, this.TypeWithAnnotations, RefKind == RefKind.None ? AllowedRequiredModifierType.System_Runtime_CompilerServices_Volatile : AllowedRequiredModifierType.None) || 368if (this.TypeWithAnnotations.GetUnificationUseSiteDiagnosticRecursive(ref diagnosticInfo, this, ref unificationCheckedTypes))
Symbols\Metadata\PE\MemberRefMetadataDecoder.cs (1)
185TypeSymbol.Equals((fieldType = field.TypeWithAnnotations).Type, fieldInfo.Type, TypeCompareKind.CLRSignatureCompareOptions) &&
Symbols\PublicModel\FieldSymbol.cs (3)
44Interlocked.CompareExchange(ref _lazyType, _underlying.TypeWithAnnotations.GetPublicSymbol(), null); 51CodeAnalysis.NullableAnnotation IFieldSymbol.NullableAnnotation => _underlying.TypeWithAnnotations.ToPublicAnnotation(); 55get { return _underlying.TypeWithAnnotations.CustomModifiers; }
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
77this.RetargetingTranslator.Retarget(tupleErrorField.TypeWithAnnotations, RetargetOptions.RetargetPrimitiveTypesByTypeCode),
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
399var type = this.TypeWithAnnotations;
Symbols\Source\SourceFieldSymbol.cs (1)
150TypeWithAnnotations.NeedsNullableAttribute())
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5403&& field.TypeWithAnnotations.Equals(param.TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions))
Symbols\Source\SourceMemberFieldSymbol.cs (1)
473return TypeWithAnnotations.DefaultType.IsPointerOrFunctionPointer();
Symbols\Source\SourceNamedTypeSymbol.cs (1)
2012TypeWithAnnotations elementType = elementField.TypeWithAnnotations;
Symbols\Symbol.cs (1)
1689builder.AddValue(field.TypeWithAnnotations);
Symbols\SymbolExtensions.cs (1)
483returnType = field.TypeWithAnnotations;
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
160/// The <see cref="FieldSymbol.TypeWithAnnotations"/> for this symbol does not expose this inferred nullable annotation.
Symbols\Synthesized\SynthesizedEmbeddedAttributePropertySymbol.cs (1)
25public override TypeWithAnnotations TypeWithAnnotations => _backingField.TypeWithAnnotations;
Symbols\Synthesized\SynthesizedFieldSymbolBase.cs (1)
53var typeWithAnnotations = this.TypeWithAnnotations;