1 write to ElementTypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (1)
Binder\ForEachEnumeratorInfo.cs (1)
88this.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)
717LowerBoundInference(enumeratorInfo.ElementTypeWithAnnotations, target, ref useSiteInfo);
Compilation\MemberSemanticModel.cs (1)
1031enumeratorInfoOpt.ElementTypeWithAnnotations.GetPublicSymbol(),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (17)
Semantics\ForEachTests.cs (17)
1724Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType); 1762Assert.Equal(SpecialType.System_Char, info.ElementTypeWithAnnotations.SpecialType); 1806Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType); 1850Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType); 1883Assert.Equal(SpecialType.System_Object, info.ElementTypeWithAnnotations.SpecialType); 1923Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType); 1965Assert.Equal(SpecialType.System_Object, info.ElementTypeWithAnnotations.SpecialType); 2004Assert.Equal(SpecialType.System_Object, info.ElementTypeWithAnnotations.SpecialType); 2037Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType); 2068Assert.Equal(SpecialType.System_Char, info.ElementTypeWithAnnotations.SpecialType); 2154Assert.Equal("C.var", info.ElementTypeWithAnnotations.ToTestDisplayString()); 2185Assert.Equal(SpecialType.System_Object, info.ElementTypeWithAnnotations.SpecialType); 2259Assert.Equal(SpecialType.System_Object, info.ElementTypeWithAnnotations.SpecialType); 2343Assert.Equal(SpecialType.System_Object, info.ElementTypeWithAnnotations.SpecialType); 2390Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType); 3634Assert.Equal(SpecialType.System_Char, info.ElementTypeWithAnnotations.SpecialType); 3752Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType);