Skip to content

Commit 199ba66

Browse files
committed
updating comments
Signed-off-by: Fawzi E. Abdulfattah <[email protected]>
1 parent 3516c94 commit 199ba66

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Statements/WithStatement.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,9 @@ public function parse(Parser $parser, TokensList $list)
218218
$idxOfOn = $list->idx - 1;
219219
// Index of the last parsed token will be the token before the ON Keyword, therefore $idxOfOn - 1.
220220
$idxOfLastParsedToken = $idxOfOn - 1;
221-
// The length of the expression tokens would be the position of
221+
// The length of the expression tokens would be the difference
222+
// between the first unrelated token `ON` and the idx
223+
// before skipping the CTE tokens.
222224
$lengthOfExpressionTokens = $idxOfOn - $idxBeforeSearch;
223225
}
224226

0 commit comments

Comments
 (0)