Lines Matching refs:Token
36 $token = $this->read(Scanner\Token::PSEUDO_CLASS);
42 $this->read(Scanner\Token::PARENTHESES_START);
43 $this->ignore(Scanner\Token::WHITESPACE);
46 $parameterToken = $this->read(Scanner\Token::IDENTIFIER);
52 Scanner\Token::IDENTIFIER,
53 Scanner\Token::NUMBER,
54 Scanner\Token::PSEUDO_CLASS_POSITION
63 [Scanner\Token::SINGLEQUOTE_STRING_START, Scanner\Token::DOUBLEQUOTE_STRING_START]
71 $parameter = $this->read(Scanner\Token::NUMBER);
79 Scanner\Token::IDENTIFIER,
80 Scanner\Token::ID_SELECTOR,
81 Scanner\Token::CLASS_SELECTOR,
82 Scanner\Token::PSEUDO_CLASS,
83 Scanner\Token::PSEUDO_ELEMENT,
84 Scanner\Token::ATTRIBUTE_SELECTOR_START
88 case Scanner\Token::IDENTIFIER :
89 case Scanner\Token::ID_SELECTOR :
90 case Scanner\Token::CLASS_SELECTOR :
94 case Scanner\Token::PSEUDO_CLASS :
102 case Scanner\Token::PSEUDO_ELEMENT :
106 case Scanner\Token::ATTRIBUTE_SELECTOR_START :
120 $this->ignore(Scanner\Token::WHITESPACE);
121 $this->read(Scanner\Token::PARENTHESES_END);
168 private function createSelector(Scanner\Token $token) {
170 case Scanner\Token::IDENTIFIER :
181 case Scanner\Token::ID_SELECTOR :
183 case Scanner\Token::CLASS_SELECTOR :
192 private function createPseudoElement(Scanner\Token $token): Ast\Selector\Simple\PseudoElement {