various cleanup, remove redundant whitespace, realign object keys etc

This commit is contained in:
Sebastian McKenzie 2015-03-13 01:09:04 +11:00
parent b44ba25d11
commit 41a8257005
3 changed files with 5 additions and 6 deletions

View File

@ -66,8 +66,10 @@ export function ImportDeclaration(node, print) {
if (specfiers && specfiers.length) {
var foundImportSpecifier = false;
each(node.specifiers, (spec, i) => {
if (+i > 0) {
for (var i = 0; i < node.specifiers.length; i++) {
var spec = node.specifiers[i];
if (i > 0) {
this.push(", ");
}
@ -79,7 +81,7 @@ export function ImportDeclaration(node, print) {
}
print(spec);
});
}
if (foundImportSpecifier) {
this.push(" }");

View File

@ -123,7 +123,6 @@ export function bare(node, parent, scope) {
var name;
if (t.isLiteral(id)) {
console.log(id);
name = id.value;
} else if (t.isIdentifier(id)) {
name = id.name;

View File

@ -250,8 +250,6 @@ class ClassTransformer {
*/
verifyConstructor(node: Object) {
return; // enable this for the next major
var state = {
hasBareSuper: false,
hasSuper: this.hasSuper,