You are here

private function DocParser::Identifier in Service Container 7.2

Same name and namespace in other branches
  1. 7 modules/providers/service_container_annotation_discovery/lib/Doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php \Doctrine\Common\Annotations\DocParser::Identifier()

Identifier ::= string

Return value

string

2 calls to DocParser::Identifier()
DocParser::Annotation in modules/providers/service_container_annotation_discovery/lib/Doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php
Annotation ::= "@" AnnotationName MethodCall AnnotationName ::= QualifiedName | SimpleName QualifiedName ::= NameSpacePart "\" {NameSpacePart "\"}* SimpleName NameSpacePart ::= identifier | null | false |…
DocParser::Constant in modules/providers/service_container_annotation_discovery/lib/Doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php
Constant ::= integer | string | float | boolean

File

modules/providers/service_container_annotation_discovery/lib/Doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php, line 956

Class

DocParser
A parser for docblock annotations.

Namespace

Doctrine\Common\Annotations

Code

private function Identifier() {

  // check if we have an annotation
  if (!$this->lexer
    ->isNextTokenAny(self::$classIdentifiers)) {
    $this
      ->syntaxError('namespace separator or identifier');
  }
  $this->lexer
    ->moveNext();
  $className = $this->lexer->token['value'];
  while ($this->lexer->lookahead['position'] === $this->lexer->token['position'] + strlen($this->lexer->token['value']) && $this->lexer
    ->isNextToken(DocLexer::T_NAMESPACE_SEPARATOR)) {
    $this
      ->match(DocLexer::T_NAMESPACE_SEPARATOR);
    $this
      ->matchAny(self::$classIdentifiers);
    $className .= '\\' . $this->lexer->token['value'];
  }
  return $className;
}