We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb0226c commit dabd833Copy full SHA for dabd833
src/Parser/TokenStream.php
@@ -22,6 +22,10 @@
22
final class TokenStream implements HasCursorInterface
23
{
24
private LexerInterface $lexer;
25
+
26
+ /**
27
+ * @var int<0, max> The current cursor position.
28
+ */
29
private int $cursor = 0;
30
31
/**
@@ -36,6 +40,8 @@ public function __construct(LexerInterface $lexer)
36
40
37
41
38
42
* Returns the position at the *end* of the most recently consumed significant token.
43
+ *
44
+ * @return int<0, max> The current cursor position.
39
45
*/
46
#[Override]
47
public function cursorPosition(): int
0 commit comments