30 references to _diagnostics
Microsoft.CodeAnalysis.CSharp (30)
Binder\Binder_Conversions.cs (30)
885return _binder.BindCollectionExpressionForErrorRecovery(_node, _targetType, inConversion: false, _diagnostics); 896_diagnostics.Add(ErrorCode.ERR_CollectionRefLikeElementType, _node.Syntax); 901return _binder.BindCollectionExpressionForErrorRecovery(_node, _targetType, inConversion: true, _diagnostics); 920_diagnostics.Add(hasSpreadElements 937_ = _binder.GetWellKnownTypeMember(WellKnownMember.System_Collections_Generic_List_T__ctor, _diagnostics, syntax: syntax); 938_ = _binder.GetWellKnownTypeMember(WellKnownMember.System_Collections_Generic_List_T__ctorInt32, _diagnostics, syntax: syntax); 939_ = _binder.GetWellKnownTypeMember(WellKnownMember.System_Collections_Generic_List_T__Add, _diagnostics, syntax: syntax); 940_ = _binder.GetWellKnownTypeMember(WellKnownMember.System_Collections_Generic_List_T__ToArray, _diagnostics, syntax: syntax); 973_diagnostics.Add(ErrorCode.ERR_CollectionExpressionImmutableArray, syntax, _targetType.OriginalDefinition); 981_diagnostics.Add(ErrorCode.ERR_ParamsCollectionInfiniteChainOfConstructorCalls, syntax, inProgress, inProgressConstructor.OriginalDefinition); 997_diagnostics.Add(ErrorCode.ERR_CollectionInitializerInfiniteChainOfAddCalls, syntax, _targetType); 1014_diagnostics) 1020_diagnostics, 1049collectionCreation = binder.BindClassCreationExpression(syntax, namedType.Name, syntax, namedType, analyzedArguments, @this._diagnostics); 1053collectionCreation = @this._binder.BindTypeParameterCreationExpression(syntax, typeParameter, analyzedArguments, initializerOpt: null, typeSyntax: syntax, wasTargetTyped: false, @this._diagnostics); 1112_diagnostics)); 1137@this._diagnostics); 1157_ = _binder.GetWellKnownTypeMember(WellKnownMember.System_Span_T__ctor_Array, _diagnostics, syntax: syntax); 1161_ = _binder.GetWellKnownTypeMember(WellKnownMember.System_ReadOnlySpan_T__ctor_Array, _diagnostics, syntax: syntax); 1168_diagnostics.Add( 1185_diagnostics.Add(ErrorCode.ERR_CollectionArgumentsMustBeEmpty, _node.WithElement.Syntax.GetFirstToken().GetLocation()); 1223var useSiteInfo = @this._binder.GetNewCompoundUseSiteInfo(@this._diagnostics); 1252@this._diagnostics, 1258withSyntax, withSyntax, constructedListType, analyzedArguments, initializerSyntaxOpt: null, initializerTypeOpt: null, wasTargetTyped: false, memberResolutionResult, candidateConstructors, useSiteInfo, @this._diagnostics); 1262withSyntax, withSyntax, constructedListType, analyzedArguments, initializerSyntaxOpt: null, initializerTypeOpt: null, memberResolutionResult, candidateConstructors, useSiteInfo, @this._diagnostics); 1284var collectionBuilderMethods = @this._binder.GetCollectionBuilderMethods(@this._node.Syntax, namedType, @this._diagnostics, forParams: false); 1306var useSiteInfo = @this._binder.GetNewCompoundUseSiteInfo(@this._diagnostics); 1331analyzedArguments, @this._diagnostics, acceptOnlyMethods: true); 1351@this._binder.CheckCollectionBuilderMethod(syntax, collectionBuilderMethod, @this._diagnostics); 1402var collectionCreation = @this._binder.CreateConversion(builderCall, @this._targetType, @this._diagnostics);