internal static bool TryConvertToStructuralPseudoClassType(string name, out CssStructuralPseudoClassType pseudoClassType)
        {
            switch (name)
            {
            case "first-child":
                pseudoClassType = CssStructuralPseudoClassType.FirstChild;
                return(true);

            case "last-child":
                pseudoClassType = CssStructuralPseudoClassType.LastChild;
                return(true);
            }
            pseudoClassType = CssStructuralPseudoClassType.Empty;
            return(false);
        }
 public CssStructuralPseudoClass(CssSelectorList selectors, CssStructuralPseudoClassType pseudoClassType)
 {
     Selectors = selectors ?? throw new ArgumentNullException(nameof(selectors));
     StructuralPseudoClassType = pseudoClassType;
 }