DocBlockParser
Less than 1 minute
DocBlockParser
Helpers for discovering declaration doc comments in token streams.
trait DocBlockParserMethods
checkDocComment
Returns the doc comment token immediately before the current token.
protected checkDocComment(array $tokens, bool $doubleJump): ?DocBlockReturns: Hazaar\Parser\DocBlock
Parameters
| Parameter | Type | Description |
|---|---|---|
$tokens | array | token stream used by the parser |
$doubleJump | bool | whether to move back two tokens before checking |
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:16 +0000