Add ExportNamedDeclaration
nzakas opened this issue · 6 comments
nzakas commented
This was just added to ESTree for module syntax.
estraverse.Syntax.ExportNamedDeclaration = "ExportNamedDeclaration";
estraverse.VisitorKeys.ExportNamedDeclaration = ["declaration", "specifies", "source"];
https://github.com/estree/estree/blob/master/es6.md#exportnameddeclaration
estraverse fails with any AST that has this new structure at the moment.
nzakas commented
Also ExportDefaultDeclaration, maybe more.
Constellation commented
LGTM
Constellation commented
I'll add it :)
ai commented
Awesome! Release with this fix is soon?
Constellation commented
I'll publish it as 2.0.0
because it contains some breaking change.
Constellation commented
OK, I've submitted it as 2.0.0
.