7 writes to CollectionType
Microsoft.CodeAnalysis.CSharp (7)
Binder\ForEachLoopBinder.cs (7)
881builder.CollectionType = collectionExpr.Type; 1040builder.CollectionType = builder.GetEnumeratorInfo.Method.Parameters[0].Type; 1044builder.CollectionType = builder.GetEnumeratorInfo.Method.ContainingType.ExtensionParameter.Type; 1049builder.CollectionType = collectionExpr.Type; 1096builder.CollectionType = unwrappedCollectionExprType; 1306builder.CollectionType = GetSpecialType(SpecialType.System_Collections_IEnumerable, diagnostics, syntax); 1830builder.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)
533Conversion collectionConversionClassification = this.Conversions.ClassifyConversionFromExpression(collectionExpr, builder.CollectionType, isChecked: CheckOverflowAtRuntime, ref useSiteInfo); 562BoundExpression convertedCollectionExpression = ConvertForEachCollection(collectionExpr, collectionConversionClassification, builder.CollectionType, diagnostics); 579(IsIEnumerable(builder.CollectionType) || 580IsIEnumerableT(builder.CollectionType.OriginalDefinition, IsAsync, Compilation) || 693else if (collectionExpr.Type.SpecialType == SpecialType.System_String && builder.CollectionType.SpecialType == SpecialType.System_Collections_IEnumerable) 880Debug.Assert(builder.CollectionType == (object)spanType); 1090Debug.Assert((object)builder.CollectionType != null); 1092NamedTypeSymbol collectionType = (NamedTypeSymbol)builder.CollectionType;