21 references to _targetType
Microsoft.CodeAnalysis.CSharp (21)
Binder\Binder_Conversions.cs (21)
873_targetType) 887return _binder.BindCollectionExpressionForErrorRecovery(_node, _targetType, inConversion: false, _diagnostics); 903return _binder.BindCollectionExpressionForErrorRecovery(_node, _targetType, inConversion: true, _diagnostics); 925syntax, _targetType); 973if (_targetType.OriginalDefinition.Equals(_binder.Compilation.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T), TypeCompareKind.ConsiderEverything)) 975_diagnostics.Add(ErrorCode.ERR_CollectionExpressionImmutableArray, syntax, _targetType.OriginalDefinition); 979if (_targetType is NamedTypeSymbol namedType && 987var implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(syntax, isNewInstance: true, _targetType) { WasCompilerGenerated = true }; 997if (!elements.IsDefaultOrEmpty && hasCollectionInitializerTypeInProgress(in this, syntax, _targetType)) 999_diagnostics.Add(ErrorCode.ERR_CollectionInitializerInfiniteChainOfAddCalls, syntax, _targetType); 1005var collectionInitializerAddMethodBinder = new CollectionInitializerAddMethodBinder(syntax, _targetType, _binder); 1048if (@this._targetType is NamedTypeSymbol namedType) 1053else if (@this._targetType is TypeParameterSymbol typeParameter) 1059throw ExceptionUtilities.UnexpectedValue(@this._targetType); 1173_targetType); 1183_targetType.IsReadOnlyArrayInterface(out _)) 1202Debug.Assert(@this._targetType.IsArrayInterface(out _)); 1205if (@this._targetType.IsReadOnlyArrayInterface(out _)) 1213var isMutableArray = @this._targetType.IsMutableArrayInterface(out var typeArgument); 1284var namedType = (NamedTypeSymbol)@this._targetType; 1404var collectionCreation = @this._binder.CreateConversion(builderCall, @this._targetType, @this._diagnostics);