1
0
mirror of https://github.com/robertkrimen/otto synced 2025-10-19 19:55:30 +08:00
otto/ast
Tomoki Yamaguchi 589611c3ae
fix: positions of expressions (#505)
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.
2023-07-21 22:47:33 +01:00
..
comments_test.go
comments.go chore: lint and naming refactor (#475) 2022-12-04 21:49:38 +00:00
node.go fix: positions of expressions (#505) 2023-07-21 22:47:33 +01:00
walk_example_test.go
walk_test.go fix: panic on BadStatement (#495) 2023-05-20 13:35:41 +01:00
walk.go fix: panic on BadStatement (#495) 2023-05-20 13:35:41 +01:00