17 references to HasDiagnostics
Microsoft.AspNetCore.Razor.Language.UnitTests (3)
Components\ComponentDuplicateAttributeDiagnosticPassTest.cs (3)
88var node = documentNode.FindDescendantNodes<HtmlAttributeIntermediateNode>().Where(n => n.HasDiagnostics).Single(); 116var node = documentNode.FindDescendantNodes<HtmlAttributeIntermediateNode>().Where(n => n.HasDiagnostics).Single(); 142var nodes = documentNode.FindDescendantNodes<HtmlAttributeIntermediateNode>().Where(n => n.HasDiagnostics).ToArray();
Microsoft.AspNetCore.Razor.Test.Common (1)
Language\IntegrationTests\IntermediateNodeWriter.cs (1)
339if (node.HasDiagnostics)
Microsoft.CodeAnalysis.Razor.Compiler (13)
Language\Components\ComponentDesignTimeNodeWriter.cs (2)
732Debug.Assert(node.HasDiagnostics, "We should have reported an error for mixed content."); 1052Debug.Assert(node.HasDiagnostics, "We should have reported an error for mixed content.");
Language\Components\ComponentDocumentClassifierPass.cs (1)
113if (typeParamNode.HasDiagnostics)
Language\Components\ComponentMarkupBlockPass.cs (5)
163if (node.HasDiagnostics) 202if (node.HasDiagnostics) 214if (node.HasDiagnostics) 233if (node.HasDiagnostics) 252if (node.HasDiagnostics)
Language\Components\ComponentPageDirectivePass.cs (1)
62if (!codeDocument.CodeGenerationOptions.DesignTime || !pageDirective.HasDiagnostics)
Language\Components\ComponentRuntimeNodeWriter.cs (2)
665Debug.Assert(node.HasDiagnostics, "We should have reported an error for mixed content."); 945Debug.Assert(node.HasDiagnostics, "We should have reported an error for mixed content.");
Language\Intermediate\IntermediateNode.cs (1)
39if (node.HasDiagnostics)
Language\Intermediate\IntermediateNodeExtensions.cs (1)
29if (node.HasDiagnostics)