1 write to ElementTypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (1)
Binder\ForEachEnumeratorInfo.cs (1)
68this.ElementTypeWithAnnotations = elementType;
19 references to ElementTypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (2)
Binder\ForEachEnumeratorInfo.cs (1)
20public TypeSymbol ElementType => ElementTypeWithAnnotations.Type;
Compilation\MemberSemanticModel.cs (1)
983enumeratorInfoOpt.ElementTypeWithAnnotations.GetPublicSymbol(),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (17)
Semantics\ForEachTests.cs (17)
1207Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType); 1245Assert.Equal(SpecialType.System_Char, info.ElementTypeWithAnnotations.SpecialType); 1289Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType); 1333Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType); 1366Assert.Equal(SpecialType.System_Object, info.ElementTypeWithAnnotations.SpecialType); 1406Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType); 1448Assert.Equal(SpecialType.System_Object, info.ElementTypeWithAnnotations.SpecialType); 1487Assert.Equal(SpecialType.System_Object, info.ElementTypeWithAnnotations.SpecialType); 1520Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType); 1551Assert.Equal(SpecialType.System_Char, info.ElementTypeWithAnnotations.SpecialType); 1637Assert.Equal("C.var", info.ElementTypeWithAnnotations.ToTestDisplayString()); 1668Assert.Equal(SpecialType.System_Object, info.ElementTypeWithAnnotations.SpecialType); 1742Assert.Equal(SpecialType.System_Object, info.ElementTypeWithAnnotations.SpecialType); 1826Assert.Equal(SpecialType.System_Object, info.ElementTypeWithAnnotations.SpecialType); 1873Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType); 3117Assert.Equal(SpecialType.System_Char, info.ElementTypeWithAnnotations.SpecialType); 3235Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType);