1 write to ElementTypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (1)
Binder\ForEachEnumeratorInfo.cs (1)
81
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)
715
LowerBoundInference(enumeratorInfo.
ElementTypeWithAnnotations
, target, ref useSiteInfo);
Compilation\MemberSemanticModel.cs (1)
993
enumeratorInfoOpt.
ElementTypeWithAnnotations
.GetPublicSymbol(),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (17)
Semantics\ForEachTests.cs (17)
1208
Assert.Equal(SpecialType.System_Int32, info.
ElementTypeWithAnnotations
.SpecialType);
1246
Assert.Equal(SpecialType.System_Char, info.
ElementTypeWithAnnotations
.SpecialType);
1290
Assert.Equal(SpecialType.System_Int32, info.
ElementTypeWithAnnotations
.SpecialType);
1334
Assert.Equal(SpecialType.System_Int32, info.
ElementTypeWithAnnotations
.SpecialType);
1367
Assert.Equal(SpecialType.System_Object, info.
ElementTypeWithAnnotations
.SpecialType);
1407
Assert.Equal(SpecialType.System_Int32, info.
ElementTypeWithAnnotations
.SpecialType);
1449
Assert.Equal(SpecialType.System_Object, info.
ElementTypeWithAnnotations
.SpecialType);
1488
Assert.Equal(SpecialType.System_Object, info.
ElementTypeWithAnnotations
.SpecialType);
1521
Assert.Equal(SpecialType.System_Int32, info.
ElementTypeWithAnnotations
.SpecialType);
1552
Assert.Equal(SpecialType.System_Char, info.
ElementTypeWithAnnotations
.SpecialType);
1638
Assert.Equal("C.var", info.
ElementTypeWithAnnotations
.ToTestDisplayString());
1669
Assert.Equal(SpecialType.System_Object, info.
ElementTypeWithAnnotations
.SpecialType);
1743
Assert.Equal(SpecialType.System_Object, info.
ElementTypeWithAnnotations
.SpecialType);
1827
Assert.Equal(SpecialType.System_Object, info.
ElementTypeWithAnnotations
.SpecialType);
1874
Assert.Equal(SpecialType.System_Int32, info.
ElementTypeWithAnnotations
.SpecialType);
3118
Assert.Equal(SpecialType.System_Char, info.
ElementTypeWithAnnotations
.SpecialType);
3236
Assert.Equal(SpecialType.System_Int32, info.
ElementTypeWithAnnotations
.SpecialType);