microoptimize module formatters, change method names to a new API, and add support for exporting multiple variable declarators - fixes #299

This commit is contained in:
Sebastian McKenzie
2014-12-15 22:34:49 +11:00
parent e01e010577
commit a03d491ac6
14 changed files with 40 additions and 32 deletions

View File

@@ -237,7 +237,7 @@ ModuleFormatter.prototype.transform = function (ast) {
// feel free to modify this however
};
ModuleFormatter.prototype.import = function (node, nodes) {
ModuleFormatter.prototype.importDeclaration = function (node, nodes) {
// node is an ImportDeclaration
};
@@ -246,7 +246,7 @@ ModuleFormatter.prototype.importSpecifier = function (specifier, node, nodes) {
// node is an ImportDeclaration
};
ModuleFormatter.prototype.export = function (node, nodes) {
ModuleFormatter.prototype.exportDeclaration = function (node, nodes) {
// node is an ExportDeclaration
};