7 references to ElementType
Microsoft.CodeAnalysis.CSharp (7)
Binder\ForEachEnumeratorInfo.cs (2)
128
Debug.Assert((object)
ElementType
!= null, $"'{nameof(
ElementType
)}' cannot be null");
Binder\ForEachLoopBinder.cs (5)
537
Conversion currentConversionClassification = this.Conversions.ClassifyConversionFromType(builder.CurrentPropertyGetter.ReturnType, builder.
ElementType
, isChecked: CheckOverflowAtRuntime, ref useSiteInfo);
556
(builder.
ElementType
.IsPointerOrFunctionPointer() && collectionExpr.Type.IsArray()) ||
557
(builder.
ElementType
.IsNullableType() && builder.
ElementType
.GetMemberTypeArgumentsNoUseSiteDiagnostics().Single().IsErrorType() && collectionExpr.Type.IsArray()));
570
builder.CurrentConversion = CreateConversion(_syntax, builder.CurrentPlaceholder, currentConversionClassification, isCast: false, conversionGroupOpt: null, builder.
ElementType
, diagnostics);