various cleanup, remove redundant whitespace, realign object keys etc
This commit is contained in:
parent
b44ba25d11
commit
41a8257005
@ -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(" }");
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -250,8 +250,6 @@ class ClassTransformer {
|
||||
*/
|
||||
|
||||
verifyConstructor(node: Object) {
|
||||
return; // enable this for the next major
|
||||
|
||||
var state = {
|
||||
hasBareSuper: false,
|
||||
hasSuper: this.hasSuper,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user