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