8 references to ElementType
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder_Expressions.cs (2)
6530
Debug.Assert(enumeratorInfo.
ElementType
is { }); // ElementType is set always, even for IEnumerable.
6531
var addElementPlaceholder = new BoundValuePlaceholder(syntax, enumeratorInfo.
ElementType
);
Binder\Semantics\Conversions\Conversions.cs (1)
239
new BoundValuePlaceholder(element.Syntax, enumeratorInfo.
ElementType
),
Compilation\MemberSemanticModel.cs (1)
963
if (enumeratorInfoOpt.CurrentConversion is null && enumeratorInfoOpt.
ElementType
.IsPointerType())
FlowAnalysis\NullableWalker.cs (1)
10990
TypeWithAnnotations.Create(enumeratorInfoOpt.
ElementType
, NullableAnnotation.NotAnnotated).ToTypeWithState();
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
1296
var iterationVariable = _factory.SynthesizedLocal(enumeratorInfo.
ElementType
, node.Syntax);
Operations\CSharpOperationFactory.cs (2)
1273
var elementType = element.EnumeratorInfoOpt?.
ElementType
.GetPublicSymbol();
1901
info = new ForEachLoopOperationInfo(enumeratorInfoOpt.
ElementType
.GetPublicSymbol(),