1 write to Diagnostics
Microsoft.CodeAnalysis.CSharp (1)
Lowering\SyntheticBoundNodeFactory.cs (1)
125this.Diagnostics = diagnostics;
32 references to Diagnostics
Microsoft.CodeAnalysis.CSharp (32)
Lowering\AsyncRewriter\AsyncIteratorMethodToStateMachineRewriter.cs (2)
333var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(F.Diagnostics, F.Compilation.Assembly); 336F.Diagnostics.Add(field.GetFirstLocationOrNone(), useSiteInfo);
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (6)
356F.Diagnostics.Add(ErrorCode.ERR_WrongArityAsyncReturn, F.Syntax.Location, builderType); 367F.Diagnostics.Add(ErrorCode.ERR_BadAsyncReturn, F.Syntax.Location); 463F.Diagnostics.Add(diagnostic); 494F.Diagnostics.Add(ErrorCode.ERR_MissingPredefinedMember, F.Syntax.Location, builderType, methodName); 521F.Diagnostics.Add(badTaskProperty); 531F.Diagnostics.Add(diagnostic);
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (4)
114if (slotAllocator == null || !slotAllocator.TryGetPreviousAwaiterSlotIndex(F.ModuleBuilderOpt.Translate(awaiterType, F.Syntax, F.Diagnostics.DiagnosticBag), F.Diagnostics.DiagnosticBag, out slotIndex)) 272var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(F.Diagnostics, F.Compilation.Assembly); 274F.Diagnostics.Add(hoistedLocal.GetFirstLocationOrNone(), useSiteInfo);
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
98private BindingDiagnosticBag Diagnostics { get { return _bound.Diagnostics; } }
Lowering\LocalRewriter\LocalRewriter_SwitchExpression.cs (3)
161var diagnostics = factory.Diagnostics.DiagnosticBag; 176var diagnostics = factory.Diagnostics.DiagnosticBag; 190var diagnostics = factory.Diagnostics.DiagnosticBag;
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (3)
627_factory.Diagnostics.Add(ErrorCode.ERR_DynamicRequiredTypesMissing, NoLocation.Singleton); 710_factory.Diagnostics.ReportUseSite(callSiteType, _factory.Syntax); 749_factory.Diagnostics.AddDependencies(delegateType);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (4)
436var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(F.Diagnostics, F.Compilation.Assembly); 438F.Diagnostics.Add(field.GetFirstLocationOrNone(), useSiteInfo); 643F.Diagnostics.Add(ErrorCode.ERR_RefReturningCallAndAwait, F.Syntax.Location, call.Method); 661F.Diagnostics.Add(ErrorCode.ERR_RefConditionalAndAwait, F.Syntax.Location);
Lowering\SyntheticBoundNodeFactory.cs (9)
261Binder.ReportUseSite(propertySym, Diagnostics, Syntax); 291Binder.ReportUseSite(specialType, Diagnostics, Syntax); 303Binder.ReportUseSite(wellKnownType, Diagnostics, Syntax); 317Symbol? wellKnownMember = Binder.GetWellKnownTypeMember(Compilation, wm, Diagnostics, syntax: Syntax, isOptional: true); 385Diagnostics.Add(useSiteInfo, Syntax); 801Binder.ReportUseSite(methodSymbol, Diagnostics, Syntax); 809Binder.ReportUseSite(methodSymbol, Diagnostics, Syntax); 1209return Throw(Null(Binder.GetWellKnownType(Compilation, Microsoft.CodeAnalysis.WellKnownType.System_Exception, Diagnostics, Syntax.Location))); 1800LocalRewriter.UnsafeGetNullableMethod(syntax, expression.Type, CodeAnalysis.SpecialMember.System_Nullable_T_get_HasValue, Compilation, Diagnostics));