1 write to ElementTypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (1)
Binder\ForEachEnumeratorInfo.cs (1)
88
this.
ElementTypeWithAnnotations
= elementType;
20 references to ElementTypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (3)
Binder\ForEachEnumeratorInfo.cs (1)
25
public TypeSymbol ElementType =>
ElementTypeWithAnnotations
.Type;
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (1)
717
LowerBoundInference(enumeratorInfo.
ElementTypeWithAnnotations
, target, ref useSiteInfo);
Compilation\MemberSemanticModel.cs (1)
1031
enumeratorInfoOpt.
ElementTypeWithAnnotations
.GetPublicSymbol(),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (17)
Semantics\ForEachTests.cs (17)
1724
Assert.Equal(SpecialType.System_Int32, info.
ElementTypeWithAnnotations
.SpecialType);
1762
Assert.Equal(SpecialType.System_Char, info.
ElementTypeWithAnnotations
.SpecialType);
1806
Assert.Equal(SpecialType.System_Int32, info.
ElementTypeWithAnnotations
.SpecialType);
1850
Assert.Equal(SpecialType.System_Int32, info.
ElementTypeWithAnnotations
.SpecialType);
1883
Assert.Equal(SpecialType.System_Object, info.
ElementTypeWithAnnotations
.SpecialType);
1923
Assert.Equal(SpecialType.System_Int32, info.
ElementTypeWithAnnotations
.SpecialType);
1965
Assert.Equal(SpecialType.System_Object, info.
ElementTypeWithAnnotations
.SpecialType);
2004
Assert.Equal(SpecialType.System_Object, info.
ElementTypeWithAnnotations
.SpecialType);
2037
Assert.Equal(SpecialType.System_Int32, info.
ElementTypeWithAnnotations
.SpecialType);
2068
Assert.Equal(SpecialType.System_Char, info.
ElementTypeWithAnnotations
.SpecialType);
2154
Assert.Equal("C.var", info.
ElementTypeWithAnnotations
.ToTestDisplayString());
2185
Assert.Equal(SpecialType.System_Object, info.
ElementTypeWithAnnotations
.SpecialType);
2259
Assert.Equal(SpecialType.System_Object, info.
ElementTypeWithAnnotations
.SpecialType);
2343
Assert.Equal(SpecialType.System_Object, info.
ElementTypeWithAnnotations
.SpecialType);
2390
Assert.Equal(SpecialType.System_Int32, info.
ElementTypeWithAnnotations
.SpecialType);
3634
Assert.Equal(SpecialType.System_Char, info.
ElementTypeWithAnnotations
.SpecialType);
3752
Assert.Equal(SpecialType.System_Int32, info.
ElementTypeWithAnnotations
.SpecialType);