60 references to ElementTypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (60)
Binder\Binder_Expressions.cs (1)
4462var elementType = arrayType.ElementTypeWithAnnotations;
Binder\ForEachLoopBinder.cs (1)
1294((ArrayTypeSymbol)collectionExprType).ElementTypeWithAnnotations;
Binder\Semantics\Conversions\ConversionsBase.cs (6)
1664elementType = arrayType.ElementTypeWithAnnotations; 2507return HasImplicitReferenceConversion(s.ElementTypeWithAnnotations, d.ElementTypeWithAnnotations, ref useSiteInfo); 2592TypeWithAnnotations elementType = source.ElementTypeWithAnnotations; 3961if (source is ArrayTypeSymbol { IsSZArray: true, ElementTypeWithAnnotations: { } elementType }) 4026if (source is ArrayTypeSymbol { IsSZArray: true, ElementTypeWithAnnotations: { } elementType } &&
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (6)
1696ExactInference(arraySource.ElementTypeWithAnnotations, arrayTarget.ElementTypeWithAnnotations, ref useSiteInfo); 1745? arraySource.ElementTypeWithAnnotations 2061return arrayTarget.ElementTypeWithAnnotations; 2102var elementSource = arraySource.ElementTypeWithAnnotations; 2541var elementTarget = arrayTarget.ElementTypeWithAnnotations;
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (8)
156var otherModifiers = VisitCustomModifiers(symbol.ElementTypeWithAnnotations.CustomModifiers); 160return ArrayTypeSymbol.CreateSZArray(_otherAssembly, symbol.ElementTypeWithAnnotations.WithTypeAndModifiers(otherElementType, otherModifiers)); 163return ArrayTypeSymbol.CreateMDArray(_otherAssembly, symbol.ElementTypeWithAnnotations.WithTypeAndModifiers(otherElementType, otherModifiers), symbol.Rank, symbol.Sizes, symbol.LowerBounds); 569Debug.Assert(type.ElementTypeWithAnnotations.CustomModifiers.IsEmpty); 570Debug.Assert(other.ElementTypeWithAnnotations.CustomModifiers.IsEmpty); 862var translatedModifiers = VisitCustomModifiers(symbol.ElementTypeWithAnnotations.CustomModifiers); 866return ArrayTypeSymbol.CreateSZArray(symbol.BaseTypeNoUseSiteDiagnostics.ContainingAssembly, symbol.ElementTypeWithAnnotations.WithTypeAndModifiers(translatedElementType, translatedModifiers)); 869return ArrayTypeSymbol.CreateMDArray(symbol.BaseTypeNoUseSiteDiagnostics.ContainingAssembly, symbol.ElementTypeWithAnnotations.WithTypeAndModifiers(translatedElementType, translatedModifiers), symbol.Rank, symbol.Sizes, symbol.LowerBounds);
Emitter\Model\ArrayTypeSymbolAdapter.cs (1)
26TypeWithAnnotations elementType = AdaptedArrayTypeSymbol.ElementTypeWithAnnotations;
FlowAnalysis\NullableWalker.cs (3)
4636ArrayTypeSymbol arrayType => arrayType.ElementTypeWithAnnotations, 4866result = type?.ElementTypeWithAnnotations ?? default; 11041currentPropertyGetterTypeWithState = arrayType.ElementTypeWithAnnotations.ToTypeWithState();
FlowAnalysis\NullableWalker_Patterns.cs (1)
855: ((ArrayTypeSymbol)inputType).ElementTypeWithAnnotations,
Lowering\LocalRewriter\LocalRewriter.cs (1)
844var elementType = ((ArrayTypeSymbol)node.Expression.Type).ElementTypeWithAnnotations;
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
679var linqToArrayMethod = linqToArrayMethodGeneric.Construct([arrayType.ElementTypeWithAnnotations]);
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (1)
517TypeWithAnnotations arrayElementType = arrayType.ElementTypeWithAnnotations;
Symbols\AbstractTypeMap.cs (1)
186var oldElement = t.ElementTypeWithAnnotations;
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
211typeArgumentsBuilder.Add(((ArrayTypeSymbol)field.Type).ElementTypeWithAnnotations);
Symbols\ArrayTypeSymbol.cs (9)
99return ElementTypeWithAnnotations.IsSameAs(elementTypeWithAnnotations) ? this : WithElementTypeCore(elementTypeWithAnnotations); 354!other.ElementTypeWithAnnotations.Equals(ElementTypeWithAnnotations, comparison)) 388ElementTypeWithAnnotations.AddNullableTransforms(transforms); 393TypeWithAnnotations oldElementType = ElementTypeWithAnnotations; 408return WithElementType(transform(ElementTypeWithAnnotations)); 414TypeWithAnnotations elementType = ElementTypeWithAnnotations.MergeEquivalentTypes(((ArrayTypeSymbol)other).ElementTypeWithAnnotations, variance); 458DeriveUseSiteInfoFromType(ref result, this.ElementTypeWithAnnotations, AllowedRequiredModifierType.None);
Symbols\Compilation_WellKnownMembers.cs (1)
949HandleCustomModifiers(((ArrayTypeSymbol)type).ElementTypeWithAnnotations.CustomModifiers.Length, transformFlagsBuilder);
Symbols\Metadata\PE\DynamicTypeDecoder.cs (5)
307if (!HandleCustomModifiers(arrayType.ElementTypeWithAnnotations.CustomModifiers.Length)) 321ArrayTypeSymbol.CreateSZArray(_containingAssembly, arrayType.ElementTypeWithAnnotations.WithTypeAndModifiers(transformedElementType, arrayType.ElementTypeWithAnnotations.CustomModifiers)) : 322ArrayTypeSymbol.CreateMDArray(_containingAssembly, arrayType.ElementTypeWithAnnotations.WithTypeAndModifiers(transformedElementType, arrayType.ElementTypeWithAnnotations.CustomModifiers), arrayType.Rank, arrayType.Sizes, arrayType.LowerBounds);
Symbols\Metadata\PE\NativeIntegerTypeDecoder.cs (1)
155if (TransformTypeWithAnnotations(type.ElementTypeWithAnnotations) is { } elementType)
Symbols\Metadata\PE\TupleTypeDecoder.cs (1)
336TypeWithAnnotations decodedElementType = DecodeTypeInternal(type.ElementTypeWithAnnotations);
Symbols\PublicModel\ArrayTypeSymbol.cs (3)
49Interlocked.CompareExchange(ref _lazyElementType, _underlying.ElementTypeWithAnnotations.GetPublicSymbol(), null); 60return _underlying.ElementTypeWithAnnotations.ToPublicAnnotation(); 64ImmutableArray<CustomModifier> IArrayTypeSymbol.CustomModifiers => _underlying.ElementTypeWithAnnotations.CustomModifiers;
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
697TypeWithAnnotations oldElement = type.ElementTypeWithAnnotations;
Symbols\TypeSymbolExtensions.cs (2)
922next = ((ArrayTypeSymbol)current).ElementTypeWithAnnotations; 2021var elementType = arrayType.ElementTypeWithAnnotations;
Symbols\TypeUnification.cs (2)
126return CanUnifyHelper(at1.ElementTypeWithAnnotations, at2.ElementTypeWithAnnotations, ref substitution);
Symbols\TypeWithAnnotations.cs (1)
657typeWithAnnotations = ((ArrayTypeSymbol)type).ElementTypeWithAnnotations;
Utilities\TypeSymbolExtensions.cs (2)
34return customModifierCountForTypeWithAnnotations(array.ElementTypeWithAnnotations); 100TypeWithAnnotations elementType = array.ElementTypeWithAnnotations;