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