21 references to _targetType
Microsoft.CodeAnalysis.CSharp (21)
Binder\Binder_Conversions.cs (21)
921_targetType) 935return _binder.BindCollectionExpressionForErrorRecovery(_node, _targetType, inConversion: false, _diagnostics); 951return _binder.BindCollectionExpressionForErrorRecovery(_node, _targetType, inConversion: true, _diagnostics); 973syntax, _targetType); 1021if (_targetType.OriginalDefinition.Equals(_binder.Compilation.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T), TypeCompareKind.ConsiderEverything)) 1023_diagnostics.Add(ErrorCode.ERR_CollectionExpressionImmutableArray, syntax, _targetType.OriginalDefinition); 1027if (_targetType is NamedTypeSymbol namedType && 1035var implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(syntax, isNewInstance: true, _targetType) { WasCompilerGenerated = true }; 1045if (!elements.IsDefaultOrEmpty && hasCollectionInitializerTypeInProgress(in this, syntax, _targetType)) 1047_diagnostics.Add(ErrorCode.ERR_CollectionInitializerInfiniteChainOfAddCalls, syntax, _targetType); 1053var collectionInitializerAddMethodBinder = new CollectionInitializerAddMethodBinder(syntax, _targetType, _binder); 1096if (@this._targetType is NamedTypeSymbol namedType) 1101else if (@this._targetType is TypeParameterSymbol typeParameter) 1107throw ExceptionUtilities.UnexpectedValue(@this._targetType); 1221_targetType); 1231_targetType.IsReadOnlyArrayInterface(out _)) 1250Debug.Assert(@this._targetType.IsArrayInterface(out _)); 1253if (@this._targetType.IsReadOnlyArrayInterface(out _)) 1261var isMutableArray = @this._targetType.IsMutableArrayInterface(out var typeArgument); 1332var namedType = (NamedTypeSymbol)@this._targetType; 1452var collectionCreation = @this._binder.CreateConversion(builderCall, @this._targetType, @this._diagnostics);