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