Ejemplo n.º 1
0
 protected virtual void ParseSelectorCombineOperator(ItemFactory itemFactory, ITextProvider text, TokenStream tokens)
 {
     if (IdReferenceOperator.IsAtIdReferenceOperator(tokens))
     {
         ParseItem combineOperator = itemFactory.Create <IdReferenceOperator>(this);
         if (combineOperator.Parse(itemFactory, text, tokens))
         {
             SelectorCombineOperator = combineOperator;
             Children.Add(combineOperator);
         }
     }
     else
     {
         SelectorCombineOperator = Children.AddCurrentAndAdvance(tokens, CssClassifierContextType.SelectorCombineOperator);
     }
 }
Ejemplo n.º 2
0
 protected virtual bool IsAtSelectorCombineOperator(ITextProvider text, TokenStream tokens)
 {
     return(tokens.CurrentToken.IsSimpleSelectorCombineOperator() ||
            IdReferenceOperator.IsAtIdReferenceOperator(tokens));
 }