54 references to Diagnostics
Microsoft.CodeAnalysis (5)
Binding\BindingDiagnosticBag.cs (5)
111AddRange(other.Diagnostics); 317public ImmutableBindingDiagnostic<TAssemblySymbol> NullToEmpty() => new ImmutableBindingDiagnostic<TAssemblySymbol>(Diagnostics, Dependencies); 321return first.Diagnostics == second.Diagnostics && first.Dependencies == second.Dependencies; 341return Diagnostics.GetHashCode();
Microsoft.CodeAnalysis.CSharp (22)
Binder\Binder_Statements.cs (2)
1128hasErrors = constantValueDiagnostics.Diagnostics.HasAnyErrors(); 2183Debug.Assert(ErrorFacts.PreventsSuccessfulDelegateConversion(bindingResult.Diagnostics.Diagnostics));
Binder\MethodGroupResolution.cs (2)
50Debug.Assert(!diagnostics.Diagnostics.IsDefault); 68get { return this.Diagnostics.Diagnostics.HasAnyErrors(); }
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1502if (ErrorFacts.PreventsSuccessfulDelegateConversion(bound.Diagnostics.Diagnostics))
BoundTree\UnboundLambda.cs (5)
1210IEnumerable<KeyValuePair<T, BoundLambda>> minDiagnosticsGroup = candidates.GroupBy(lambda => lambda.Value.Diagnostics.Diagnostics.Length).OrderBy(group => group.Key).First(); 1280intersection = CreateFirstAmongEqualsSet(bag.Diagnostics); 1284intersection.IntersectWith(bag.Diagnostics); 1303union = CreateFirstAmongEqualsSet(bag.Diagnostics); 1307union.UnionWith(bag.Diagnostics);
Compilation\CSharpCompilation.cs (4)
1731entryPoint.Diagnostics.Diagnostics.Concat(diagnostics.ToReadOnlyAndFree()), entryPoint.Diagnostics.Dependencies)); 2990return new ImmutableBindingDiagnostic<AssemblySymbol>(result.AsImmutable().Concat(clsDiagnostics.Diagnostics), clsDiagnostics.Dependencies); 3008ImmutableInterlocked.InterlockedInitialize(ref _lazyClsComplianceDiagnostics, result.Diagnostics); 3053builder.AddRange(declarationDiagnostics.Diagnostics);
Compiler\MethodCompiler.cs (2)
220Debug.Assert(!entryPointAndDiagnostics.Diagnostics.Diagnostics.IsDefault); 1163actualDiagnostics = new ImmutableBindingDiagnostic<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); 1751foreach (Diagnostic diagnostic in implementingMemberAndDiagnostics.Diagnostics.Diagnostics)
Symbols\TypeSymbol.cs (1)
1095return !symbolAndDiagnostics.Diagnostics.Diagnostics.Any(static d => d.Code == (int)ErrorCode.ERR_MostSpecificImplementationIsNotFound);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
FlowAnalysis\FlowTestBase.cs (1)
39return flowDiagnostics.ToReadOnlyAndFree().Diagnostics;
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Extensions.cs (1)
911actual.Diagnostics.Verify(expected);
Microsoft.CodeAnalysis.VisualBasic (24)
Binding\Binder_Conversions.vb (5)
1311If Not anonymousDelegateInfo.Value.Diagnostics.IsDefault AndAlso anonymousDelegateInfo.Value.Diagnostics.HasAnyErrors() Then 1349If Not inferenceDiagnostics.Diagnostics.IsDefaultOrEmpty AndAlso inferenceDiagnostics.Diagnostics.HasAnyErrors() Then 1399Dim reportedAnError As Boolean = boundLambdaDiagnostics.Diagnostics.HasAnyErrors()
Binding\Binder_Delegates.vb (1)
991Not delegateResolutionResult.Diagnostics.Diagnostics.HasAnyErrors Then
Binding\Binder_Invocation.vb (3)
1886Dim sealedCandidateDiagnostics = diagnosticPerSymbol(i).Value.Diagnostics 1943For Each diagnostic In diagnosticPerSymbol(0).Value.Diagnostics 1954If Not diagnosticPerSymbol(i).Value.Diagnostics.Contains(diagnostic) Then
Compilation\VisualBasicCompilation.vb (1)
2213ImmutableInterlocked.InterlockedInitialize(_lazyClsComplianceDiagnostics, result.Diagnostics)
Semantics\Conversions.vb (5)
1091If Not anonymousDelegateInfo.Value.Diagnostics.IsDefault AndAlso anonymousDelegateInfo.Value.Diagnostics.HasAnyErrors() Then 1114If Not inferenceDiagnostics.Diagnostics.IsDefault AndAlso inferenceDiagnostics.Diagnostics.HasAnyErrors() Then 1124Debug.Assert(Not bound.Diagnostics.Diagnostics.HasAnyErrors OrElse
Semantics\OverloadResolution.vb (1)
3329(Not bound.Diagnostics.Diagnostics.HasAnyErrors) Then
Semantics\TypeInference\TypeArgumentInference.vb (7)
2007If (inferredAnonymousDelegate.Value.Diagnostics.IsDefault OrElse Not inferredAnonymousDelegate.Value.Diagnostics.HasAnyErrors()) Then 2146If Not returnTypeInfo.Value.Diagnostics.IsDefault AndAlso returnTypeInfo.Value.Diagnostics.HasAnyErrors() Then 2166If Not boundLambda.HasErrors AndAlso Not boundLambda.Diagnostics.Diagnostics.HasAnyErrors Then 2180If Not boundLambda.Diagnostics.Diagnostics.IsDefaultOrEmpty Then 2228If Not boundLambda.HasErrors AndAlso Not boundLambda.Diagnostics.Diagnostics.HasAnyErrors() Then
Symbols\Source\SourceAssemblySymbol.vb (1)
1238ImmutableInterlocked.InterlockedInitialize(_lazyAssemblyLevelDeclarationErrors, immutableBindingDiagnostic.Diagnostics)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
Extensions.vb (1)
362this.Diagnostics.Verify(expected)