1 write to Diagnostics
Microsoft.CodeAnalysis.CSharp (1)
Lowering\SyntheticBoundNodeFactory.cs (1)
172
this.
Diagnostics
= diagnostics;
33 references to Diagnostics
Microsoft.CodeAnalysis.CSharp (33)
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 (slotAllocatorOpt == null || !slotAllocatorOpt.TryGetPreviousAwaiterSlotIndex(F.ModuleBuilderOpt.Translate(awaiterType, F.Syntax, F.
Diagnostics
.DiagnosticBag), F.
Diagnostics
.DiagnosticBag, out slotIndex))
275
var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(F.
Diagnostics
, F.Compilation.Assembly);
277
F.
Diagnostics
.Add(hoistedLocal.Locations.FirstOrNone(), useSiteInfo);
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
99
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)
642
_factory.
Diagnostics
.Add(ErrorCode.ERR_DynamicRequiredTypesMissing, NoLocation.Singleton);
725
_factory.
Diagnostics
.ReportUseSite(callSiteType, _factory.Syntax);
764
_factory.
Diagnostics
.AddDependencies(delegateType);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (2)
609
F.
Diagnostics
.Add(ErrorCode.ERR_RefReturningCallAndAwait, F.Syntax.Location, call.Method);
626
F.
Diagnostics
.Add(ErrorCode.ERR_RefConditionalAndAwait, F.Syntax.Location);
Lowering\SyntheticBoundNodeFactory.cs (14)
308
Binder.ReportUseSite(propertySym,
Diagnostics
, Syntax);
338
Binder.ReportUseSite(specialType,
Diagnostics
, Syntax);
350
Binder.ReportUseSite(wellKnownType,
Diagnostics
, Syntax);
364
Symbol? wellKnownMember = Binder.GetWellKnownTypeMember(Compilation, wm,
Diagnostics
, syntax: Syntax, isOptional: true);
407
Binder.ReportUseSite(specialMember,
Diagnostics
, Syntax);
734
return MakeInvocationExpression(BinderFlags.None, this.Syntax, receiver, name, ImmutableArray.Create(arg), this.
Diagnostics
);
739
return MakeInvocationExpression(BinderFlags.None, this.Syntax, receiver, name, ImmutableArray<BoundExpression>.Empty, this.
Diagnostics
);
744
return MakeInvocationExpression(BinderFlags.None, this.Syntax, this.Type(receiver), name, args.ToImmutableArray(), this.
Diagnostics
);
749
return MakeInvocationExpression(BinderFlags.None, this.Syntax, this.Type(receiver), name, args, this.
Diagnostics
, allowUnexpandedForm: allowUnexpandedForm);
754
return MakeInvocationExpression(flags, this.Syntax, this.Type(receiver), name, args.ToImmutableArray(), this.
Diagnostics
, typeArgs);
773
Binder.ReportUseSite(methodSymbol,
Diagnostics
, Syntax);
781
Binder.ReportUseSite(methodSymbol,
Diagnostics
, Syntax);
1146
return Throw(Null(Binder.GetWellKnownType(Compilation, Microsoft.CodeAnalysis.WellKnownType.System_Exception,
Diagnostics
, Syntax.Location)));
1672
return BoundCall.Synthesized(syntax, expression, LocalRewriter.UnsafeGetNullableMethod(syntax, expression.Type, CodeAnalysis.SpecialMember.System_Nullable_T_get_HasValue, Compilation,
Diagnostics
));