21 references to _targetType
Microsoft.CodeAnalysis.CSharp (21)
Binder\Binder_Conversions.cs (21)
930_targetType)
944return _binder.BindCollectionExpressionForErrorRecovery(_node, _targetType, inConversion: false, _diagnostics);
960return _binder.BindCollectionExpressionForErrorRecovery(_node, _targetType, inConversion: true, _diagnostics);
982syntax, _targetType);
1030if (_targetType.OriginalDefinition.Equals(_binder.Compilation.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T), TypeCompareKind.ConsiderEverything))
1032_diagnostics.Add(ErrorCode.ERR_CollectionExpressionImmutableArray, syntax, _targetType.OriginalDefinition);
1036if (_targetType is NamedTypeSymbol namedType &&
1045var implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(syntax, isNewInstance: true, _targetType) { WasCompilerGenerated = true };
1055if (!elements.IsDefaultOrEmpty && hasCollectionInitializerTypeInProgress(in this, syntax, _targetType))
1057_diagnostics.Add(ErrorCode.ERR_CollectionInitializerInfiniteChainOfAddCalls, syntax, _targetType);
1063var collectionInitializerAddMethodBinder = new CollectionInitializerAddMethodBinder(syntax, _targetType, _binder);
1106if (@this._targetType is NamedTypeSymbol namedType)
1120else if (@this._targetType is TypeParameterSymbol typeParameter)
1126throw ExceptionUtilities.UnexpectedValue(@this._targetType);
1240_targetType);
1250_targetType.IsReadOnlyArrayInterface(out _))
1269Debug.Assert(@this._targetType.IsArrayInterface(out _));
1272if (@this._targetType.IsReadOnlyArrayInterface(out _))
1280var isMutableArray = @this._targetType.IsMutableArrayInterface(out var typeArgument);
1357var namedType = (NamedTypeSymbol)@this._targetType;
1477var collectionCreation = @this._binder.CreateConversion(builderCall, @this._targetType, @this._diagnostics);