public ChildFunctionState(SelectorConstructor parent, bool withOptionalSelector = true) { _parent = parent; _allowOf = withOptionalSelector; _valid = true; _sign = 1; _state = ParseState.Initial; }
public static ISelector ToPool(this SelectorConstructor ctor) { var result = ctor.GetResult(); lock (Lock) { Selector.Push(ctor); } return(result); }
private bool OnBeforeOf(Token token) { if (token.Type == TokenType.Whitespace) { return(false); } if (token.Data.Isi(Keywords.Of)) { _valid = _allowOf; _state = ParseState.AfterOf; _nested = _parent.CreateChild(); return(false); } if (token.Type == TokenType.RoundBracketClose) { return(true); } _valid = false; return(false); }
public HostContextFunctionState(SelectorConstructor parent) { _selector = parent.CreateChild(); }
public MatchesFunctionState(SelectorConstructor parent) { _selector = parent.CreateChild(); }
public HasFunctionState(SelectorConstructor parent) { _nested = parent.CreateChild(); }
public NotFunctionState(SelectorConstructor parent) { _selector = parent.CreateChild(); _selector.IsNested = true; }