name: TokenStream
class_comment: "# * CSS selector token stream.\n# *\n# * This component is a port\
  \ of the Python cssselect library,\n# * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.\n\
  # *\n# * @author Jean-Fran\xE7ois Simon <jeanfrancois.simon@sensiolabs.com>\n# *\n\
  # * @internal"
dependencies:
- name: InternalErrorException
  type: class
  source: Symfony\Component\CssSelector\Exception\InternalErrorException
- name: SyntaxErrorException
  type: class
  source: Symfony\Component\CssSelector\Exception\SyntaxErrorException
properties: []
methods:
- name: push
  visibility: public
  parameters:
  - name: token
  comment: "# * CSS selector token stream.\n# *\n# * This component is a port of the\
    \ Python cssselect library,\n# * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.\n\
    # *\n# * @author Jean-Fran\xE7ois Simon <jeanfrancois.simon@sensiolabs.com>\n\
    # *\n# * @internal\n# */\n# class TokenStream\n# {\n# /**\n# * @var Token[]\n\
    # */\n# private array $tokens = [];\n# \n# /**\n# * @var Token[]\n# */\n# private\
    \ array $used = [];\n# \n# private int $cursor = 0;\n# private ?Token $peeked;\n\
    # private bool $peeking = false;\n# \n# /**\n# * Pushes a token.\n# *\n# * @return\
    \ $this"
- name: freeze
  visibility: public
  parameters: []
  comment: '# * Freezes stream.

    # *

    # * @return $this'
- name: getNext
  visibility: public
  parameters: []
  comment: '# * Returns next token.

    # *

    # * @throws InternalErrorException If there is no more token'
- name: getPeek
  visibility: public
  parameters: []
  comment: '# * Returns peeked token.'
- name: getUsed
  visibility: public
  parameters: []
  comment: '# * Returns used tokens.

    # *

    # * @return Token[]'
- name: getNextIdentifier
  visibility: public
  parameters: []
  comment: '# * Returns next identifier token.

    # *

    # * @throws SyntaxErrorException If next token is not an identifier'
- name: getNextIdentifierOrStar
  visibility: public
  parameters: []
  comment: '# * Returns next identifier or null if star delimiter token is found.

    # *

    # * @throws SyntaxErrorException If next token is not an identifier or a star
    delimiter'
- name: skipWhitespace
  visibility: public
  parameters: []
  comment: '# * Skips next whitespace if any.'
traits:
- Symfony\Component\CssSelector\Exception\InternalErrorException
- Symfony\Component\CssSelector\Exception\SyntaxErrorException
interfaces: []