1 write to Diagnostics
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\RazorCSharpDocument.cs (1)
53Diagnostics = diagnostics.NullToEmpty();
9 references to Diagnostics
Microsoft.CodeAnalysis.Razor.Compiler (6)
SourceGenerators\RazorSourceGenerator.cs (6)
481if (a.csharpDocument.Diagnostics.Length > 0 || b.csharpDocument.Diagnostics.Length > 0) 485if ((a.declCSharpDocument?.Diagnostics.Length ?? 0) > 0 || (b.declCSharpDocument?.Diagnostics.Length ?? 0) > 0) 509foreach (var razorDiagnostic in csharpDocument.Diagnostics) 521foreach (var razorDiagnostic in declCSharpDocument.Diagnostics)
Microsoft.CodeAnalysis.Razor.DotNetFormat (1)
src\roslyn\src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.Formatting\FormattingEngine.cs (1)
57if (codeDocument.GetRequiredCSharpDocument(declarationDocument: false).Diagnostics.Any(d => d.Span != SourceSpan.Undefined && span.OverlapsWith(sourceText.GetLinePositionSpan(d.Span))))
rzc (2)
GenerateCommand.cs (2)
251var errorCount = result.CSharpDocument.Diagnostics.Length; 254var error = result.CSharpDocument.Diagnostics[i];