11 references to ElementType
Microsoft.CodeAnalysis.CSharp (11)
Binder\Binder_Conversions.cs (3)
990Debug.Assert(enumeratorInfo.ElementType is { }); // ElementType is set always, even for IEnumerable. 993var elementPlaceholder = new BoundValuePlaceholder(expressionSyntax, enumeratorInfo.ElementType) { WasCompilerGenerated = true }; 1818GenerateImplicitConversionError(diagnostics, this.Compilation, spreadElement.Expression.Syntax, elementConversion, enumeratorInfo.ElementType, elementType);
Binder\Binder_Expressions.cs (2)
6584Debug.Assert(enumeratorInfo.ElementType is { }); // ElementType is set always, even for IEnumerable. 6585var addElementPlaceholder = new BoundValuePlaceholder(syntax, enumeratorInfo.ElementType);
Binder\Semantics\Conversions\Conversions.cs (1)
241new BoundValuePlaceholder(element.Syntax, enumeratorInfo.ElementType),
Compilation\MemberSemanticModel.cs (1)
963if (enumeratorInfoOpt.CurrentConversion is null && enumeratorInfoOpt.ElementType.IsPointerType())
FlowAnalysis\NullableWalker.cs (1)
11425TypeWithAnnotations.Create(enumeratorInfoOpt.ElementType, NullableAnnotation.NotAnnotated).ToTypeWithState();
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
1341var iterationVariable = _factory.SynthesizedLocal(enumeratorInfo.ElementType, node.Syntax);
Operations\CSharpOperationFactory.cs (2)
1273var elementType = element.EnumeratorInfoOpt?.ElementType.GetPublicSymbol(); 1901info = new ForEachLoopOperationInfo(enumeratorInfoOpt.ElementType.GetPublicSymbol(),