21 references to _targetType
Microsoft.CodeAnalysis.CSharp (21)
Binder\Binder_Conversions.cs (21)
929_targetType)
943return _binder.BindCollectionExpressionForErrorRecovery(_node, _targetType, inConversion: false, _diagnostics);
959return _binder.BindCollectionExpressionForErrorRecovery(_node, _targetType, inConversion: true, _diagnostics);
981syntax, _targetType);
1029if (_targetType.OriginalDefinition.Equals(_binder.Compilation.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T), TypeCompareKind.ConsiderEverything))
1031_diagnostics.Add(ErrorCode.ERR_CollectionExpressionImmutableArray, syntax, _targetType.OriginalDefinition);
1035if (_targetType is NamedTypeSymbol namedType &&
1044var implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(syntax, isNewInstance: true, _targetType) { WasCompilerGenerated = true };
1054if (!elements.IsDefaultOrEmpty && hasCollectionInitializerTypeInProgress(in this, syntax, _targetType))
1056_diagnostics.Add(ErrorCode.ERR_CollectionInitializerInfiniteChainOfAddCalls, syntax, _targetType);
1062var collectionInitializerAddMethodBinder = new CollectionInitializerAddMethodBinder(syntax, _targetType, _binder);
1105if (@this._targetType is NamedTypeSymbol namedType)
1119else if (@this._targetType is TypeParameterSymbol typeParameter)
1125throw ExceptionUtilities.UnexpectedValue(@this._targetType);
1239_targetType);
1249_targetType.IsReadOnlyArrayInterface(out _))
1268Debug.Assert(@this._targetType.IsArrayInterface(out _));
1271if (@this._targetType.IsReadOnlyArrayInterface(out _))
1279var isMutableArray = @this._targetType.IsMutableArrayInterface(out var typeArgument);
1356var namedType = (NamedTypeSymbol)@this._targetType;
1476var collectionCreation = @this._binder.CreateConversion(builderCall, @this._targetType, @this._diagnostics);