34 references to Diagnostics
Microsoft.CodeAnalysis (7)
Binding\BindingDiagnosticBag.cs (7)
109
AddRange(other.
Diagnostics
);
328
public ReadOnlyBindingDiagnostic<TAssemblySymbol> NullToEmpty() => new ReadOnlyBindingDiagnostic<TAssemblySymbol>(
Diagnostics
, Dependencies);
332
return first.
Diagnostics
== second.
Diagnostics
&& first.Dependencies == second.Dependencies;
352
return
Diagnostics
.GetHashCode();
355
public bool HasAnyErrors() =>
Diagnostics
.HasAnyErrors();
359
foreach (var diagnostic in
Diagnostics
)
Microsoft.CodeAnalysis.CSharp (25)
Binder\Binder_Invocation.cs (1)
1900
foreach (Diagnostic d in typeOrValue.Data.ValueDiagnostics.
Diagnostics
)
Binder\Binder_Statements.cs (2)
1127
hasErrors = constantValueDiagnostics.
Diagnostics
.HasAnyErrors();
2232
Debug.Assert(ErrorFacts.PreventsSuccessfulDelegateConversion(bindingResult.Diagnostics.
Diagnostics
));
Binder\MethodGroupResolution.cs (2)
52
Debug.Assert(!diagnostics.
Diagnostics
.IsDefault);
70
get { return this.Diagnostics.
Diagnostics
.HasAnyErrors(); }
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1578
if (ErrorFacts.PreventsSuccessfulDelegateConversion(bound.Diagnostics.
Diagnostics
))
Binder\SwitchBinder.cs (1)
67
ImmutableInterlocked.InterlockedInitialize(ref _switchGoverningDiagnostics, immutableSwitchGoverningDiagnostics.
Diagnostics
);
BoundTree\UnboundLambda.cs (5)
1271
IEnumerable<KeyValuePair<T, BoundLambda>> minDiagnosticsGroup = candidates.GroupBy(lambda => lambda.Value.Diagnostics.
Diagnostics
.Length).OrderBy(group => group.Key).First();
1341
intersection = CreateFirstAmongEqualsSet(bag.
Diagnostics
);
1345
intersection.IntersectWith(bag.
Diagnostics
);
1364
union = CreateFirstAmongEqualsSet(bag.
Diagnostics
);
1368
union.UnionWith(bag.
Diagnostics
);
Compilation\CSharpCompilation.cs (5)
1909
entryPoint.Diagnostics.
Diagnostics
.Concat(diagnostics.ToReadOnlyAndFree()), entryPoint.Diagnostics.Dependencies));
3190
return bindingDiagnostics.ToReadOnlyAndFree().
Diagnostics
;
3284
return new ReadOnlyBindingDiagnostic<AssemblySymbol>(result.AsImmutable().Concat(clsDiagnostics.
Diagnostics
), clsDiagnostics.Dependencies);
3307
ImmutableInterlocked.InterlockedInitialize(ref _lazyClsComplianceDiagnostics, result.
Diagnostics
);
3352
builder.AddRange(declarationDiagnostics.
Diagnostics
);
Compiler\MethodCompiler.cs (2)
232
Debug.Assert(!entryPointAndDiagnostics.Diagnostics.
Diagnostics
.IsDefault);
1146
actualDiagnostics = new ReadOnlyBindingDiagnostic<AssemblySymbol>(sourceMethod.SetDiagnostics(actualDiagnostics.
Diagnostics
, out diagsWritten), actualDiagnostics.Dependencies);
FlowAnalysis\FlowAnalysisPass.cs (2)
42
var initialDiagnosticCount = diagnostics.ToReadOnly().
Diagnostics
.Length;
95
Debug.Assert(getErrorsOnly(flowAnalysisDiagnostics.ToReadOnly()).SequenceEqual(getErrorsOnly(diagnostics.ToReadOnly().
Diagnostics
.Skip(initialDiagnosticCount))));
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (3)
247
if (implementingMemberAndDiagnostics.Diagnostics.
Diagnostics
.Any())
250
reportedAnError = implementingMemberAndDiagnostics.Diagnostics.
Diagnostics
.Any(static d => d.Severity == DiagnosticSeverity.Error);
1814
foreach (Diagnostic diagnostic in implementingMemberAndDiagnostics.Diagnostics.
Diagnostics
)
Symbols\TypeSymbol.cs (1)
1115
return !symbolAndDiagnostics.Diagnostics.
Diagnostics
.Any(static d => d.Code == (int)ErrorCode.ERR_MostSpecificImplementationIsNotFound);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
FlowAnalysis\FlowTestBase.cs (1)
44
return flowDiagnostics.ToReadOnlyAndFree().
Diagnostics
;
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Extensions.cs (1)
963
actual.
Diagnostics
.Verify(expected);