21 references to _targetType
Microsoft.CodeAnalysis.CSharp (21)
Binder\Binder_Conversions.cs (21)
871_targetType) 885return _binder.BindCollectionExpressionForErrorRecovery(_node, _targetType, inConversion: false, _diagnostics); 901return _binder.BindCollectionExpressionForErrorRecovery(_node, _targetType, inConversion: true, _diagnostics); 923syntax, _targetType); 971if (_targetType.OriginalDefinition.Equals(_binder.Compilation.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T), TypeCompareKind.ConsiderEverything)) 973_diagnostics.Add(ErrorCode.ERR_CollectionExpressionImmutableArray, syntax, _targetType.OriginalDefinition); 977if (_targetType is NamedTypeSymbol namedType && 985var implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(syntax, isNewInstance: true, _targetType) { WasCompilerGenerated = true }; 995if (!elements.IsDefaultOrEmpty && hasCollectionInitializerTypeInProgress(in this, syntax, _targetType)) 997_diagnostics.Add(ErrorCode.ERR_CollectionInitializerInfiniteChainOfAddCalls, syntax, _targetType); 1003var collectionInitializerAddMethodBinder = new CollectionInitializerAddMethodBinder(syntax, _targetType, _binder); 1046if (@this._targetType is NamedTypeSymbol namedType) 1051else if (@this._targetType is TypeParameterSymbol typeParameter) 1057throw ExceptionUtilities.UnexpectedValue(@this._targetType); 1171_targetType); 1181_targetType.IsReadOnlyArrayInterface(out _)) 1200Debug.Assert(@this._targetType.IsArrayInterface(out _)); 1203if (@this._targetType.IsReadOnlyArrayInterface(out _)) 1211var isMutableArray = @this._targetType.IsMutableArrayInterface(out var typeArgument); 1282var namedType = (NamedTypeSymbol)@this._targetType; 1402var collectionCreation = @this._binder.CreateConversion(builderCall, @this._targetType, @this._diagnostics);