private function DocParser::Value

Value ::= PlainValue | FieldAssignment

Return value

mixed

2 calls to DocParser::Value()
DocParser::ArrayEntry in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Annotations/DocParser.php
ArrayEntry ::= Value | KeyValuePair KeyValuePair ::= Key ("=" | ":") PlainValue | Constant Key ::= string | integer | Constant
DocParser::Values in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Annotations/DocParser.php
Values ::= Array | Value {"," Value}*

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Annotations/DocParser.php, line 842

Class

DocParser
A parser for docblock annotations.

Namespace

Doctrine\Common\Annotations

Code

private function Value() {
  $peek = $this->lexer
    ->glimpse();
  if (DocLexer::T_EQUALS === $peek['type']) {
    return $this
      ->FieldAssignment();
  }
  return $this
    ->PlainValue();
}