Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing semicolons in 2021-12 decorators output #14398

Merged
merged 1 commit into from Mar 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -991,7 +991,7 @@ function transformClass(

// When path is a ClassExpression, path.insertBefore will convert `path`
// into a SequenceExpression
path.insertBefore(assignments);
path.insertBefore(assignments.map(expr => t.expressionStatement(expr)));

// Recrawl the scope to make sure new identifiers are properly synced
path.scope.crawl();
Expand Down
Expand Up @@ -2,7 +2,7 @@ var _init_a, _init_b, _computedKey, _init_computedKey, _initProto;

const dec = () => {};

_computedKey = 'c'
_computedKey = 'c';

var _A = /*#__PURE__*/new WeakMap();

Expand Down
Expand Up @@ -2,7 +2,7 @@ var _init_a, _init_b, _computedKey, _init_computedKey, _initStatic;

const dec = () => {};

_computedKey = 'c'
_computedKey = 'c';

class Foo {
static get a() {
Expand Down
Expand Up @@ -2,7 +2,7 @@ var _init_a, _init_b, _computedKey, _init_computedKey, _initProto;

const dec = () => {};

_computedKey = 'c'
_computedKey = 'c';

class Foo {
static {
Expand Down
Expand Up @@ -2,7 +2,7 @@ var _init_a, _init_b, _computedKey, _init_computedKey, _initStatic;

const dec = () => {};

_computedKey = 'c'
_computedKey = 'c';

class Foo {
static {
Expand Down
Expand Up @@ -4,7 +4,7 @@ const dec = () => {};

let _Bar;

_dec = dec1
_dec = dec1;

class Bar {
static {
Expand All @@ -18,7 +18,7 @@ class Bar {

let _Foo;

_dec2 = dec2
_dec2 = dec2;

class Foo extends _Bar {
static {
Expand Down
Expand Up @@ -2,8 +2,8 @@ var _computedKey, _computedKey2, _initProto;

const dec = () => {};

_computedKey = getKey()
_computedKey2 = getKey()
_computedKey = getKey();
_computedKey2 = getKey();

class Foo {
constructor(...args) {
Expand Down
Expand Up @@ -2,8 +2,8 @@ var _computedKey, _computedKey2, _initProto;

const dec = () => {};

_computedKey = getKeyI()
_computedKey2 = getKeyJ()
_computedKey = getKeyI();
_computedKey2 = getKeyJ();

class Foo {
constructor(...args) {
Expand Down
Expand Up @@ -2,8 +2,8 @@ var _computedKey, _computedKey2, _initProto;

const dec = () => {};

_computedKey = getKey()
_computedKey2 = getKey()
_computedKey = getKey();
_computedKey2 = getKey();

class Foo {
static {
Expand Down
Expand Up @@ -2,8 +2,8 @@ var _computedKey, _computedKey2, _initProto;

const dec = () => {};

_computedKey = getKeyI()
_computedKey2 = getKeyJ()
_computedKey = getKeyI();
_computedKey2 = getKeyJ();

class Foo {
static {
Expand Down
Expand Up @@ -2,7 +2,7 @@ var _initClass, _dec;

let _A;

_dec = dec
_dec = dec;

class A {
static {
Expand Down
Expand Up @@ -2,7 +2,7 @@ var _initClass, _dec;

let _default2;

_dec = dec
_dec = dec;

class _default {
static {
Expand Down
@@ -1,6 +1,6 @@
var _dec, _init_x;

_dec = dec
_dec = dec;
export class A {
static {
[_init_x] = babelHelpers.applyDecs(this, [[_dec, 0, "x"]], []);
Expand Down
Expand Up @@ -2,7 +2,7 @@ var _initClass, _dec;

let _A;

_dec = dec
_dec = dec;

class A {
static {
Expand Down
Expand Up @@ -2,7 +2,7 @@ var _init_a, _init_b, _computedKey, _init_computedKey;

const dec = () => {};

_computedKey = 'c'
_computedKey = 'c';

class Foo {
constructor() {
Expand Down
Expand Up @@ -2,7 +2,7 @@ var _init_a, _init_b, _computedKey, _init_computedKey;

const dec = () => {};

_computedKey = 'c'
_computedKey = 'c';

class Foo {}

Expand Down
Expand Up @@ -2,7 +2,7 @@ var _init_a, _init_b, _computedKey, _init_computedKey;

const dec = () => {};

_computedKey = 'c'
_computedKey = 'c';

class Foo {
static {
Expand Down
Expand Up @@ -2,7 +2,7 @@ var _init_a, _init_b, _computedKey, _init_computedKey;

const dec = () => {};

_computedKey = 'c'
_computedKey = 'c';

class Foo {
static {
Expand Down
Expand Up @@ -2,7 +2,7 @@ var _computedKey, _initProto;

const dec = () => {};

_computedKey = 'b'
_computedKey = 'b';

class Foo {
constructor(...args) {
Expand Down
Expand Up @@ -2,7 +2,7 @@ var _computedKey, _initStatic;

const dec = () => {};

_computedKey = 'b'
_computedKey = 'b';

class Foo {
static get a() {
Expand Down
Expand Up @@ -2,8 +2,8 @@ var _computedKey, _computedKey2, _initProto;

const dec = () => {};

_computedKey = 'b'
_computedKey2 = 'b'
_computedKey = 'b';
_computedKey2 = 'b';

class Foo {
constructor(...args) {
Expand Down
Expand Up @@ -2,8 +2,8 @@ var _computedKey, _computedKey2, _initStatic;

const dec = () => {};

_computedKey = 'b'
_computedKey2 = 'b'
_computedKey = 'b';
_computedKey2 = 'b';

class Foo {
static get a() {
Expand Down
Expand Up @@ -2,8 +2,8 @@ var _computedKey, _computedKey2, _initProto;

const dec = () => {};

_computedKey = 'b'
_computedKey2 = 'b'
_computedKey = 'b';
_computedKey2 = 'b';

class Foo {
static {
Expand Down
Expand Up @@ -2,8 +2,8 @@ var _computedKey, _computedKey2, _initStatic;

const dec = () => {};

_computedKey = 'b'
_computedKey2 = 'b'
_computedKey = 'b';
_computedKey2 = 'b';

class Foo {
static {
Expand Down
Expand Up @@ -2,7 +2,7 @@ var _computedKey, _initProto;

const dec = () => {};

_computedKey = 'b'
_computedKey = 'b';

class Foo {
static {
Expand Down
Expand Up @@ -2,7 +2,7 @@ var _computedKey, _initStatic;

const dec = () => {};

_computedKey = 'b'
_computedKey = 'b';

class Foo {
static {
Expand Down
Expand Up @@ -2,7 +2,7 @@ var _computedKey, _initProto;

const dec = () => {};

_computedKey = 'b'
_computedKey = 'b';

class Foo {
constructor(...args) {
Expand Down
Expand Up @@ -2,7 +2,7 @@ var _computedKey, _initStatic;

const dec = () => {};

_computedKey = 'b'
_computedKey = 'b';

class Foo {
static a() {
Expand Down
Expand Up @@ -2,7 +2,7 @@ var _computedKey, _initProto;

const dec = () => {};

_computedKey = 'b'
_computedKey = 'b';

class Foo {
static {
Expand Down
Expand Up @@ -2,7 +2,7 @@ var _computedKey, _initStatic;

const dec = () => {};

_computedKey = 'b'
_computedKey = 'b';

class Foo {
static {
Expand Down
Expand Up @@ -2,7 +2,7 @@ var _dec, _initProto;

const dec = () => {};

_dec = deco
_dec = deco;

class A extends B {
constructor() {
Expand Down
Expand Up @@ -4,14 +4,14 @@ const dec = () => {};

let _Foo;

_dec = call()
_dec2 = chain.expr()
_dec3 = arbitrary + expr
_dec4 = array[expr]
_dec5 = call()
_dec6 = chain.expr()
_dec7 = arbitrary + expr
_dec8 = array[expr]
_dec = call();
_dec2 = chain.expr();
_dec3 = arbitrary + expr;
_dec4 = array[expr];
_dec5 = call();
_dec6 = chain.expr();
_dec7 = arbitrary + expr;
_dec8 = array[expr];

var _a = /*#__PURE__*/new WeakMap();

Expand Down
Expand Up @@ -2,7 +2,7 @@ var _dec, _initProto, _dec2, _initProto2;

const dec = () => {};

_dec = deco
_dec = deco;

class A extends B {
static {
Expand All @@ -21,7 +21,7 @@ class A extends B {

}

_dec2 = deco
_dec2 = deco;

class C extends B {
static {
Expand Down
Expand Up @@ -4,14 +4,14 @@ const dec = () => {};

let _Foo;

_dec = call()
_dec2 = chain.expr()
_dec3 = arbitrary + expr
_dec4 = array[expr]
_dec5 = call()
_dec6 = chain.expr()
_dec7 = arbitrary + expr
_dec8 = array[expr]
_dec = call();
_dec2 = chain.expr();
_dec3 = arbitrary + expr;
_dec4 = array[expr];
_dec5 = call();
_dec6 = chain.expr();
_dec7 = arbitrary + expr;
_dec8 = array[expr];

class Foo {
static {
Expand Down
Expand Up @@ -2,7 +2,7 @@ var _computedKey, _initProto;

const dec = () => {};

_computedKey = 'b'
_computedKey = 'b';

class Foo {
constructor(...args) {
Expand Down
Expand Up @@ -2,7 +2,7 @@ var _computedKey, _initStatic;

const dec = () => {};

_computedKey = 'b'
_computedKey = 'b';

class Foo {
static set a(v) {
Expand Down
Expand Up @@ -2,7 +2,7 @@ var _computedKey, _initProto;

const dec = () => {};

_computedKey = 'b'
_computedKey = 'b';

class Foo {
static {
Expand Down