estools/estraverse

Add ExportNamedDeclaration

nzakas opened this issue · 6 comments

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.

Also ExportDefaultDeclaration, maybe more.

I'll add it :)

ai commented

Awesome! Release with this fix is soon?

I'll publish it as 2.0.0 because it contains some breaking change.

OK, I've submitted it as 2.0.0.