diff options
Diffstat (limited to 'src/Parser.php')
-rw-r--r-- | src/Parser.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Parser.php b/src/Parser.php index 29e6701..11874fa 100644 --- a/src/Parser.php +++ b/src/Parser.php @@ -339,15 +339,15 @@ class Parser */ $stmt = new $class(); + // Parsing the actual statement. + $stmt->parse($this, $this->list); + // The first token that is a part of this token is the next token // unprocessed by the previous statement. // There might be brackets around statements and this shouldn't // affect the parser $stmt->first = $prevLastIdx + 1; - // Parsing the actual statement. - $stmt->parse($this, $this->list); - // Storing the index of the last token parsed and updating the old // index. $stmt->last = $list->idx; |