11 references to ElementType
Microsoft.CodeAnalysis.CSharp (11)
Binder\Binder_Conversions.cs (3)
990
Debug.Assert(enumeratorInfo.
ElementType
is { }); // ElementType is set always, even for IEnumerable.
993
var elementPlaceholder = new BoundValuePlaceholder(expressionSyntax, enumeratorInfo.
ElementType
) { WasCompilerGenerated = true };
1818
GenerateImplicitConversionError(diagnostics, this.Compilation, spreadElement.Expression.Syntax, elementConversion, enumeratorInfo.
ElementType
, elementType);
Binder\Binder_Expressions.cs (2)
6584
Debug.Assert(enumeratorInfo.
ElementType
is { }); // ElementType is set always, even for IEnumerable.
6585
var addElementPlaceholder = new BoundValuePlaceholder(syntax, enumeratorInfo.
ElementType
);
Binder\Semantics\Conversions\Conversions.cs (1)
241
new BoundValuePlaceholder(element.Syntax, enumeratorInfo.
ElementType
),
Compilation\MemberSemanticModel.cs (1)
963
if (enumeratorInfoOpt.CurrentConversion is null && enumeratorInfoOpt.
ElementType
.IsPointerType())
FlowAnalysis\NullableWalker.cs (1)
11425
TypeWithAnnotations.Create(enumeratorInfoOpt.
ElementType
, NullableAnnotation.NotAnnotated).ToTypeWithState();
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
1341
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(),