small style fixes
This commit is contained in:
parent
b13b4bbfba
commit
cc0f43813c
@ -33,7 +33,7 @@ var verifyConstructorVisitor = traverse.explode({
|
|||||||
|
|
||||||
CallExpression: {
|
CallExpression: {
|
||||||
enter(node, parent, scope, state) {
|
enter(node, parent, scope, state) {
|
||||||
if (t.isIdentifier(node.callee, { name: "super" })) {
|
if (this.get("callee").isIdentifier({ name: "super" })) {
|
||||||
state.hasBareSuper = true;
|
state.hasBareSuper = true;
|
||||||
|
|
||||||
if (!state.hasSuper) {
|
if (!state.hasSuper) {
|
||||||
@ -208,7 +208,7 @@ class ClassTransformer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// we have no constructor, we have a super, and the super doesn't appear to be falsy
|
// we have no constructor, but we're a derived class
|
||||||
if (!this.hasConstructor && this.hasSuper) {
|
if (!this.hasConstructor && this.hasSuper) {
|
||||||
var helperName = "class-super-constructor-call";
|
var helperName = "class-super-constructor-call";
|
||||||
if (this.isLoose) helperName += "-loose";
|
if (this.isLoose) helperName += "-loose";
|
||||||
|
|||||||
@ -9,11 +9,11 @@ export function check(node) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function TaggedTemplateExpression(node, parent, scope, file) {
|
export function TaggedTemplateExpression(node, parent, scope, file) {
|
||||||
var args = [];
|
|
||||||
var quasi = node.quasi;
|
var quasi = node.quasi;
|
||||||
|
var args = [];
|
||||||
|
|
||||||
var strings = [];
|
var strings = [];
|
||||||
var raw = [];
|
var raw = [];
|
||||||
|
|
||||||
for (var i = 0; i < quasi.quasis.length; i++) {
|
for (var i = 0; i < quasi.quasis.length; i++) {
|
||||||
var elem = quasi.quasis[i];
|
var elem = quasi.quasis[i];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user