File tree 2 files changed +20
-2
lines changed
2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,12 @@ This project adheres to [Semantic Versioning](https://semver.org/).
7
7
8
8
### Added
9
9
10
+ - Add ` ParserState::comsumeWhitespaceWithComments ` method (#668 )
11
+
10
12
### Changed
11
13
12
14
- Mark all class constants as ` @internal ` (#500 )
15
+ - Redirect ` ParserState::comsumeWhitespace ` to ` ParserState::comsumeWhitespaceWithComments ` (#668 )
13
16
14
17
### Deprecated
15
18
Original file line number Diff line number Diff line change @@ -226,12 +226,27 @@ public function parseCharacter($bIsForIdentifier)
226
226
}
227
227
228
228
/**
229
- * @return array<int, Comment>|void
229
+ * Consumes whitespace and comments and returns a list of comments.
230
+ *
231
+ * @return list<Comment> List of comments.
232
+ *
233
+ * @throws UnexpectedEOFException
234
+ * @throws UnexpectedTokenException
235
+ */
236
+ public function comsumeWhitespace (): array
237
+ {
238
+ return $ this ->comsumeWhitespaceWithComments ();
239
+ }
240
+
241
+ /**
242
+ * Consumes whitespace and comments and returns a list of comments.
243
+ *
244
+ * @return list<Comment> List of comments.
230
245
*
231
246
* @throws UnexpectedEOFException
232
247
* @throws UnexpectedTokenException
233
248
*/
234
- public function consumeWhiteSpace ()
249
+ public function comsumeWhitespaceWithComments ()
235
250
{
236
251
$ aComments = [];
237
252
do {
You can’t perform that action at this time.
0 commit comments