32 references to Diagnostics
Microsoft.AspNetCore.Razor.Language.Legacy.UnitTests (1)
Legacy\WhiteSpaceRewriterTest.cs (1)
32var rewrittenTree = new RazorSyntaxTree(rewritten, parsed.Source, parsed.Diagnostics, parsed.Options);
Microsoft.AspNetCore.Razor.Language.UnitTests (16)
DefaultRazorTagHelperBinderPhaseTest.cs (11)
140Assert.Empty(codeDocument.GetSyntaxTree().Diagnostics); 174Assert.Empty(codeDocument.GetSyntaxTree().Diagnostics); 213Assert.Empty(codeDocument.GetSyntaxTree().Diagnostics); 252Assert.Empty(codeDocument.GetSyntaxTree().Diagnostics); 293Assert.Empty(codeDocument.GetSyntaxTree().Diagnostics); 336Assert.Empty(codeDocument.GetSyntaxTree().Diagnostics); 377Assert.Empty(codeDocument.GetSyntaxTree().Diagnostics); 398Assert.Empty(outputTree.Diagnostics); 418Assert.Empty(outputTree.Diagnostics); 493Assert.Empty(originalTree.Diagnostics); 495Assert.Equal<RazorDiagnostic>([initialError, expectedRewritingError], outputTree.Diagnostics);
Extensions\SectionDirectivePassTest.cs (1)
97var diagnostics = syntaxTree.Diagnostics;
Legacy\WhiteSpaceRewriterTest.cs (1)
35var rewrittenTree = new RazorSyntaxTree(rewritten, parsed.Source, parsed.Diagnostics, parsed.Options);
RazorSyntaxTreeTest.cs (3)
25Assert.Empty(syntaxTree.Diagnostics); 39Assert.Empty(syntaxTree.Diagnostics); 62Assert.Empty(syntaxTree.Diagnostics);
Microsoft.AspNetCore.Razor.Microbenchmarks.Compiler (4)
SyntaxTreeGenerationBenckmark.cs (4)
53if (syntaxTree.Diagnostics.Length != 0) 55throw new Exception("Error!" + Environment.NewLine + string.Join(Environment.NewLine, syntaxTree.Diagnostics)); 65if (syntaxTree.Diagnostics.Length != 0) 67throw new Exception("Error!" + Environment.NewLine + string.Join(Environment.NewLine, syntaxTree.Diagnostics));
Microsoft.AspNetCore.Razor.Test.Common (1)
Language\Legacy\ParserTestBase.cs (1)
66var diagnostics = syntaxTree.Diagnostics;
Microsoft.AspNetCore.Razor.Test.Common.Tooling (1)
Language\Legacy\ToolingParserTestBase.cs (1)
51var diagnostics = syntaxTree.Diagnostics;
Microsoft.CodeAnalysis.Razor.Compiler (6)
Language\DefaultDirectiveSyntaxTreePass.cs (2)
43var diagnostics = _diagnostics?.ToImmutableAndClear() ?? _syntaxTree.Diagnostics; 61_diagnostics ??= _syntaxTree.Diagnostics.ToBuilder();
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (2)
140foreach (var diagnostic in syntaxTree.Diagnostics) 147foreach (var diagnostic in import.Diagnostics)
Language\HtmlNodeOptimizationPass.cs (1)
21return new RazorSyntaxTree(rewritten, syntaxTree.Source, syntaxTree.Diagnostics, syntaxTree.Options);
Language\Legacy\TagHelperParseTreeRewriter.cs (1)
36var treeDiagnostics = syntaxTree.Diagnostics;
Microsoft.CodeAnalysis.Razor.Workspaces (3)
Diagnostics\RazorTranslateDiagnosticsService.cs (1)
554return codeDocument.GetRequiredTagHelperRewrittenSyntaxTree().Diagnostics.Any(razorDiagnosticCode, static (d, code) => d.Id == code);
Formatting\Passes\FormattingDiagnosticValidationPass.cs (2)
27var originalDiagnostics = context.CodeDocument.GetRequiredTagHelperRewrittenSyntaxTree().Diagnostics; 32var changedDiagnostics = changedContext.CodeDocument.GetRequiredTagHelperRewrittenSyntaxTree().Diagnostics;