Skip to content

Commit

Permalink
updating comments
Browse files Browse the repository at this point in the history
Signed-off-by: Fawzi E. Abdulfattah <[email protected]>
  • Loading branch information
iifawzi committed Dec 6, 2021
1 parent 3516c94 commit 199ba66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Statements/WithStatement.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,9 @@ public function parse(Parser $parser, TokensList $list)
$idxOfOn = $list->idx - 1;
// Index of the last parsed token will be the token before the ON Keyword, therefore $idxOfOn - 1.
$idxOfLastParsedToken = $idxOfOn - 1;
// The length of the expression tokens would be the position of
// The length of the expression tokens would be the difference
// between the first unrelated token `ON` and the idx
// before skipping the CTE tokens.
$lengthOfExpressionTokens = $idxOfOn - $idxBeforeSearch;
}

Expand Down

0 comments on commit 199ba66

Please sign in to comment.