public static ISelector ToPool(this SelectorConstructor ctor) { var result = ctor.GetResult(); lock (Lock) { Selector.Push(ctor); } return(result); }
public override ISelector Produce() { var valid = _selector.IsValid; var sel = _selector.GetResult(); if (valid) { var code = PseudoClassNames.Matches.StylesheetFunction(sel.Text); return(SimpleSelector.PseudoClass(/*el => sel.Match(el),*/ code)); } return(null); }
public override ISelector Produce() { var valid = _selector.IsValid; var sel = _selector.GetResult(); if (valid) { var code = PseudoClassNames.HostContext.StylesheetFunction(sel.Text); return(SimpleSelector.PseudoClass(code)); } return(null); }
public override ISelector Produce() { var valid = _nested.IsValid; var sel = _nested.GetResult(); if (valid) { var code = PseudoClassNames.Has.StylesheetFunction(sel.Text); return(SimpleSelector.PseudoClass(/*el => el.ChildNodes.QuerySelector(sel) != null,*/ code)); } return(null); }