Пример #1
0
 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);
 }
Пример #2
0
 public HostContextFunctionState(SelectorConstructor parent)
 {
     _selector = parent.CreateChild();
 }
Пример #3
0
 public HasFunctionState(SelectorConstructor parent)
 {
     _nested = parent.CreateChild();
 }
Пример #4
0
 public MatchesFunctionState(SelectorConstructor parent)
 {
     _selector = parent.CreateChild();
 }
Пример #5
0
 public NotFunctionState(SelectorConstructor parent)
 {
     _selector          = parent.CreateChild();
     _selector.IsNested = true;
 }