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