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