コード例 #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;
 }