File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ public function consumeTokenType(int $tokenType): void
90
90
}
91
91
92
92
93
+ /** @phpstan-impure */
93
94
public function tryConsumeTokenValue (string $ tokenValue ): bool
94
95
{
95
96
if ($ this ->tokens [$ this ->index ][Lexer::VALUE_OFFSET ] !== $ tokenValue ) {
@@ -106,6 +107,7 @@ public function tryConsumeTokenValue(string $tokenValue): bool
106
107
}
107
108
108
109
110
+ /** @phpstan-impure */
109
111
public function tryConsumeTokenType (int $ tokenType ): bool
110
112
{
111
113
if ($ this ->tokens [$ this ->index ][Lexer::TYPE_OFFSET ] !== $ tokenType ) {
@@ -132,6 +134,7 @@ public function getSkippedHorizontalWhiteSpaceIfAny(): string
132
134
}
133
135
134
136
137
+ /** @phpstan-impure */
135
138
public function joinUntil (int ...$ tokenType ): string
136
139
{
137
140
$ s = '' ;
@@ -153,6 +156,7 @@ public function next(): void
153
156
$ this ->index ++;
154
157
}
155
158
159
+ /** @phpstan-impure */
156
160
public function forwardToTheEnd (): void
157
161
{
158
162
$ lastToken = count ($ this ->tokens ) - 1 ;
You can’t perform that action at this time.
0 commit comments