Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: positions of expressions #505

Merged
merged 5 commits into from
Jul 21, 2023
Merged

Conversation

tyamagu2
Copy link
Contributor

  • Fix typo in parseConditionlExpression
  • Fix Idx1 of ConditionalExpression to point to Alternate.Idx1()
  • Fix Idx1 of SequenceExpression to point to Idx1 of the last Sequence element
  • Fix Idx0 of UnaryExpression to point to the beginning of Operand in case of postfix operator
  • Fix Idx1 of VariableExpression to point to the character immediately after Name if it does not have Initializer

Fix Idx1 of ConditionalExpression so that it points to the next character after alternate expression
Fix Idx1 of SequenceExpression to return Idx1 of the last sequence element, not first.
Fix Idx0 of unary expression to point to the start of operand in case of a postfix operator
Fix Idx1 of VariableExpression so that it points to the character right after the name literal if the expression does not have an initializer.
@stevenh stevenh merged commit 589611c into robertkrimen:master Jul 21, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants