1 write to Diagnostics
Microsoft.CodeAnalysis.CSharp (1)
Lowering\SyntheticBoundNodeFactory.cs (1)
125
this.
Diagnostics
= diagnostics;
28 references to Diagnostics
Microsoft.CodeAnalysis.CSharp (28)
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (6)
356
F.
Diagnostics
.Add(ErrorCode.ERR_WrongArityAsyncReturn, F.Syntax.Location, builderType);
367
F.
Diagnostics
.Add(ErrorCode.ERR_BadAsyncReturn, F.Syntax.Location);
463
F.
Diagnostics
.Add(diagnostic);
494
F.
Diagnostics
.Add(ErrorCode.ERR_MissingPredefinedMember, F.Syntax.Location, builderType, methodName);
521
F.
Diagnostics
.Add(badTaskProperty);
531
F.
Diagnostics
.Add(diagnostic);
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (4)
112
if (slotAllocator == null || !slotAllocator.TryGetPreviousAwaiterSlotIndex(F.ModuleBuilderOpt.Translate(awaiterType, F.Syntax, F.
Diagnostics
.DiagnosticBag), F.
Diagnostics
.DiagnosticBag, out slotIndex))
269
var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(F.
Diagnostics
, F.Compilation.Assembly);
271
F.
Diagnostics
.Add(hoistedLocal.GetFirstLocationOrNone(), useSiteInfo);
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
98
private BindingDiagnosticBag Diagnostics { get { return _bound.
Diagnostics
; } }
Lowering\LocalRewriter\LocalRewriter_SwitchExpression.cs (3)
161
var diagnostics = factory.
Diagnostics
.DiagnosticBag;
176
var diagnostics = factory.
Diagnostics
.DiagnosticBag;
190
var 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 (2)
626
F.
Diagnostics
.Add(ErrorCode.ERR_RefReturningCallAndAwait, F.Syntax.Location, call.Method);
644
F.
Diagnostics
.Add(ErrorCode.ERR_RefConditionalAndAwait, F.Syntax.Location);
Lowering\SyntheticBoundNodeFactory.cs (9)
261
Binder.ReportUseSite(propertySym,
Diagnostics
, Syntax);
291
Binder.ReportUseSite(specialType,
Diagnostics
, Syntax);
303
Binder.ReportUseSite(wellKnownType,
Diagnostics
, Syntax);
317
Symbol? wellKnownMember = Binder.GetWellKnownTypeMember(Compilation, wm,
Diagnostics
, syntax: Syntax, isOptional: true);
385
Diagnostics
.Add(useSiteInfo, Syntax);
801
Binder.ReportUseSite(methodSymbol,
Diagnostics
, Syntax);
809
Binder.ReportUseSite(methodSymbol,
Diagnostics
, Syntax);
1209
return Throw(Null(Binder.GetWellKnownType(Compilation, Microsoft.CodeAnalysis.WellKnownType.System_Exception,
Diagnostics
, Syntax.Location)));
1800
LocalRewriter.UnsafeGetNullableMethod(syntax, expression.Type, CodeAnalysis.SpecialMember.System_Nullable_T_get_HasValue, Compilation,
Diagnostics
));