boa
boa copied to clipboard
Split `Node` into `Expression`, `Statement` and `Declaration`
Currently Node
is both a expression, statement and declaration. It would be better if Node
was split into how the spec describes it Expression
, Statement
and also Declaration
. Why do we want this? Right now we don't differentiate between statements (like if
, while
, etc) and expressions (like 2 + 2
), while we could make it work like this, it makes somethings awkward like if (cond) {}
, cond
should only an expression, and when we parse it we check for this, but some checks can be elided if we leverage the type system, making illegal state unrepresentable.
We want to match to what astexplorer outputs.
Is anyone working on this?
Is anyone working on this?
I don't think so, do you want me to assign it to you?
If this is still available, can I work on this?
If this is still available, can I work on this?
We haven't assigned someone, so please do! Let me assign it to you
I'll work on this in the next days :)