I’m building a codegen library that combines acorn and magic-string.
It would be really nice if you added a
parents: true option that sets the
parent property of each node as code is parsed.
Another useful property is a
ref string on each node that equals the parent property that references it. This can be used as a quick way to identify sibling nodes. This property could be set when the
parents: true option is defined, or maybe a
refs: true option for granularity’s sake.
Would you be okay with adding options that diverge from the ESTree spec?