Пример #1
0
        private void PraseClass(Block token)
        {
            _selectorOperation = SelectorOperation.Data;

            if (token.GrammarSegment == GrammarSegment.Ident)
            {
                Insert(SimpleSelector.Class(((SymbolBlock)token).Value));
            }
        }
Пример #2
0
 private void OnClass(Token token)
 {
     _state = State.Data;
     _ready = true;
     if (token.Type == TokenType.Ident)
     {
         Insert(SimpleSelector.Class(token.Data));
     }
     else
     {
         _valid = false;
     }
 }