Skip to content

Commit

Permalink
Improved statement locations
Browse files Browse the repository at this point in the history
Statements will get the earliest location of the expressions performing
a call it contains, if there is any. Then, for an expression `if (e)
{...}`, we don't move first to the location of the conditional before
going back to the location within `e` which might be strictly before.

When queueing expressions, we ignore their locations if they don't
perform a call; when flushed, we use the current location. This again
prevent locations to be reordered.
  • Loading branch information
vouillon committed Oct 18, 2024
1 parent 12855e5 commit a0cbbdb
Show file tree
Hide file tree
Showing 3 changed files with 2,295 additions and 3,089 deletions.
Loading

0 comments on commit a0cbbdb

Please sign in to comment.