private function DocParser::Value in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php \Drupal\Component\Annotation\Doctrine\DocParser::Value()
Value ::= PlainValue | FieldAssignment
Return value
mixed
2 calls to DocParser::Value()
- DocParser::ArrayEntry in core/
lib/ Drupal/ Component/ Annotation/ Doctrine/ DocParser.php - ArrayEntry ::= Value | KeyValuePair KeyValuePair ::= Key ("=" | ":") PlainValue | Constant Key ::= string | integer | Constant
- DocParser::Values in core/
lib/ Drupal/ Component/ Annotation/ Doctrine/ DocParser.php - Values ::= Array | Value {"," Value}* [","]
File
- core/
lib/ Drupal/ Component/ Annotation/ Doctrine/ DocParser.php, line 988 - This class is a near-copy of Doctrine\Common\Annotations\DocParser, which is part of the Doctrine project: <http://www.doctrine-project.org>. It was copied from version 1.2.7.
Class
- DocParser
- A parser for docblock annotations.
Namespace
Drupal\Component\Annotation\DoctrineCode
private function Value() {
$peek = $this->lexer
->glimpse();
if (DocLexer::T_EQUALS === $peek['type']) {
return $this
->FieldAssignment();
}
return $this
->PlainValue();
}