add todo for module collisions

This commit is contained in:
Sebastian McKenzie 2015-01-07 09:56:17 +11:00
parent 0dafdd6969
commit 0d23c1cfdb

View File

@ -13,7 +13,7 @@ function DefaultFormatter(file) {
this.remapAssignments(); this.remapAssignments();
this.checkImportAssignments(); this.checkCollisions();
} }
DefaultFormatter.prototype.getLocalExports = function () { DefaultFormatter.prototype.getLocalExports = function () {
@ -45,7 +45,9 @@ DefaultFormatter.prototype.getLocalImports = function () {
return localImports; return localImports;
}; };
DefaultFormatter.prototype.checkImportAssignments = function () { DefaultFormatter.prototype.checkCollisions = function () {
// todo: all check export collissions
var localImports = this.localImports; var localImports = this.localImports;
var file = this.file; var file = this.file;
@ -70,7 +72,7 @@ DefaultFormatter.prototype.checkImportAssignments = function () {
} }
check(left); check(left);
} if (t.isDeclaration(node)) { } else if (t.isDeclaration(node)) {
_.each(t.getIds(node, true), check); _.each(t.getIds(node, true), check);
} }
} }