52 references to System_Collections_IEnumerable
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\Parser\KnownTypeSymbols.cs (1)
100IEnumerable = compilation.GetSpecialType(SpecialType.System_Collections_IEnumerable);
Microsoft.CodeAnalysis (1)
SpecialMembers.cs (1)
819(byte)SpecialType.System_Collections_IEnumerable, // DeclaringTypeId
Microsoft.CodeAnalysis.CodeStyle (3)
src\Analyzers\Core\Analyzers\ForEachCast\AbstractForEachCastDiagnosticAnalyzer.cs (2)
142var isFixable = collectionType.SpecialType == SpecialType.System_Collections_IEnumerable || collectionType.AllInterfaces.Any(static i => i.SpecialType == SpecialType.System_Collections_IEnumerable) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
406typeSymbol.AllInterfaces.Any(static i => i.SpecialType == SpecialType.System_Collections_IEnumerable) &&
Microsoft.CodeAnalysis.CSharp (17)
Binder\Binder_Expressions.cs (1)
6251NamedTypeSymbol collectionsIEnumerableType = this.GetSpecialType(SpecialType.System_Collections_IEnumerable, diagnostics, node);
Binder\Binder_Lookup.cs (1)
980iFaceSpecial == SpecialType.System_Collections_IEnumerable ||
Binder\Binder_QueryErrors.cs (1)
127var ienumerable = Compilation.GetSpecialType(SpecialType.System_Collections_IEnumerable);
Binder\ForEachLoopBinder.cs (5)
682else if (collectionExpr.Type.SpecialType == SpecialType.System_String && builder.CollectionType.SpecialType == SpecialType.System_Collections_IEnumerable) 1158Debug.Assert(collectionType.SpecialType == SpecialType.System_Collections_IEnumerable); 1281builder.CollectionType = GetSpecialType(SpecialType.System_Collections_IEnumerable, diagnostics, syntax); 1725case SpecialType.System_Collections_IEnumerable: 1767var implementedNonGeneric = this.Compilation.GetSpecialType(SpecialType.System_Collections_IEnumerable);
Binder\InMethodBinder.cs (1)
153case SpecialType.System_Collections_IEnumerable:
Binder\Semantics\Conversions\ConversionsBase.cs (2)
1681else if (implementsSpecialInterface(compilation, destination, SpecialType.System_Collections_IEnumerable)) 2575if (destination.SpecialType == SpecialType.System_Collections_IEnumerable)
FlowAnalysis\NullableWalker.cs (1)
10926if (collectionExpression.Type!.SpecialType == SpecialType.System_Collections_IEnumerable)
Lowering\IteratorRewriter\IteratorRewriter.cs (2)
70case SpecialType.System_Collections_IEnumerable: 119EnsureSpecialType(SpecialType.System_Collections_IEnumerable, bag);
Lowering\IteratorRewriter\IteratorStateMachine.cs (1)
35interfaces.Add(ContainingAssembly.GetSpecialType(SpecialType.System_Collections_IEnumerable));
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (2)
58SpecialType.System_Collections_IEnumerable, 286var iEnumerable = compilation.GetSpecialType(SpecialType.System_Collections_IEnumerable);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Semantics\CollectionExpressionTests.cs (2)
9180comp.MakeTypeMissing(SpecialType.System_Collections_IEnumerable); 13370[InlineData(SpecialType.System_Collections_IEnumerable, "System.Collections.IEnumerable")]
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Semantics\ForEachTests.cs (7)
1220Assert.Equal(SpecialType.System_Collections_IEnumerable, boundNode.Expression.Type.SpecialType); 1461Assert.Equal(SpecialType.System_Collections_IEnumerable, boundNode.Expression.Type.SpecialType); 1500Assert.Equal(SpecialType.System_Collections_IEnumerable, boundNode.Expression.Type.SpecialType); 1668Assert.Equal(SpecialType.System_Collections_IEnumerable, info.CollectionType.SpecialType); 1681Assert.Equal(SpecialType.System_Collections_IEnumerable, boundNode.Expression.Type.SpecialType); 1701Assert.Equal(SpecialType.System_Collections_IEnumerable, info.CollectionType.SpecialType); 1714Assert.Equal(SpecialType.System_Collections_IEnumerable, boundNode.Expression.Type.SpecialType);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\SemanticModelGetSemanticInfoTests.cs (1)
6231Assert.Equal(SpecialType.System_Collections_IEnumerable, semanticInfo.ConvertedType.SpecialType);
Microsoft.CodeAnalysis.Features (2)
src\Analyzers\Core\Analyzers\ForEachCast\AbstractForEachCastDiagnosticAnalyzer.cs (2)
142var isFixable = collectionType.SpecialType == SpecialType.System_Collections_IEnumerable || collectionType.AllInterfaces.Any(static i => i.SpecialType == SpecialType.System_Collections_IEnumerable) &&
Microsoft.CodeAnalysis.VisualBasic (12)
Binding\Binder_Lambda.vb (2)
63returnType.SpecialType <> SpecialType.System_Collections_IEnumerable AndAlso 174Not ((source.Flags And SourceMemberFlags.Iterator) <> 0 AndAlso (target.ReturnType.SpecialType = SpecialType.System_Collections_IEnumerable OrElse
Binding\Binder_Lookup.vb (1)
839iFaceSpecial = SpecialType.System_Collections_IEnumerable OrElse
Binding\Binder_ObjectInitializer.vb (1)
872Dim ienumerable = GetSpecialType(SpecialType.System_Collections_IEnumerable,
Binding\Binder_Statements.vb (3)
3811Dim ienumerable = GetSpecialType(SpecialType.System_Collections_IEnumerable, collectionSyntax, ienumerableUseSiteDiagnostics) 3821interfaceSpecialType = SpecialType.System_Collections_IEnumerable 5115If returnSpecialType = SpecialType.System_Collections_IEnumerable OrElse
Lowering\IteratorRewriter\IteratorRewriter.vb (2)
64retSpecialType = SpecialType.System_Collections_IEnumerable 120EnsureSpecialType(SpecialType.System_Collections_IEnumerable, bag)
Lowering\IteratorRewriter\IteratorStateMachine.vb (1)
52interfaces.Add(containingAssembly.GetSpecialType(SpecialType.System_Collections_IEnumerable))
Symbols\Source\SourceMethodSymbol.vb (1)
2337retType.SpecialType <> SpecialType.System_Collections_IEnumerable AndAlso
Symbols\Source\SourcePropertySymbol.vb (1)
392type.SpecialType <> SpecialType.System_Collections_IEnumerable AndAlso
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
CodeCleanup\AsyncOrIteratorFunctionReturnTypeFixer.vb (1)
133Case SpecialType.System_Collections_IEnumerable, SpecialType.System_Collections_IEnumerator,
Microsoft.CodeAnalysis.Workspaces (3)
Shared\Extensions\ITypeSymbolExtensions.cs (2)
178if (type.OriginalDefinition is { SpecialType: SpecialType.System_Collections_Generic_IEnumerable_T or SpecialType.System_Collections_IEnumerable }) 183return type.AllInterfaces.Any(s => s.SpecialType is SpecialType.System_Collections_Generic_IEnumerable_T or SpecialType.System_Collections_IEnumerable);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
406typeSymbol.AllInterfaces.Any(static i => i.SpecialType == SpecialType.System_Collections_IEnumerable) &&
Microsoft.Extensions.Logging.Generators (1)
LoggerMessageGenerator.Parser.cs (1)
67INamedTypeSymbol enumerableSymbol = _compilation.GetSpecialType(SpecialType.System_Collections_IEnumerable);
Microsoft.Gen.Logging (1)
Parsing\SymbolLoader.cs (1)
89var enumerableSymbol = compilation.GetSpecialType(SpecialType.System_Collections_IEnumerable);