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