コード例 #1
0
        /// <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);
        }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
 /// <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));
 }