Top level only parse


#1

Is acorn able to just parse the top level of a file?
To generate ast for the top level and chunk everything else into some bulk blob.
I’m looking to do a transform on the top level (import/export) and don’t care about the rest.
I see a Parse#parseTopLevel but it’s recursive (drilling all the way in).


#2

Nope. But unless you’re doing something really performance-sensitive, it probably doesn’t matter.