function DocParser::match
Same name in other branches
- 9 core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php \Drupal\Component\Annotation\Doctrine\DocParser::match()
- 10 core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php \Drupal\Component\Annotation\Doctrine\DocParser::match()
- 11.x core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php \Drupal\Component\Annotation\Doctrine\DocParser::match()
Attempts to match the given token with the current lookahead token. If they match, updates the lookahead token; otherwise raises a syntax error.
Parameters
integer $token Type of token.:
Return value
boolean True if tokens match; false otherwise.
7 calls to DocParser::match()
- DocParser::Annotation in core/
lib/ Drupal/ Component/ Annotation/ Doctrine/ DocParser.php - Annotation ::= "@" AnnotationName MethodCall AnnotationName ::= QualifiedName | SimpleName QualifiedName ::= NameSpacePart "\" {NameSpacePart "\"}* SimpleName NameSpacePart ::= identifier | null | false |…
- DocParser::Arrayx in core/
lib/ Drupal/ Component/ Annotation/ Doctrine/ DocParser.php - Array ::= "{" ArrayEntry {"," ArrayEntry}* [","] "}"
- DocParser::FieldAssignment in core/
lib/ Drupal/ Component/ Annotation/ Doctrine/ DocParser.php - FieldAssignment ::= FieldName "=" PlainValue FieldName ::= identifier
- DocParser::Identifier in core/
lib/ Drupal/ Component/ Annotation/ Doctrine/ DocParser.php - Identifier ::= string
- DocParser::MethodCall in core/
lib/ Drupal/ Component/ Annotation/ Doctrine/ DocParser.php - MethodCall ::= ["(" [Values] ")"]
File
-
core/
lib/ Drupal/ Component/ Annotation/ Doctrine/ DocParser.php, line 373
Class
- DocParser
- A parser for docblock annotations.
Namespace
Drupal\Component\Annotation\DoctrineCode
private function match($token) {
if (!$this->lexer
->isNextToken($token)) {
$this->syntaxError($this->lexer
->getLiteral($token));
}
return $this->lexer
->moveNext();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.