6 references to ElementType
Microsoft.CodeAnalysis.CSharp (4)
Compilation\MemberSemanticModel.cs (1)
953
if (enumeratorInfoOpt.
ElementType
.IsPointerType())
FlowAnalysis\NullableWalker.cs (1)
10088
TypeWithAnnotations.Create(node.EnumeratorInfoOpt.
ElementType
, NullableAnnotation.NotAnnotated).ToTypeWithState();
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (1)
120
TypeSymbol elementType = enumeratorInfo.
ElementType
;
Operations\CSharpOperationFactory.cs (1)
1794
info = new ForEachLoopOperationInfo(enumeratorInfoOpt.
ElementType
.GetPublicSymbol(),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\ForEachTests.cs (2)
1701
Assert.Equal(TypeKind.Dynamic, info.
ElementType
.TypeKind); //NB: differs from explicit case
3300
Assert.Equal(enumeratorInfo.
ElementType
.GetPublicSymbol(), statementInfo.ElementType);