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