5 writes to CollectionType
Microsoft.CodeAnalysis.CSharp (5)
Binder\ForEachLoopBinder.cs (5)
870
builder.
CollectionType
= collectionExpr.Type;
1023
builder.
CollectionType
= viaExtensionMethod
1071
builder.
CollectionType
= unwrappedCollectionExprType;
1281
builder.
CollectionType
= GetSpecialType(SpecialType.System_Collections_IEnumerable, diagnostics, syntax);
1783
builder.
CollectionType
= implementedIEnumerable;
11 references to CollectionType
Microsoft.CodeAnalysis.CSharp (11)
Binder\ForEachEnumeratorInfo.cs (3)
118
Debug.Assert((object)
CollectionType
!= null, $"'{nameof(
CollectionType
)}' cannot be null");
126
CollectionType
,
Binder\ForEachLoopBinder.cs (8)
523
Conversion collectionConversionClassification = this.Conversions.ClassifyConversionFromExpression(collectionExpr, builder.
CollectionType
, isChecked: CheckOverflowAtRuntime, ref useSiteInfo);
552
BoundExpression convertedCollectionExpression = ConvertForEachCollection(collectionExpr, collectionConversionClassification, builder.
CollectionType
, diagnostics);
569
(IsIEnumerable(builder.
CollectionType
) ||
570
IsIEnumerableT(builder.
CollectionType
.OriginalDefinition, IsAsync, Compilation) ||
682
else if (collectionExpr.Type.SpecialType == SpecialType.System_String && builder.
CollectionType
.SpecialType == SpecialType.System_Collections_IEnumerable)
869
Debug.Assert(builder.
CollectionType
== (object)spanType);
1065
Debug.Assert((object)builder.
CollectionType
!= null);
1067
NamedTypeSymbol collectionType = (NamedTypeSymbol)builder.
CollectionType
;