34 references to TypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (34)
Binder\Binder.ValueChecks.cs (1)
916getItemOrSliceHelper = getItemOrSliceHelper.AsMember(getItemOrSliceHelper.ContainingType.Construct(ImmutableArray.Create(elementAccess.Expression.Type.TryGetInlineArrayElementField().TypeWithAnnotations)));
Binder\Binder_Expressions.cs (1)
9196Construct(ImmutableArray.Create(elementField.TypeWithAnnotations));
Binder\ForEachEnumeratorInfo.cs (1)
75(collectionType.HasInlineArrayAttribute(out _) && collectionType.TryGetInlineArrayElementField() is FieldSymbol elementField && elementType.Equals(elementField.TypeWithAnnotations, TypeCompareKind.ConsiderEverything)));
Binder\ForEachLoopBinder.cs (2)
843spanType = spanType.Construct(ImmutableArray.Create(elementField.TypeWithAnnotations)); 865((result is EnumeratorResult.Succeeded && builder.ElementTypeWithAnnotations.Equals(elementField.TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions) &&
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1147source.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)
154F.NullRef(field.TypeWithAnnotations),
FlowAnalysis\NullableWalker.cs (7)
726symbolType = f.TypeWithAnnotations; 4824TypeWithAnnotations type = expressionType.TryGetInlineArrayElementField()!.TypeWithAnnotations; 8499TrackNullableStateForAssignment(value, field.TypeWithAnnotations, targetSlot, valueType, MakeSlot(value)); 8596TrackNullableStateOfNullableValue(targetFieldSlot, targetField.Type, null, valueField.TypeWithAnnotations.ToTypeWithState(), valueFieldSlot); 8608targetField.TypeWithAnnotations, 8609valueField.TypeWithAnnotations.ToTypeWithState(), 11004getEnumeratorType = spanType.Construct(ImmutableArray.Create(convertedResult.Type!.TryGetInlineArrayElementField()!.TypeWithAnnotations));
FlowAnalysis\NullableWalker_Patterns.cs (1)
489var 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)
398var type = this.TypeWithAnnotations;
Symbols\Source\SourceFieldSymbol.cs (1)
150TypeWithAnnotations.NeedsNullableAttribute())
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4546&& field.TypeWithAnnotations.Equals(param.TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions))
Symbols\Source\SourceMemberFieldSymbol.cs (1)
427return TypeWithAnnotations.DefaultType.IsPointerOrFunctionPointer();
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1865TypeWithAnnotations elementType = elementField.TypeWithAnnotations;
Symbols\Symbol.cs (1)
1651builder.AddValue(field.TypeWithAnnotations);
Symbols\SymbolExtensions.cs (1)
495returnType = field.TypeWithAnnotations;
Symbols\Synthesized\SynthesizedFieldSymbolBase.cs (1)
51var typeWithAnnotations = this.TypeWithAnnotations;