7 writes to CollectionType
Microsoft.CodeAnalysis.CSharp (7)
Binder\ForEachLoopBinder.cs (7)
885builder.CollectionType = collectionExpr.Type; 1044builder.CollectionType = builder.GetEnumeratorInfo.Method.Parameters[0].Type; 1048builder.CollectionType = builder.GetEnumeratorInfo.Method.ContainingType.ExtensionParameter.Type; 1053builder.CollectionType = collectionExpr.Type; 1100builder.CollectionType = unwrappedCollectionExprType; 1310builder.CollectionType = GetSpecialType(SpecialType.System_Collections_IEnumerable, diagnostics, syntax); 1834builder.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)
537Conversion collectionConversionClassification = this.Conversions.ClassifyConversionFromExpression(collectionExpr, builder.CollectionType, isChecked: CheckOverflowAtRuntime, ref useSiteInfo); 566BoundExpression convertedCollectionExpression = ConvertForEachCollection(collectionExpr, collectionConversionClassification, builder.CollectionType, diagnostics); 583(IsIEnumerable(builder.CollectionType) || 584IsIEnumerableT(builder.CollectionType.OriginalDefinition, IsAsync, Compilation) || 697else if (collectionExpr.Type.SpecialType == SpecialType.System_String && builder.CollectionType.SpecialType == SpecialType.System_Collections_IEnumerable) 884Debug.Assert(builder.CollectionType == (object)spanType); 1094Debug.Assert((object)builder.CollectionType != null); 1096NamedTypeSymbol collectionType = (NamedTypeSymbol)builder.CollectionType;