/// <summary>The <see cref="UniversalSelectorNode"/> visit implementation</summary> /// <param name="universalSelectorNode">The universal selector node.</param> /// <returns>The modified AST node if modified otherwise the original node</returns> public override AstNode VisitUniversalSelectorNode(UniversalSelectorNode universalSelectorNode) { // universal // : [ namespace_prefix ]? '*' // ; if (universalSelectorNode.SelectorNamespacePrefixNode != null) { universalSelectorNode.SelectorNamespacePrefixNode.Accept(this); } _printerFormatter.Append(CssConstants.Star); return(universalSelectorNode); }
/// <summary>The <see cref="UniversalSelectorNode"/> visit implementation</summary> /// <param name="universalSelectorNode">The universal selector node.</param> /// <returns>The modified AST node if modified otherwise the original node</returns> public virtual AstNode VisitUniversalSelectorNode(UniversalSelectorNode universalSelectorNode) { return(universalSelectorNode); }
/// <summary>The <see cref="UniversalSelectorNode"/> visit implementation</summary> /// <param name="universalSelectorNode">The universal selector node.</param> /// <returns>The modified AST node if modified otherwise the original node</returns> public override AstNode VisitUniversalSelectorNode(UniversalSelectorNode universalSelectorNode) { return(new UniversalSelectorNode(universalSelectorNode.SelectorNamespacePrefixNode != null ? (SelectorNamespacePrefixNode)universalSelectorNode.SelectorNamespacePrefixNode.Accept(this) : null)); }