Lines Matching refs:lexer

59     private $lexer;  variable in Doctrine\\Common\\Annotations\\DocParser
244 $this->lexer = new DocLexer;
351 $this->lexer->setInput(trim(substr($input, $pos), '* /'));
352 $this->lexer->moveNext();
393 if ( ! $this->lexer->isNextToken($token) ) {
394 $this->syntaxError($this->lexer->getLiteral($token));
397 return $this->lexer->moveNext();
412 if ( ! $this->lexer->isNextTokenAny($tokens)) {
413 … $this->syntaxError(implode(' or ', array_map(array($this->lexer, 'getLiteral'), $tokens)));
416 return $this->lexer->moveNext();
432 $token = $this->lexer->lookahead;
436 $message .= ($this->lexer->lookahead === null)
641 while (null !== $this->lexer->lookahead) {
642 if (DocLexer::T_AT !== $this->lexer->lookahead['type']) {
643 $this->lexer->moveNext();
648 …if (null !== $this->lexer->token && $this->lexer->lookahead['position'] === $this->lexer->token['p…
649 $this->lexer->moveNext();
655 if ((null === $peek = $this->lexer->glimpse())
657 || $peek['position'] !== $this->lexer->lookahead['position'] + 1) {
658 $this->lexer->moveNext();
689 if ($this->lexer->isNextToken(DocLexer::T_MINUS)
690 && $this->lexer->nextTokenIsAdjacent()
859 if ( ! $this->lexer->isNextToken(DocLexer::T_OPEN_PARENTHESIS)) {
865 if ( ! $this->lexer->isNextToken(DocLexer::T_CLOSE_PARENTHESIS)) {
883 while ($this->lexer->isNextToken(DocLexer::T_COMMA)) {
886 if ($this->lexer->isNextToken(DocLexer::T_CLOSE_PARENTHESIS)) {
890 $token = $this->lexer->lookahead;
994 if ( ! $this->lexer->isNextTokenAny(self::$classIdentifiers)) {
998 $this->lexer->moveNext();
1000 $className = $this->lexer->token['value'];
1002 …while ($this->lexer->lookahead['position'] === ($this->lexer->token['position'] + strlen($this->le…
1003 && $this->lexer->isNextToken(DocLexer::T_NAMESPACE_SEPARATOR)) {
1008 $className .= '\\' . $this->lexer->token['value'];
1021 $peek = $this->lexer->glimpse();
1037 if ($this->lexer->isNextToken(DocLexer::T_OPEN_CURLY_BRACES)) {
1041 if ($this->lexer->isNextToken(DocLexer::T_AT)) {
1045 if ($this->lexer->isNextToken(DocLexer::T_IDENTIFIER)) {
1049 switch ($this->lexer->lookahead['type']) {
1052 return $this->lexer->token['value'];
1056 return (int)$this->lexer->token['value'];
1060 return (float)$this->lexer->token['value'];
1088 $fieldName = $this->lexer->token['value'];
1111 if ($this->lexer->isNextToken(DocLexer::T_CLOSE_CURLY_BRACES)) {
1119 while ($this->lexer->isNextToken(DocLexer::T_COMMA)) {
1123 if ($this->lexer->isNextToken(DocLexer::T_CLOSE_CURLY_BRACES)) {
1154 $peek = $this->lexer->glimpse();
1159 if ($this->lexer->isNextToken(DocLexer::T_IDENTIFIER)) {
1163 $key = $this->lexer->token['value'];