1 write to ElementTypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (1)
Binder\ForEachEnumeratorInfo.cs (1)
81this.ElementTypeWithAnnotations = elementType;
20 references to ElementTypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (3)
Binder\ForEachEnumeratorInfo.cs (1)
25public TypeSymbol ElementType => ElementTypeWithAnnotations.Type;
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (1)
715LowerBoundInference(enumeratorInfo.ElementTypeWithAnnotations, target, ref useSiteInfo);
Compilation\MemberSemanticModel.cs (1)
993enumeratorInfoOpt.ElementTypeWithAnnotations.GetPublicSymbol(),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (17)
Semantics\ForEachTests.cs (17)
1208Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType); 1246Assert.Equal(SpecialType.System_Char, info.ElementTypeWithAnnotations.SpecialType); 1290Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType); 1334Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType); 1367Assert.Equal(SpecialType.System_Object, info.ElementTypeWithAnnotations.SpecialType); 1407Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType); 1449Assert.Equal(SpecialType.System_Object, info.ElementTypeWithAnnotations.SpecialType); 1488Assert.Equal(SpecialType.System_Object, info.ElementTypeWithAnnotations.SpecialType); 1521Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType); 1552Assert.Equal(SpecialType.System_Char, info.ElementTypeWithAnnotations.SpecialType); 1638Assert.Equal("C.var", info.ElementTypeWithAnnotations.ToTestDisplayString()); 1669Assert.Equal(SpecialType.System_Object, info.ElementTypeWithAnnotations.SpecialType); 1743Assert.Equal(SpecialType.System_Object, info.ElementTypeWithAnnotations.SpecialType); 1827Assert.Equal(SpecialType.System_Object, info.ElementTypeWithAnnotations.SpecialType); 1874Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType); 3118Assert.Equal(SpecialType.System_Char, info.ElementTypeWithAnnotations.SpecialType); 3236Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType);