Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Feb 7, 2022
1 parent d328835 commit 4f1ba1d
Showing 1 changed file with 3 additions and 6 deletions.
Expand Up @@ -522,8 +522,7 @@ function transformClass(
};

if (classDecorators) {
classInitLocal =
path.scope.parent.generateDeclaredUidIdentifier("initClass");
classInitLocal = scopeParent.generateDeclaredUidIdentifier("initClass");

const [localId, classPath] = replaceClassWithVar(path);
path = classPath;
Expand Down Expand Up @@ -762,8 +761,7 @@ function transformClass(
extractElementLocalAssignments(elementDecoratorInfo);

if (requiresProtoInit) {
protoInitLocal =
path.scope.parent.generateDeclaredUidIdentifier("initProto");
protoInitLocal = scopeParent.generateDeclaredUidIdentifier("initProto");
locals.push(protoInitLocal);

const protoInitCall = t.callExpression(t.cloneNode(protoInitLocal), [
Expand Down Expand Up @@ -824,8 +822,7 @@ function transformClass(
}

if (requiresStaticInit) {
staticInitLocal =
path.scope.parent.generateDeclaredUidIdentifier("initStatic");
staticInitLocal = scopeParent.generateDeclaredUidIdentifier("initStatic");
locals.push(staticInitLocal);
}

Expand Down

0 comments on commit 4f1ba1d

Please sign in to comment.