public void VisitExtension(ComponentExtensionNode node) { // Check for properties that are set by both element contents (body) and the attribute itself. foreach (var childContent in node.ChildContents) { foreach (var attribute in node.Attributes) { if (attribute.AttributeName == childContent.AttributeName) { node.Diagnostics.Add(BlazorDiagnosticFactory.Create_ChildContentSetByAttributeAndBody( attribute.Source, attribute.AttributeName)); } } } base.VisitDefault(node); }