fix(es/minifier): Ignore using declarations (#9598)

This commit is contained in:
Donny/강동윤 2024-10-01 17:09:39 +09:00 committed by GitHub
parent f2b07665bf
commit 1659c212b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
126 changed files with 1005 additions and 2876 deletions

View File

@ -0,0 +1,7 @@
---
swc_core: patch
swc_ecma_minifier: patch
swc_ecma_transforms_optimization: patch
---
chore(ci): Fix CI

View File

@ -1,267 +1,138 @@
//// [awaitUsingDeclarations.1.ts]
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
try {
var _usingCtx = _using_ctx();
var d1 = _usingCtx.a({
await using d1 = {
async [Symbol.asyncDispose] () {}
}
async function af() {
await using d3 = {
async [Symbol.asyncDispose] () {}
});
async function af() {
try {
var _usingCtx = _using_ctx();
const d3 = _usingCtx.a({
async [Symbol.asyncDispose] () {}
});
await null;
} catch (_) {
_usingCtx.e = _;
} finally{
await _usingCtx.d();
}
}
async function* ag() {
try {
var _usingCtx = _using_ctx();
const d5 = _usingCtx.a({
async [Symbol.asyncDispose] () {}
});
yield;
await null;
} catch (_) {
_usingCtx.e = _;
} finally{
await _usingCtx.d();
}
;
await null;
}
async function* ag() {
await using d5 = {
async [Symbol.asyncDispose] () {}
}
const a = async ()=>{
try {
var _usingCtx = _using_ctx();
const d6 = _usingCtx.a({
async [Symbol.asyncDispose] () {}
});
} catch (_) {
_usingCtx.e = _;
} finally{
await _usingCtx.d();
;
yield;
await null;
}
const a = async ()=>{
await using d6 = {
async [Symbol.asyncDispose] () {}
}
;
};
class C1 {
async am() {
await using d13 = {
async [Symbol.asyncDispose] () {}
}
};
class C1 {
async am() {
try {
var _usingCtx = _using_ctx();
const d13 = _usingCtx.a({
async [Symbol.asyncDispose] () {}
});
await null;
} catch (_) {
_usingCtx.e = _;
} finally{
await _usingCtx.d();
;
await null;
}
async *ag() {
await using d15 = {
async [Symbol.asyncDispose] () {}
}
;
yield;
await null;
}
constructor(){
this.a = async ()=>{
await using d7 = {
async [Symbol.asyncDispose] () {}
}
}
async *ag() {
try {
var _usingCtx = _using_ctx();
const d15 = _usingCtx.a({
async [Symbol.asyncDispose] () {}
});
yield;
await null;
} catch (_) {
_usingCtx.e = _;
} finally{
await _usingCtx.d();
}
}
constructor(){
this.a = async ()=>{
try {
var _usingCtx = _using_ctx();
const d7 = _usingCtx.a({
async [Symbol.asyncDispose] () {}
});
} catch (_) {
_usingCtx.e = _;
} finally{
await _usingCtx.d();
}
};
}
;
};
}
{
try {
var _usingCtx1 = _using_ctx();
const d19 = _usingCtx1.a({
async [Symbol.asyncDispose] () {}
});
} catch (_) {
_usingCtx1.e = _;
} finally{
await _usingCtx1.d();
}
}
{
await using d19 = {
async [Symbol.asyncDispose] () {}
}
switch(Math.random()){
case 0:
try {
var _usingCtx2 = _using_ctx();
const d20 = _usingCtx2.a({
async [Symbol.asyncDispose] () {}
});
break;
} catch (_) {
_usingCtx2.e = _;
} finally{
await _usingCtx2.d();
}
case 1:
try {
var _usingCtx3 = _using_ctx();
const d21 = _usingCtx3.a({
async [Symbol.asyncDispose] () {}
});
break;
} catch (_) {
_usingCtx3.e = _;
} finally{
await _usingCtx3.d();
}
;
}switch(Math.random()){
case 0:
await using d20 = {
async [Symbol.asyncDispose] () {}
}
;
break;
case 1:
await using d21 = {
async [Symbol.asyncDispose] () {}
}
;
break;
}
if (true) switch(0){
case 0:
await using d22 = {
async [Symbol.asyncDispose] () {}
}
;
break;
}
try {
await using d23 = {
async [Symbol.asyncDispose] () {}
}
if (true) switch(0){
case 0:
try {
var _usingCtx4 = _using_ctx();
const d22 = _usingCtx4.a({
async [Symbol.asyncDispose] () {}
});
break;
} catch (_) {
_usingCtx4.e = _;
} finally{
await _usingCtx4.d();
}
;
} catch {
await using d24 = {
async [Symbol.asyncDispose] () {}
}
try {
try {
var _usingCtx5 = _using_ctx();
const d23 = _usingCtx5.a({
async [Symbol.asyncDispose] () {}
});
} catch (_) {
_usingCtx5.e = _;
} finally{
await _usingCtx5.d();
}
} catch {
try {
var _usingCtx6 = _using_ctx();
const d24 = _usingCtx6.a({
async [Symbol.asyncDispose] () {}
});
} catch (_) {
_usingCtx6.e = _;
} finally{
await _usingCtx6.d();
}
} finally{
try {
var _usingCtx7 = _using_ctx();
const d25 = _usingCtx7.a({
async [Symbol.asyncDispose] () {}
});
} catch (_) {
_usingCtx7.e = _;
} finally{
await _usingCtx7.d();
}
}
if (true) {
try {
var _usingCtx8 = _using_ctx();
const d26 = _usingCtx8.a({
async [Symbol.asyncDispose] () {}
});
} catch (_) {
_usingCtx8.e = _;
} finally{
await _usingCtx8.d();
}
} else {
try {
var _usingCtx9 = _using_ctx();
const d27 = _usingCtx9.a({
async [Symbol.asyncDispose] () {}
});
} catch (_) {
_usingCtx9.e = _;
} finally{
await _usingCtx9.d();
}
}
while(true){
try {
var _usingCtx10 = _using_ctx();
const d28 = _usingCtx10.a({
async [Symbol.asyncDispose] () {}
});
break;
} catch (_) {
_usingCtx10.e = _;
} finally{
await _usingCtx10.d();
}
}
do {
try {
var _usingCtx11 = _using_ctx();
const d29 = _usingCtx11.a({
async [Symbol.asyncDispose] () {}
});
break;
} catch (_) {
_usingCtx11.e = _;
} finally{
await _usingCtx11.d();
}
}while (true)
for(;;){
try {
var _usingCtx12 = _using_ctx();
const d30 = _usingCtx12.a({
async [Symbol.asyncDispose] () {}
});
break;
} catch (_) {
_usingCtx12.e = _;
} finally{
await _usingCtx12.d();
}
}
for(const x in {}){
try {
var _usingCtx13 = _using_ctx();
const d31 = _usingCtx13.a({
async [Symbol.asyncDispose] () {}
});
} catch (_) {
_usingCtx13.e = _;
} finally{
await _usingCtx13.d();
}
}
for (const x of []){
try {
var _usingCtx14 = _using_ctx();
const d32 = _usingCtx14.a({
async [Symbol.asyncDispose] () {}
});
} catch (_) {
_usingCtx14.e = _;
} finally{
await _usingCtx14.d();
}
}
} catch (_) {
_usingCtx.e = _;
;
} finally{
await _usingCtx.d();
await using d25 = {
async [Symbol.asyncDispose] () {}
}
;
}
if (true) {
await using d26 = {
async [Symbol.asyncDispose] () {}
}
;
} else {
await using d27 = {
async [Symbol.asyncDispose] () {}
}
;
}
while(true){
await using d28 = {
async [Symbol.asyncDispose] () {}
}
;
break;
}
do {
await using d29 = {
async [Symbol.asyncDispose] () {}
}
;
break;
}while (true)
for(;;){
await using d30 = {
async [Symbol.asyncDispose] () {}
}
;
break;
}
for(const x in {}){
await using d31 = {
async [Symbol.asyncDispose] () {}
}
;
}
for (const x of []){
await using d32 = {
async [Symbol.asyncDispose] () {}
}
;
}
export { };

View File

@ -1,154 +1,62 @@
//// [awaitUsingDeclarations.1.ts]
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
try {
var _usingCtx = _using_ctx();
_usingCtx.a({
async [Symbol.asyncDispose] () {}
});
try {
var _usingCtx1 = _using_ctx();
_usingCtx1.a({
async [Symbol.asyncDispose] () {}
});
} catch (_) {
_usingCtx1.e = _;
} finally{
await _usingCtx1.d();
}
switch(Math.random()){
case 0:
try {
var _usingCtx2 = _using_ctx();
_usingCtx2.a({
async [Symbol.asyncDispose] () {}
});
break;
} catch (_) {
_usingCtx2.e = _;
} finally{
await _usingCtx2.d();
}
case 1:
try {
var _usingCtx3 = _using_ctx();
_usingCtx3.a({
async [Symbol.asyncDispose] () {}
});
} catch (_) {
_usingCtx3.e = _;
} finally{
await _usingCtx3.d();
}
}
try {
var _usingCtx4 = _using_ctx();
_usingCtx4.a({
async [Symbol.asyncDispose] () {}
});
} catch (_) {
_usingCtx4.e = _;
} finally{
await _usingCtx4.d();
}
try {
try {
var _usingCtx5 = _using_ctx();
_usingCtx5.a({
async [Symbol.asyncDispose] () {}
});
} catch (_) {
_usingCtx5.e = _;
} finally{
await _usingCtx5.d();
}
} catch {
try {
var _usingCtx6 = _using_ctx();
_usingCtx6.a({
async [Symbol.asyncDispose] () {}
});
} catch (_) {
_usingCtx6.e = _;
} finally{
await _usingCtx6.d();
}
} finally{
try {
var _usingCtx7 = _using_ctx();
_usingCtx7.a({
async [Symbol.asyncDispose] () {}
});
} catch (_) {
_usingCtx7.e = _;
} finally{
await _usingCtx7.d();
}
}
try {
var _usingCtx8 = _using_ctx();
_usingCtx8.a({
async [Symbol.asyncDispose] () {}
});
} catch (_) {
_usingCtx8.e = _;
} finally{
await _usingCtx8.d();
}
for(;;)try {
var _usingCtx10 = _using_ctx();
_usingCtx10.a({
async [Symbol.asyncDispose] () {}
});
break;
} catch (_) {
_usingCtx10.e = _;
} finally{
await _usingCtx10.d();
}
for(;;)try {
var _usingCtx11 = _using_ctx();
_usingCtx11.a({
async [Symbol.asyncDispose] () {}
});
break;
} catch (_) {
_usingCtx11.e = _;
} finally{
await _usingCtx11.d();
}
for(;;)try {
var _usingCtx12 = _using_ctx();
_usingCtx12.a({
async [Symbol.asyncDispose] () {}
});
break;
} catch (_) {
_usingCtx12.e = _;
} finally{
await _usingCtx12.d();
}
for(let x in {})try {
var _usingCtx13 = _using_ctx();
_usingCtx13.a({
async [Symbol.asyncDispose] () {}
});
} catch (_) {
_usingCtx13.e = _;
} finally{
await _usingCtx13.d();
}
for (let x of [])try {
var _usingCtx14 = _using_ctx();
_usingCtx14.a({
async [Symbol.asyncDispose] () {}
});
} catch (_) {
_usingCtx14.e = _;
} finally{
await _usingCtx14.d();
}
} catch (_) {
_usingCtx.e = _;
} finally{
await _usingCtx.d();
await using d1 = {
async [Symbol.asyncDispose] () {}
}
await using d19 = {
async [Symbol.asyncDispose] () {}
}
switch(Math.random()){
case 0:
await using d20 = {
async [Symbol.asyncDispose] () {}
}
break;
case 1:
await using d21 = {
async [Symbol.asyncDispose] () {}
}
}
await using d22 = {
async [Symbol.asyncDispose] () {}
}
try {
await using d23 = {
async [Symbol.asyncDispose] () {}
}
} catch {
await using d24 = {
async [Symbol.asyncDispose] () {}
}
} finally{
await using d25 = {
async [Symbol.asyncDispose] () {}
}
}
await using d26 = {
async [Symbol.asyncDispose] () {}
}
for(;;){
await using d28 = {
async [Symbol.asyncDispose] () {}
}
break;
}
for(;;){
await using d29 = {
async [Symbol.asyncDispose] () {}
}
break;
}
for(;;){
await using d30 = {
async [Symbol.asyncDispose] () {}
}
break;
}
for(let x in {})await using d31 = {
async [Symbol.asyncDispose] () {}
}
for (let x of [])await using d32 = {
async [Symbol.asyncDispose] () {}
}
export { };

View File

@ -1,12 +1,5 @@
//// [awaitUsingDeclarations.12.ts]
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
async function f() {
try {
var _usingCtx = _using_ctx();
const x = _usingCtx.a({});
} catch (_) {
_usingCtx.e = _;
} finally{
await _usingCtx.d();
}
await using x = {}
;
}

View File

@ -1,2 +1 @@
//// [awaitUsingDeclarations.12.ts]
import "@swc/helpers/_/_using_ctx";

View File

@ -1,20 +1,6 @@
//// [awaitUsingDeclarations.13.ts]
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
try {
var _usingCtx = _using_ctx();
var x = _usingCtx.a(null);
function f() {
try {
var _usingCtx = _using_ctx();
const x = _usingCtx.a(null);
} catch (_) {
_usingCtx.e = _;
} finally{
await _usingCtx.d();
}
}
} catch (_) {
_usingCtx.e = _;
} finally{
await _usingCtx.d();
await using x = null
function f() {
await using x = null
;
}

View File

@ -1,10 +1,2 @@
//// [awaitUsingDeclarations.13.ts]
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
try {
var _usingCtx = _using_ctx();
_usingCtx.a(null);
} catch (_) {
_usingCtx.e = _;
} finally{
await _usingCtx.d();
}
await using x = null

View File

@ -1,14 +1,7 @@
//// [awaitUsingDeclarations.15.ts]
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
async function f() {
try {
var _usingCtx = _using_ctx();
const _ = _usingCtx.a({
async [Symbol.asyncDispose] () {}
});
} catch (_) {
_usingCtx.e = _;
} finally{
await _usingCtx.d();
await using _ = {
async [Symbol.asyncDispose] () {}
}
;
}

View File

@ -1,2 +1 @@
//// [awaitUsingDeclarations.15.ts]
import "@swc/helpers/_/_using_ctx";

View File

@ -1,16 +1,9 @@
//// [awaitUsingDeclarations.2.ts]
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
{
try {
var _usingCtx = _using_ctx();
const d1 = _usingCtx.a({
async [Symbol.asyncDispose] () {}
}), d2 = _usingCtx.a({
async [Symbol.asyncDispose] () {}
});
} catch (_) {
_usingCtx.e = _;
} finally{
await _usingCtx.d();
await using d1 = {
async [Symbol.asyncDispose] () {}
}, d2 = {
async [Symbol.asyncDispose] () {}
}
;
}export { };

View File

@ -1,14 +1,7 @@
//// [awaitUsingDeclarations.2.ts]
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
try {
var _usingCtx = _using_ctx();
_usingCtx.a({
async [Symbol.asyncDispose] () {}
}), _usingCtx.a({
async [Symbol.asyncDispose] () {}
});
} catch (_) {
_usingCtx.e = _;
} finally{
await _usingCtx.d();
await using d1 = {
async [Symbol.asyncDispose] () {}
}, d2 = {
async [Symbol.asyncDispose] () {}
}
export { };

View File

@ -1,16 +1,9 @@
//// [awaitUsingDeclarations.3.ts]
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
{
try {
var _usingCtx = _using_ctx();
const d1 = _usingCtx.a({
async [Symbol.asyncDispose] () {}
}), d2 = _usingCtx.a(null), d3 = _usingCtx.a(undefined), d4 = _usingCtx.a({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx.e = _;
} finally{
await _usingCtx.d();
await using d1 = {
async [Symbol.asyncDispose] () {}
}, d2 = null, d3 = undefined, d4 = {
[Symbol.dispose] () {}
}
;
}export { };

View File

@ -1,14 +1,7 @@
//// [awaitUsingDeclarations.3.ts]
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
try {
var _usingCtx = _using_ctx();
_usingCtx.a({
async [Symbol.asyncDispose] () {}
}), _usingCtx.a(null), _usingCtx.a(void 0), _usingCtx.a({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx.e = _;
} finally{
await _usingCtx.d();
await using d1 = {
async [Symbol.asyncDispose] () {}
}, d2 = null, d3 = void 0, d4 = {
[Symbol.dispose] () {}
}
export { };

View File

@ -1,12 +1,5 @@
//// [awaitUsingDeclarations.9.ts]
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
{
try {
var _usingCtx = _using_ctx();
const a = _usingCtx.a(null);
} catch (_) {
_usingCtx.e = _;
} finally{
await _usingCtx.d();
}
await using a = null
;
}export { };

View File

@ -1,10 +1,3 @@
//// [awaitUsingDeclarations.9.ts]
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
try {
var _usingCtx = _using_ctx();
_usingCtx.a(null);
} catch (_) {
_usingCtx.e = _;
} finally{
await _usingCtx.d();
}
await using a = null
export { };

View File

@ -1,7 +1,6 @@
//// [awaitUsingDeclarationsInForAwaitOf.ts]
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
async function main() {
for await (const d1 of [
for await (await using d1 of [
{
async [Symbol.asyncDispose] () {}
},
@ -10,14 +9,5 @@ async function main() {
},
null,
undefined
]){
try {
var _usingCtx = _using_ctx();
{}
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
}
]){}
}

View File

@ -1,2 +1 @@
//// [awaitUsingDeclarationsInForAwaitOf.ts]
import "@swc/helpers/_/_using_ctx";

View File

@ -1,7 +1,6 @@
//// [awaitUsingDeclarationsInForOf.1.ts]
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
async function main() {
for (const d1 of [
for (await using d1 of [
{
async [Symbol.asyncDispose] () {}
},
@ -10,14 +9,5 @@ async function main() {
},
null,
undefined
]){
try {
var _usingCtx = _using_ctx();
{}
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
}
]){}
}

View File

@ -1,2 +1 @@
//// [awaitUsingDeclarationsInForOf.1.ts]
import "@swc/helpers/_/_using_ctx";

View File

@ -1,7 +1,6 @@
//// [decoratorOnClassMethod14.ts]
import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
import { _ as _ts_metadata } from "@swc/helpers/_/_ts_metadata";
class Foo {
@decorator
foo() {
return 0;
}
@ -11,9 +10,3 @@ class Foo {
};
}
}
_ts_decorate([
decorator,
_ts_metadata("design:type", Function),
_ts_metadata("design:paramtypes", []),
_ts_metadata("design:returntype", void 0)
], Foo.prototype, "foo", null);

View File

@ -1,16 +1 @@
//// [decoratorOnClassMethod14.ts]
import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
import { _ as _ts_metadata } from "@swc/helpers/_/_ts_metadata";
_ts_decorate([
decorator,
_ts_metadata("design:type", Function),
_ts_metadata("design:paramtypes", []),
_ts_metadata("design:returntype", void 0)
], (class {
foo() {
return 0;
}
constructor(){
this.prop = ()=>0;
}
}).prototype, "foo", null);

View File

@ -1,7 +1,6 @@
//// [decoratorOnClassMethod15.ts]
import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
import { _ as _ts_metadata } from "@swc/helpers/_/_ts_metadata";
class Foo {
@decorator
foo() {
return 0;
}
@ -9,9 +8,3 @@ class Foo {
this.prop = 1;
}
}
_ts_decorate([
decorator,
_ts_metadata("design:type", Function),
_ts_metadata("design:paramtypes", []),
_ts_metadata("design:returntype", void 0)
], Foo.prototype, "foo", null);

View File

@ -1,16 +1 @@
//// [decoratorOnClassMethod15.ts]
import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
import { _ as _ts_metadata } from "@swc/helpers/_/_ts_metadata";
_ts_decorate([
decorator,
_ts_metadata("design:type", Function),
_ts_metadata("design:paramtypes", []),
_ts_metadata("design:returntype", void 0)
], (class {
foo() {
return 0;
}
constructor(){
this.prop = 1;
}
}).prototype, "foo", null);

View File

@ -1,14 +1,7 @@
//// [decoratorOnClassMethod16.ts]
import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
import { _ as _ts_metadata } from "@swc/helpers/_/_ts_metadata";
class Foo {
@decorator
foo() {
return 0;
}
}
_ts_decorate([
decorator,
_ts_metadata("design:type", Function),
_ts_metadata("design:paramtypes", []),
_ts_metadata("design:returntype", void 0)
], Foo.prototype, "foo", null);

View File

@ -1,13 +1 @@
//// [decoratorOnClassMethod16.ts]
import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
import { _ as _ts_metadata } from "@swc/helpers/_/_ts_metadata";
_ts_decorate([
decorator,
_ts_metadata("design:type", Function),
_ts_metadata("design:paramtypes", []),
_ts_metadata("design:returntype", void 0)
], (class {
foo() {
return 0;
}
}).prototype, "foo", null);

View File

@ -1,7 +1,3 @@
//// [decoratorOnClassMethod18.ts]
import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
class Foo {
}
_ts_decorate([
decorator()
], Foo.prototype, "p2", void 0);

View File

@ -1,6 +1 @@
//// [decoratorOnClassMethod18.ts]
import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
_ts_decorate([
decorator()
], (class {
}).prototype, "p2", void 0);

View File

@ -1,5 +1,5 @@
//// [typeOfThisInStaticMembers10.ts]
import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
@foo
class C {
static{
this.a = 1;
@ -8,9 +8,7 @@ class C {
this.b = this.a + 1;
}
}
C = _ts_decorate([
foo
], C);
@foo
class D extends C {
static{
this.c = 2;
@ -39,9 +37,6 @@ class D extends C {
this.c = v + 1;
}
}
D = _ts_decorate([
foo
], D);
class CC {
static{
this.a = 1;

View File

@ -1,5 +1,5 @@
//// [typeOfThisInStaticMembers10.ts]
import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
@foo
class C {
static{
this.a = 1;
@ -8,9 +8,7 @@ class C {
this.b = this.a + 1;
}
}
C = _ts_decorate([
foo
], C);
@foo
class D extends C {
static{
this.c = 2;
@ -39,9 +37,6 @@ class D extends C {
this.c = v + 1;
}
}
D = _ts_decorate([
foo
], D);
class CC {
static{
this.a = 1;

View File

@ -1,12 +1,10 @@
//// [typeOfThisInStaticMembers11.ts]
import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
@foo
class C {
static a = 1;
static b = this.a + 1;
}
C = _ts_decorate([
foo
], C);
@foo
class D extends C {
static c = 2;
static d = this.c + 1;
@ -25,9 +23,6 @@ class D extends C {
this.c = v + 1;
}
}
D = _ts_decorate([
foo
], D);
class CC {
static a = 1;
static b = this.a + 1;

View File

@ -1,12 +1,10 @@
//// [typeOfThisInStaticMembers11.ts]
import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
@foo
class C {
static a = 1;
static b = this.a + 1;
}
C = _ts_decorate([
foo
], C);
@foo
class D extends C {
static c = 2;
static d = this.c + 1;
@ -25,9 +23,6 @@ class D extends C {
this.c = v + 1;
}
}
D = _ts_decorate([
foo
], D);
class CC {
static a = 1;
static b = this.a + 1;

View File

@ -1,407 +1,211 @@
//// [usingDeclarations.1.ts]
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
try {
var _usingCtx = _using_ctx();
var d1 = _usingCtx.u({
using d1 = {
[Symbol.dispose] () {}
}
function f() {
using d2 = {
[Symbol.dispose] () {}
});
function f() {
try {
var _usingCtx = _using_ctx();
const d2 = _usingCtx.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
}
async function af() {
try {
var _usingCtx = _using_ctx();
const d3 = _usingCtx.u({
[Symbol.dispose] () {}
});
await null;
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
;
}
async function af() {
using d3 = {
[Symbol.dispose] () {}
}
function* g() {
try {
var _usingCtx = _using_ctx();
const d4 = _usingCtx.u({
[Symbol.dispose] () {}
});
yield;
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
;
await null;
}
function* g() {
using d4 = {
[Symbol.dispose] () {}
}
async function* ag() {
try {
var _usingCtx = _using_ctx();
const d5 = _usingCtx.u({
[Symbol.dispose] () {}
});
yield;
await null;
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
;
yield;
}
async function* ag() {
using d5 = {
[Symbol.dispose] () {}
}
const a = ()=>{
try {
var _usingCtx = _using_ctx();
const d6 = _usingCtx.u({
;
yield;
await null;
}
const a = ()=>{
using d6 = {
[Symbol.dispose] () {}
}
;
};
class C1 {
constructor(){
this.a = ()=>{
using d7 = {
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
};
class C1 {
constructor(){
this.a = ()=>{
try {
var _usingCtx = _using_ctx();
const d7 = _usingCtx.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
};
try {
var _usingCtx = _using_ctx();
const d8 = _usingCtx.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
}
static{
try {
var _usingCtx = _using_ctx();
const d9 = _usingCtx.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
}
m() {
try {
var _usingCtx = _using_ctx();
const d10 = _usingCtx.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
}
get x() {
try {
var _usingCtx = _using_ctx();
const d11 = _usingCtx.u({
[Symbol.dispose] () {}
});
return 0;
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
}
set x(v) {
try {
var _usingCtx = _using_ctx();
const d12 = _usingCtx.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
}
async am() {
try {
var _usingCtx = _using_ctx();
const d13 = _usingCtx.u({
[Symbol.dispose] () {}
});
await null;
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
}
*g() {
try {
var _usingCtx = _using_ctx();
const d14 = _usingCtx.u({
[Symbol.dispose] () {}
});
yield;
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
}
async *ag() {
try {
var _usingCtx = _using_ctx();
const d15 = _usingCtx.u({
[Symbol.dispose] () {}
});
yield;
await null;
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
;
};
using d8 = {
[Symbol.dispose] () {}
}
;
}
class C2 extends C1 {
constructor(){
try {
var _usingCtx = _using_ctx();
const d16 = _usingCtx.u({
[Symbol.dispose] () {}
});
super();
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
static{
using d9 = {
[Symbol.dispose] () {}
}
;
}
class C3 extends C1 {
constructor(){
try {
var _usingCtx = _using_ctx();
const d17 = _usingCtx.u({
[Symbol.dispose] () {}
});
super(), this.y = 1;
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
m() {
using d10 = {
[Symbol.dispose] () {}
}
;
}
var N;
(function(N) {
try {
var _usingCtx = _using_ctx();
var d18 = _usingCtx.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
})(N || (N = {}));
{
try {
var _usingCtx1 = _using_ctx();
const d19 = _usingCtx1.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx1.e = _;
} finally{
_usingCtx1.d();
get x() {
using d11 = {
[Symbol.dispose] () {}
}
;
return 0;
}
switch(Math.random()){
case 0:
try {
var _usingCtx2 = _using_ctx();
const d20 = _usingCtx2.u({
[Symbol.dispose] () {}
});
break;
} catch (_) {
_usingCtx2.e = _;
} finally{
_usingCtx2.d();
}
case 1:
try {
var _usingCtx3 = _using_ctx();
const d21 = _usingCtx3.u({
[Symbol.dispose] () {}
});
break;
} catch (_) {
_usingCtx3.e = _;
} finally{
_usingCtx3.d();
}
set x(v) {
using d12 = {
[Symbol.dispose] () {}
}
;
}
if (true) switch(0){
case 0:
try {
var _usingCtx4 = _using_ctx();
const d22 = _usingCtx4.u({
[Symbol.dispose] () {}
});
break;
} catch (_) {
_usingCtx4.e = _;
} finally{
_usingCtx4.d();
}
async am() {
using d13 = {
[Symbol.dispose] () {}
}
;
await null;
}
try {
try {
var _usingCtx5 = _using_ctx();
const d23 = _usingCtx5.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx5.e = _;
} finally{
_usingCtx5.d();
}
} catch {
try {
var _usingCtx6 = _using_ctx();
const d24 = _usingCtx6.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx6.e = _;
} finally{
_usingCtx6.d();
}
} finally{
try {
var _usingCtx7 = _using_ctx();
const d25 = _usingCtx7.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx7.e = _;
} finally{
_usingCtx7.d();
*g() {
using d14 = {
[Symbol.dispose] () {}
}
;
yield;
}
if (true) {
try {
var _usingCtx8 = _using_ctx();
const d26 = _usingCtx8.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx8.e = _;
} finally{
_usingCtx8.d();
}
} else {
try {
var _usingCtx9 = _using_ctx();
const d27 = _usingCtx9.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx9.e = _;
} finally{
_usingCtx9.d();
async *ag() {
using d15 = {
[Symbol.dispose] () {}
}
;
yield;
await null;
}
while(true){
try {
var _usingCtx10 = _using_ctx();
const d28 = _usingCtx10.u({
[Symbol.dispose] () {}
});
break;
} catch (_) {
_usingCtx10.e = _;
} finally{
_usingCtx10.d();
}
class C2 extends C1 {
constructor(){
using d16 = {
[Symbol.dispose] () {}
}
;
super();
}
do {
try {
var _usingCtx11 = _using_ctx();
const d29 = _usingCtx11.u({
[Symbol.dispose] () {}
});
break;
} catch (_) {
_usingCtx11.e = _;
} finally{
_usingCtx11.d();
}
}while (true)
for(;;){
try {
var _usingCtx12 = _using_ctx();
const d30 = _usingCtx12.u({
[Symbol.dispose] () {}
});
break;
} catch (_) {
_usingCtx12.e = _;
} finally{
_usingCtx12.d();
}
class C3 extends C1 {
constructor(){
using d17 = {
[Symbol.dispose] () {}
}
;
super(), this.y = 1;
}
for(const x in {}){
try {
var _usingCtx13 = _using_ctx();
const d31 = _usingCtx13.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx13.e = _;
} finally{
_usingCtx13.d();
}
}
var N;
(function(N) {
using d18 = {
[Symbol.dispose] () {}
}
for (const x of []){
try {
var _usingCtx14 = _using_ctx();
const d32 = _usingCtx14.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx14.e = _;
} finally{
_usingCtx14.d();
}
})(N || (N = {}));
{
using d19 = {
[Symbol.dispose] () {}
}
} catch (_) {
_usingCtx.e = _;
;
}switch(Math.random()){
case 0:
using d20 = {
[Symbol.dispose] () {}
}
;
break;
case 1:
using d21 = {
[Symbol.dispose] () {}
}
;
break;
}
if (true) switch(0){
case 0:
using d22 = {
[Symbol.dispose] () {}
}
;
break;
}
try {
using d23 = {
[Symbol.dispose] () {}
}
;
} catch {
using d24 = {
[Symbol.dispose] () {}
}
;
} finally{
_usingCtx.d();
using d25 = {
[Symbol.dispose] () {}
}
;
}
if (true) {
using d26 = {
[Symbol.dispose] () {}
}
;
} else {
using d27 = {
[Symbol.dispose] () {}
}
;
}
while(true){
using d28 = {
[Symbol.dispose] () {}
}
;
break;
}
do {
using d29 = {
[Symbol.dispose] () {}
}
;
break;
}while (true)
for(;;){
using d30 = {
[Symbol.dispose] () {}
}
;
break;
}
for(const x in {}){
using d31 = {
[Symbol.dispose] () {}
}
;
}
for (const x of []){
using d32 = {
[Symbol.dispose] () {}
}
;
}
export { };

View File

@ -1,276 +1,119 @@
//// [usingDeclarations.1.ts]
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
try {
var N, _usingCtx = _using_ctx();
_usingCtx.u({
[Symbol.dispose] () {}
});
class C1 {
constructor(){
this.a = ()=>{
try {
var _usingCtx = _using_ctx();
_usingCtx.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
};
try {
var _usingCtx = _using_ctx();
_usingCtx.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
}
static{
try {
var _usingCtx = _using_ctx();
_usingCtx.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
}
m() {
try {
var _usingCtx = _using_ctx();
_usingCtx.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
}
get x() {
try {
var _usingCtx = _using_ctx();
return _usingCtx.u({
[Symbol.dispose] () {}
}), 0;
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
}
set x(v) {
try {
var _usingCtx = _using_ctx();
_usingCtx.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
}
async am() {
try {
var _usingCtx = _using_ctx();
_usingCtx.u({
[Symbol.dispose] () {}
}), await null;
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
}
*g() {
try {
var _usingCtx = _using_ctx();
_usingCtx.u({
[Symbol.dispose] () {}
}), yield;
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
}
async *ag() {
try {
var _usingCtx = _using_ctx();
_usingCtx.u({
[Symbol.dispose] () {}
}), yield, await null;
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
}
}
!function(N) {
try {
var _usingCtx = _using_ctx();
_usingCtx.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
}(N || (N = {}));
try {
var _usingCtx1 = _using_ctx();
_usingCtx1.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx1.e = _;
} finally{
_usingCtx1.d();
}
switch(Math.random()){
case 0:
try {
var _usingCtx2 = _using_ctx();
_usingCtx2.u({
[Symbol.dispose] () {}
});
break;
} catch (_) {
_usingCtx2.e = _;
} finally{
_usingCtx2.d();
}
case 1:
try {
var _usingCtx3 = _using_ctx();
_usingCtx3.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx3.e = _;
} finally{
_usingCtx3.d();
}
}
try {
var _usingCtx4 = _using_ctx();
_usingCtx4.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx4.e = _;
} finally{
_usingCtx4.d();
}
try {
try {
var _usingCtx5 = _using_ctx();
_usingCtx5.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx5.e = _;
} finally{
_usingCtx5.d();
}
} catch {
try {
var _usingCtx6 = _using_ctx();
_usingCtx6.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx6.e = _;
} finally{
_usingCtx6.d();
}
} finally{
try {
var _usingCtx7 = _using_ctx();
_usingCtx7.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx7.e = _;
} finally{
_usingCtx7.d();
}
}
try {
var _usingCtx8 = _using_ctx();
_usingCtx8.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx8.e = _;
} finally{
_usingCtx8.d();
}
for(;;)try {
var _usingCtx10 = _using_ctx();
_usingCtx10.u({
[Symbol.dispose] () {}
});
break;
} catch (_) {
_usingCtx10.e = _;
} finally{
_usingCtx10.d();
}
for(;;)try {
var _usingCtx11 = _using_ctx();
_usingCtx11.u({
[Symbol.dispose] () {}
});
break;
} catch (_) {
_usingCtx11.e = _;
} finally{
_usingCtx11.d();
}
for(;;)try {
var _usingCtx12 = _using_ctx();
_usingCtx12.u({
[Symbol.dispose] () {}
});
break;
} catch (_) {
_usingCtx12.e = _;
} finally{
_usingCtx12.d();
}
for(let x in {})try {
var _usingCtx13 = _using_ctx();
_usingCtx13.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx13.e = _;
} finally{
_usingCtx13.d();
}
for (let x of [])try {
var _usingCtx14 = _using_ctx();
_usingCtx14.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx14.e = _;
} finally{
_usingCtx14.d();
}
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
var N;
using d1 = {
[Symbol.dispose] () {}
}
class C1 {
constructor(){
this.a = ()=>{
using d7 = {
[Symbol.dispose] () {}
}
};
using d8 = {
[Symbol.dispose] () {}
}
}
static{
using d9 = {
[Symbol.dispose] () {}
}
}
m() {
using d10 = {
[Symbol.dispose] () {}
}
}
get x() {
using d11 = {
[Symbol.dispose] () {}
}
return 0;
}
set x(v) {
using d12 = {
[Symbol.dispose] () {}
}
}
async am() {
using d13 = {
[Symbol.dispose] () {}
}
await null;
}
*g() {
using d14 = {
[Symbol.dispose] () {}
}
yield;
}
async *ag() {
using d15 = {
[Symbol.dispose] () {}
}
yield, await null;
}
}
!function(N) {
using d18 = {
[Symbol.dispose] () {}
}
}(N || (N = {}));
using d19 = {
[Symbol.dispose] () {}
}
switch(Math.random()){
case 0:
using d20 = {
[Symbol.dispose] () {}
}
break;
case 1:
using d21 = {
[Symbol.dispose] () {}
}
}
using d22 = {
[Symbol.dispose] () {}
}
try {
using d23 = {
[Symbol.dispose] () {}
}
} catch {
using d24 = {
[Symbol.dispose] () {}
}
} finally{
using d25 = {
[Symbol.dispose] () {}
}
}
using d26 = {
[Symbol.dispose] () {}
}
for(;;){
using d28 = {
[Symbol.dispose] () {}
}
break;
}
for(;;){
using d29 = {
[Symbol.dispose] () {}
}
break;
}
for(;;){
using d30 = {
[Symbol.dispose] () {}
}
break;
}
for(let x in {})using d31 = {
[Symbol.dispose] () {}
}
for (let x of [])using d32 = {
[Symbol.dispose] () {}
}
export { };

View File

@ -1,10 +1,2 @@
//// [usingDeclarations.14.ts]
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
try {
var _usingCtx = _using_ctx();
var x = _usingCtx.u({});
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
using x = {}

View File

@ -1,10 +1,2 @@
//// [usingDeclarations.14.ts]
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
try {
var _usingCtx = _using_ctx();
_usingCtx.u({});
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
using x = {}

View File

@ -1,13 +1,5 @@
//// [usingDeclarations.15.ts]
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
try {
var _usingCtx = _using_ctx();
var _ = _usingCtx.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
using _ = {
[Symbol.dispose] () {}
}
export { };

View File

@ -1,12 +1,5 @@
//// [usingDeclarations.15.ts]
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
try {
var _usingCtx = _using_ctx();
_usingCtx.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
using _ = {
[Symbol.dispose] () {}
}
export { };

View File

@ -1,16 +1,9 @@
//// [usingDeclarations.2.ts]
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
{
try {
var _usingCtx = _using_ctx();
const d1 = _usingCtx.u({
[Symbol.dispose] () {}
}), d2 = _usingCtx.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
using d1 = {
[Symbol.dispose] () {}
}, d2 = {
[Symbol.dispose] () {}
}
;
}

View File

@ -1,14 +1,6 @@
//// [usingDeclarations.2.ts]
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
try {
var _usingCtx = _using_ctx();
_usingCtx.u({
[Symbol.dispose] () {}
}), _usingCtx.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
using d1 = {
[Symbol.dispose] () {}
}, d2 = {
[Symbol.dispose] () {}
}

View File

@ -1,16 +1,9 @@
//// [usingDeclarations.3.ts]
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
{
try {
var _usingCtx = _using_ctx();
const d1 = _usingCtx.u({
[Symbol.dispose] () {}
}), d2 = _usingCtx.u(null), d3 = _usingCtx.u(undefined), d4 = _usingCtx.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
using d1 = {
[Symbol.dispose] () {}
}, d2 = null, d3 = undefined, d4 = {
[Symbol.dispose] () {}
}
;
}

View File

@ -1,14 +1,6 @@
//// [usingDeclarations.3.ts]
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
try {
var _usingCtx = _using_ctx();
_usingCtx.u({
[Symbol.dispose] () {}
}), _usingCtx.u(null), _usingCtx.u(void 0), _usingCtx.u({
[Symbol.dispose] () {}
});
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
using d1 = {
[Symbol.dispose] () {}
}, d2 = null, d3 = void 0, d4 = {
[Symbol.dispose] () {}
}

View File

@ -1,12 +1,5 @@
//// [usingDeclarations.9.ts]
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
{
try {
var _usingCtx = _using_ctx();
const a = _usingCtx.u(null);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
using a = null
;
}

View File

@ -1,10 +1,2 @@
//// [usingDeclarations.9.ts]
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
try {
var _usingCtx = _using_ctx();
_usingCtx.u(null);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
using a = null

View File

@ -1,17 +1,9 @@
//// [usingDeclarationsDeclarationEmit.1.ts]
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
export { r1 };
export { r2 };
try {
var _usingCtx = _using_ctx();
var r1 = _usingCtx.u({
[Symbol.dispose] () {}
});
var r2 = _usingCtx.a({
async [Symbol.asyncDispose] () {}
});
} catch (_) {
_usingCtx.e = _;
} finally{
await _usingCtx.d();
using r1 = {
[Symbol.dispose] () {}
}
export { r1 };
await using r2 = {
async [Symbol.asyncDispose] () {}
}
export { r2 };

View File

@ -1,14 +1,8 @@
//// [usingDeclarationsDeclarationEmit.1.ts]
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
try {
var _usingCtx = _using_ctx(), r1 = _usingCtx.u({
[Symbol.dispose] () {}
}), r2 = _usingCtx.a({
async [Symbol.asyncDispose] () {}
});
} catch (_) {
_usingCtx.e = _;
} finally{
await _usingCtx.d();
using r1 = {
[Symbol.dispose] () {}
}
await using r2 = {
async [Symbol.asyncDispose] () {}
}
export { r1, r2 };

View File

@ -1,16 +1,8 @@
//// [usingDeclarationsDeclarationEmit.2.ts]
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
try {
var _usingCtx = _using_ctx();
var r1 = _usingCtx.u({
[Symbol.dispose] () {}
});
var r2 = _usingCtx.a({
async [Symbol.asyncDispose] () {}
});
} catch (_) {
_usingCtx.e = _;
} finally{
await _usingCtx.d();
using r1 = {
[Symbol.dispose] () {}
}
await using r2 = {
async [Symbol.asyncDispose] () {}
}
export { };

View File

@ -1,14 +1,8 @@
//// [usingDeclarationsDeclarationEmit.2.ts]
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
try {
var _usingCtx = _using_ctx();
_usingCtx.u({
[Symbol.dispose] () {}
}), _usingCtx.a({
async [Symbol.asyncDispose] () {}
});
} catch (_) {
_usingCtx.e = _;
} finally{
await _usingCtx.d();
using r1 = {
[Symbol.dispose] () {}
}
await using r2 = {
async [Symbol.asyncDispose] () {}
}
export { };

View File

@ -1,20 +1,10 @@
//// [usingDeclarationsInForAwaitOf.ts]
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
async function main() {
for await (const d1 of [
for await (using d1 of [
{
[Symbol.dispose] () {}
},
null,
undefined
]){
try {
var _usingCtx = _using_ctx();
{}
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
}
]){}
}

View File

@ -1,2 +1 @@
//// [usingDeclarationsInForAwaitOf.ts]
import "@swc/helpers/_/_using_ctx";

View File

@ -1,18 +1,8 @@
//// [usingDeclarationsInForOf.1.ts]
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
for (const d1 of [
for (using d1 of [
{
[Symbol.dispose] () {}
},
null,
undefined
]){
try {
var _usingCtx = _using_ctx();
{}
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
}
]){}

View File

@ -1,15 +1,8 @@
//// [usingDeclarationsInForOf.1.ts]
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
for (let d1 of [
for (using d1 of [
{
[Symbol.dispose] () {}
},
null,
void 0
])try {
var _usingCtx = _using_ctx();
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
]);

View File

@ -3,18 +3,7 @@
Object.defineProperty(exports, "__esModule", {
value: true
});
const _ts_decorate = require("@swc/helpers/_/_ts_decorate");
const _using_ctx = require("@swc/helpers/_/_using_ctx");
try {
var _usingCtx = _using_ctx._();
var before = _usingCtx.u(null);
class C {
}
C = _ts_decorate._([
dec
], C);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
using before = null
@dec
class C {
}

View File

@ -2,17 +2,4 @@
Object.defineProperty(exports, "__esModule", {
value: !0
});
const _ts_decorate = require("@swc/helpers/_/_ts_decorate"), _using_ctx = require("@swc/helpers/_/_using_ctx");
try {
var _usingCtx = _using_ctx._();
_usingCtx.u(null);
class C {
}
C = _ts_decorate._([
dec
], C);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
using before = null

View File

@ -1,17 +1,6 @@
//// [usingDeclarationsWithLegacyClassDecorators.1.ts]
import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
try {
var _usingCtx = _using_ctx();
var before = _usingCtx.u(null);
class C {
}
C = _ts_decorate([
dec
], C);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
using before = null
@dec
class C {
}
export { };

View File

@ -1,16 +1,3 @@
//// [usingDeclarationsWithLegacyClassDecorators.1.ts]
import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
try {
var _usingCtx = _using_ctx();
_usingCtx.u(null);
class C {
}
C = _ts_decorate([
dec
], C);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
using before = null
export { };

View File

@ -1,33 +1,14 @@
//// [usingDeclarationsWithLegacyClassDecorators.1.ts]
System.register([
"@swc/helpers/_/_ts_decorate",
"@swc/helpers/_/_using_ctx"
], function(_export, _context) {
System.register([], function(_export, _context) {
"use strict";
var _ts_decorate, _using_ctx;
var C;
return {
setters: [
function(_ts_decorate1) {
_ts_decorate = _ts_decorate1._;
},
function(_using_ctx1) {
_using_ctx = _using_ctx1._;
}
],
setters: [],
execute: function() {
try {
var _usingCtx = _using_ctx();
var before = _usingCtx.u(null);
class C {
}
C = _ts_decorate([
dec
], C);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
using before = null
C = @dec
class C {
};
}
};
});

View File

@ -1,32 +1,9 @@
//// [usingDeclarationsWithLegacyClassDecorators.1.ts]
System.register([
"@swc/helpers/_/_ts_decorate",
"@swc/helpers/_/_using_ctx"
], function(_export, _context) {
var _ts_decorate, _using_ctx;
System.register([], function(_export, _context) {
return {
setters: [
function(_ts_decorate1) {
_ts_decorate = _ts_decorate1._;
},
function(_using_ctx1) {
_using_ctx = _using_ctx1._;
}
],
setters: [],
execute: function() {
try {
var _usingCtx = _using_ctx();
_usingCtx.u(null);
class C {
}
C = _ts_decorate([
dec
], C);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
using before = null
}
};
});

View File

@ -6,21 +6,10 @@ Object.defineProperty(exports, "__esModule", {
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return _class;
return _default;
}
});
const _ts_decorate = require("@swc/helpers/_/_ts_decorate");
const _using_ctx = require("@swc/helpers/_/_using_ctx");
try {
var _usingCtx = _using_ctx._();
var _class = class _class {
};
_class = _ts_decorate._([
dec
], _class);
var after = _usingCtx.u(null);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
@dec
class _default {
}
using after = null

View File

@ -4,18 +4,10 @@ Object.defineProperty(exports, "__esModule", {
}), Object.defineProperty(exports, "default", {
enumerable: !0,
get: function() {
return _class;
return _default;
}
});
const _ts_decorate = require("@swc/helpers/_/_ts_decorate"), _using_ctx = require("@swc/helpers/_/_using_ctx");
try {
var _usingCtx = _using_ctx._(), _class = class {
};
_class = _ts_decorate._([
dec
], _class), _usingCtx.u(null);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
@dec
class _default {
}
using after = null

View File

@ -1,17 +1,5 @@
//// [usingDeclarationsWithLegacyClassDecorators.10.ts]
import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
export { _class as default };
try {
var _usingCtx = _using_ctx();
var _class = class _class {
};
_class = _ts_decorate([
dec
], _class);
var after = _usingCtx.u(null);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
export default @dec
class {
}
using after = null

View File

@ -1,15 +1,5 @@
//// [usingDeclarationsWithLegacyClassDecorators.10.ts]
import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
try {
var _usingCtx = _using_ctx(), _class = class {
};
_class = _ts_decorate([
dec
], _class), _usingCtx.u(null);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
export default @dec
class {
}
export { _class as default };
using after = null

View File

@ -1,33 +1,13 @@
//// [usingDeclarationsWithLegacyClassDecorators.10.ts]
System.register([
"@swc/helpers/_/_ts_decorate",
"@swc/helpers/_/_using_ctx"
], function(_export, _context) {
System.register([], function(_export, _context) {
"use strict";
var _ts_decorate, _using_ctx;
_export("default", @dec
class {
});
return {
setters: [
function(_ts_decorate1) {
_ts_decorate = _ts_decorate1._;
},
function(_using_ctx1) {
_using_ctx = _using_ctx1._;
}
],
setters: [],
execute: function() {
try {
var _usingCtx = _using_ctx();
var _class = class _class {
};
_export("default", _class = _ts_decorate([
dec
], _class));
var after = _usingCtx.u(null);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
using after = null
}
};
});

View File

@ -1,30 +1,11 @@
//// [usingDeclarationsWithLegacyClassDecorators.10.ts]
System.register([
"@swc/helpers/_/_ts_decorate",
"@swc/helpers/_/_using_ctx"
], function(_export, _context) {
var _ts_decorate, _using_ctx;
return {
setters: [
function(_ts_decorate1) {
_ts_decorate = _ts_decorate1._;
},
function(_using_ctx1) {
_using_ctx = _using_ctx1._;
}
],
System.register([], function(_export, _context) {
return _export("default", @dec
class {
}), {
setters: [],
execute: function() {
try {
var _usingCtx = _using_ctx(), _class = class {
};
_export("default", _class = _ts_decorate([
dec
], _class)), _usingCtx.u(null);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
using after = null
}
};
});

View File

@ -9,18 +9,7 @@ Object.defineProperty(exports, "C", {
return C;
}
});
const _ts_decorate = require("@swc/helpers/_/_ts_decorate");
const _using_ctx = require("@swc/helpers/_/_using_ctx");
try {
var _usingCtx = _using_ctx._();
class C {
}
C = _ts_decorate._([
dec
], C);
var after = _usingCtx.u(null);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
@dec
class C {
}
using after = null

View File

@ -7,16 +7,7 @@ Object.defineProperty(exports, "__esModule", {
return C;
}
});
const _ts_decorate = require("@swc/helpers/_/_ts_decorate"), _using_ctx = require("@swc/helpers/_/_using_ctx");
try {
var _usingCtx = _using_ctx._();
class C1 {
}
C1 = _ts_decorate._([
dec
], C1), _usingCtx.u(null);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
@dec
class C {
}
using after = null

View File

@ -1,17 +1,6 @@
//// [usingDeclarationsWithLegacyClassDecorators.11.ts]
import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
export { C };
try {
var _usingCtx = _using_ctx();
class C {
}
C = _ts_decorate([
dec
], C);
var after = _usingCtx.u(null);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
@dec
class C {
}
export { C };
using after = null

View File

@ -1,16 +1,6 @@
//// [usingDeclarationsWithLegacyClassDecorators.11.ts]
import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
try {
var _usingCtx = _using_ctx();
class C {
}
C = _ts_decorate([
dec
], C), _usingCtx.u(null);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
@dec
class C {
}
using after = null
export { C };

View File

@ -1,33 +1,14 @@
//// [usingDeclarationsWithLegacyClassDecorators.11.ts]
System.register([
"@swc/helpers/_/_ts_decorate",
"@swc/helpers/_/_using_ctx"
], function(_export, _context) {
System.register([], function(_export, _context) {
"use strict";
var _ts_decorate, _using_ctx;
var C;
return {
setters: [
function(_ts_decorate1) {
_ts_decorate = _ts_decorate1._;
},
function(_using_ctx1) {
_using_ctx = _using_ctx1._;
}
],
setters: [],
execute: function() {
try {
var _usingCtx = _using_ctx();
class C {
}
_export("C", C = _ts_decorate([
dec
], C));
var after = _usingCtx.u(null);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
_export("C", C = @dec
class C {
});
using after = null
}
};
});

View File

@ -1,31 +1,12 @@
//// [usingDeclarationsWithLegacyClassDecorators.11.ts]
System.register([
"@swc/helpers/_/_ts_decorate",
"@swc/helpers/_/_using_ctx"
], function(_export, _context) {
var _ts_decorate, _using_ctx;
System.register([], function(_export, _context) {
return {
setters: [
function(_ts_decorate1) {
_ts_decorate = _ts_decorate1._;
},
function(_using_ctx1) {
_using_ctx = _using_ctx1._;
}
],
setters: [],
execute: function() {
try {
var _usingCtx = _using_ctx();
class C {
}
_export("C", C = _ts_decorate([
dec
], C)), _usingCtx.u(null);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
_export("C", @dec
class {
});
using after = null
}
};
});

View File

@ -9,18 +9,7 @@ Object.defineProperty(exports, "D", {
return C;
}
});
const _ts_decorate = require("@swc/helpers/_/_ts_decorate");
const _using_ctx = require("@swc/helpers/_/_using_ctx");
try {
var _usingCtx = _using_ctx._();
class C {
}
C = _ts_decorate._([
dec
], C);
var after = _usingCtx.u(null);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
@dec
class C {
}
using after = null

View File

@ -7,16 +7,7 @@ Object.defineProperty(exports, "__esModule", {
return C;
}
});
const _ts_decorate = require("@swc/helpers/_/_ts_decorate"), _using_ctx = require("@swc/helpers/_/_using_ctx");
try {
var _usingCtx = _using_ctx._();
class C1 {
}
C1 = _ts_decorate._([
dec
], C1), _usingCtx.u(null);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
@dec
class C {
}
using after = null

View File

@ -1,17 +1,6 @@
//// [usingDeclarationsWithLegacyClassDecorators.12.ts]
import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
export { C as D };
try {
var _usingCtx = _using_ctx();
class C {
}
C = _ts_decorate([
dec
], C);
var after = _usingCtx.u(null);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
@dec
class C {
}
export { C as D };
using after = null

View File

@ -1,16 +1,6 @@
//// [usingDeclarationsWithLegacyClassDecorators.12.ts]
import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
try {
var _usingCtx = _using_ctx();
class C {
}
C = _ts_decorate([
dec
], C), _usingCtx.u(null);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
@dec
class C {
}
using after = null
export { C as D };

View File

@ -1,33 +1,14 @@
//// [usingDeclarationsWithLegacyClassDecorators.12.ts]
System.register([
"@swc/helpers/_/_ts_decorate",
"@swc/helpers/_/_using_ctx"
], function(_export, _context) {
System.register([], function(_export, _context) {
"use strict";
var _ts_decorate, _using_ctx;
var C;
return {
setters: [
function(_ts_decorate1) {
_ts_decorate = _ts_decorate1._;
},
function(_using_ctx1) {
_using_ctx = _using_ctx1._;
}
],
setters: [],
execute: function() {
try {
var _usingCtx = _using_ctx();
class C {
}
_export("D", C = _ts_decorate([
dec
], C));
var after = _usingCtx.u(null);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
_export("D", C = @dec
class C {
});
using after = null
}
};
});

View File

@ -1,31 +1,12 @@
//// [usingDeclarationsWithLegacyClassDecorators.12.ts]
System.register([
"@swc/helpers/_/_ts_decorate",
"@swc/helpers/_/_using_ctx"
], function(_export, _context) {
var _ts_decorate, _using_ctx;
System.register([], function(_export, _context) {
return {
setters: [
function(_ts_decorate1) {
_ts_decorate = _ts_decorate1._;
},
function(_using_ctx1) {
_using_ctx = _using_ctx1._;
}
],
setters: [],
execute: function() {
try {
var _usingCtx = _using_ctx();
class C {
}
_export("D", C = _ts_decorate([
dec
], C)), _usingCtx.u(null);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
_export("D", @dec
class {
});
using after = null
}
};
});

View File

@ -6,23 +6,10 @@ Object.defineProperty(exports, "__esModule", {
Object.defineProperty(exports, "C", {
enumerable: true,
get: function() {
return _C;
return C;
}
});
const _ts_decorate = require("@swc/helpers/_/_ts_decorate");
const _using_ctx = require("@swc/helpers/_/_using_ctx");
var _C;
try {
var _usingCtx = _using_ctx._();
var before = _usingCtx.u(null);
class C {
}
_C = C;
C = _ts_decorate._([
dec
], C);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
using before = null
@dec
class C {
}

View File

@ -4,20 +4,10 @@ Object.defineProperty(exports, "__esModule", {
}), Object.defineProperty(exports, "C", {
enumerable: !0,
get: function() {
return _C;
return C;
}
});
const _ts_decorate = require("@swc/helpers/_/_ts_decorate"), _using_ctx = require("@swc/helpers/_/_using_ctx");
try {
var _C, _usingCtx = _using_ctx._();
_usingCtx.u(null);
class C {
}
_C = C, C = _ts_decorate._([
dec
], C);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
using before = null
@dec
class C {
}

View File

@ -1,19 +1,5 @@
//// [usingDeclarationsWithLegacyClassDecorators.2.ts]
import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
var _C;
try {
var _usingCtx = _using_ctx();
var before = _usingCtx.u(null);
class C {
}
_C = C;
C = _ts_decorate([
dec
], C);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
using before = null
@dec
export class C {
}
export { _C as C };

View File

@ -1,17 +1,5 @@
//// [usingDeclarationsWithLegacyClassDecorators.2.ts]
import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
try {
var _C, _usingCtx = _using_ctx();
_usingCtx.u(null);
class C {
}
_C = C, C = _ts_decorate([
dec
], C);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
using before = null
@dec
export class C {
}
export { _C as C };

View File

@ -1,35 +1,15 @@
//// [usingDeclarationsWithLegacyClassDecorators.2.ts]
System.register([
"@swc/helpers/_/_ts_decorate",
"@swc/helpers/_/_using_ctx"
], function(_export, _context) {
System.register([], function(_export, _context) {
"use strict";
var _ts_decorate, _using_ctx, _C;
var C;
_export("C", void 0);
return {
setters: [
function(_ts_decorate1) {
_ts_decorate = _ts_decorate1._;
},
function(_using_ctx1) {
_using_ctx = _using_ctx1._;
}
],
setters: [],
execute: function() {
try {
var _usingCtx = _using_ctx();
var before = _usingCtx.u(null);
class C {
}
_export("C", _C = C);
C = _ts_decorate([
dec
], C);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
using before = null
_export("C", C = @dec
class C {
});
}
};
});

View File

@ -1,32 +1,12 @@
//// [usingDeclarationsWithLegacyClassDecorators.2.ts]
System.register([
"@swc/helpers/_/_ts_decorate",
"@swc/helpers/_/_using_ctx"
], function(_export, _context) {
var _ts_decorate, _using_ctx;
System.register([], function(_export, _context) {
return _export("C", void 0), {
setters: [
function(_ts_decorate1) {
_ts_decorate = _ts_decorate1._;
},
function(_using_ctx1) {
_using_ctx = _using_ctx1._;
}
],
setters: [],
execute: function() {
try {
var _usingCtx = _using_ctx();
_usingCtx.u(null);
class C {
}
_export("C", C), C = _ts_decorate([
dec
], C);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
using before = null
_export("C", @dec
class {
});
}
};
});

View File

@ -9,18 +9,7 @@ Object.defineProperty(exports, "default", {
return C;
}
});
const _ts_decorate = require("@swc/helpers/_/_ts_decorate");
const _using_ctx = require("@swc/helpers/_/_using_ctx");
try {
var _usingCtx = _using_ctx._();
var before = _usingCtx.u(null);
var C = class C {
};
C = _ts_decorate._([
dec
], C);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
using before = null
@dec
class C {
}

View File

@ -7,17 +7,7 @@ Object.defineProperty(exports, "__esModule", {
return C;
}
});
const _ts_decorate = require("@swc/helpers/_/_ts_decorate"), _using_ctx = require("@swc/helpers/_/_using_ctx");
try {
var _usingCtx = _using_ctx._();
_usingCtx.u(null);
var C = class {
};
C = _ts_decorate._([
dec
], C);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
using before = null
@dec
class C {
}

View File

@ -1,17 +1,5 @@
//// [usingDeclarationsWithLegacyClassDecorators.3.ts]
import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
export { C as default };
try {
var _usingCtx = _using_ctx();
var before = _usingCtx.u(null);
var C = class C {
};
C = _ts_decorate([
dec
], C);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
using before = null
export default @dec
class C {
}

View File

@ -1,17 +1,5 @@
//// [usingDeclarationsWithLegacyClassDecorators.3.ts]
import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
try {
var _usingCtx = _using_ctx();
_usingCtx.u(null);
var C = class {
};
C = _ts_decorate([
dec
], C);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
using before = null
export default @dec
class C {
}
export { C as default };

View File

@ -1,33 +1,15 @@
//// [usingDeclarationsWithLegacyClassDecorators.3.ts]
System.register([
"@swc/helpers/_/_ts_decorate",
"@swc/helpers/_/_using_ctx"
], function(_export, _context) {
System.register([], function(_export, _context) {
"use strict";
var _ts_decorate, _using_ctx;
var C;
_export("default", void 0);
return {
setters: [
function(_ts_decorate1) {
_ts_decorate = _ts_decorate1._;
},
function(_using_ctx1) {
_using_ctx = _using_ctx1._;
}
],
setters: [],
execute: function() {
try {
var _usingCtx = _using_ctx();
var before = _usingCtx.u(null);
var C = class C {
};
_export("default", C = _ts_decorate([
dec
], C));
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
using before = null
_export("default", C = @dec
class C {
});
}
};
});

View File

@ -1,32 +1,12 @@
//// [usingDeclarationsWithLegacyClassDecorators.3.ts]
System.register([
"@swc/helpers/_/_ts_decorate",
"@swc/helpers/_/_using_ctx"
], function(_export, _context) {
var _ts_decorate, _using_ctx;
return {
setters: [
function(_ts_decorate1) {
_ts_decorate = _ts_decorate1._;
},
function(_using_ctx1) {
_using_ctx = _using_ctx1._;
}
],
System.register([], function(_export, _context) {
return _export("default", void 0), {
setters: [],
execute: function() {
try {
var _usingCtx = _using_ctx();
_usingCtx.u(null);
var C = class {
};
_export("default", C = _ts_decorate([
dec
], C));
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
using before = null
_export("default", @dec
class {
});
}
};
});

View File

@ -6,21 +6,10 @@ Object.defineProperty(exports, "__esModule", {
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return _class;
return _default;
}
});
const _ts_decorate = require("@swc/helpers/_/_ts_decorate");
const _using_ctx = require("@swc/helpers/_/_using_ctx");
try {
var _usingCtx = _using_ctx._();
var before = _usingCtx.u(null);
var _class = class _class {
};
_class = _ts_decorate._([
dec
], _class);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
using before = null
@dec
class _default {
}

View File

@ -4,20 +4,10 @@ Object.defineProperty(exports, "__esModule", {
}), Object.defineProperty(exports, "default", {
enumerable: !0,
get: function() {
return _class;
return _default;
}
});
const _ts_decorate = require("@swc/helpers/_/_ts_decorate"), _using_ctx = require("@swc/helpers/_/_using_ctx");
try {
var _usingCtx = _using_ctx._();
_usingCtx.u(null);
var _class = class {
};
_class = _ts_decorate._([
dec
], _class);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
using before = null
@dec
class _default {
}

View File

@ -1,17 +1,5 @@
//// [usingDeclarationsWithLegacyClassDecorators.4.ts]
import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
export { _class as default };
try {
var _usingCtx = _using_ctx();
var before = _usingCtx.u(null);
var _class = class _class {
};
_class = _ts_decorate([
dec
], _class);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
using before = null
export default @dec
class {
}

View File

@ -1,17 +1,5 @@
//// [usingDeclarationsWithLegacyClassDecorators.4.ts]
import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
try {
var _usingCtx = _using_ctx();
_usingCtx.u(null);
var _class = class {
};
_class = _ts_decorate([
dec
], _class);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
using before = null
export default @dec
class {
}
export { _class as default };

View File

@ -1,33 +1,13 @@
//// [usingDeclarationsWithLegacyClassDecorators.4.ts]
System.register([
"@swc/helpers/_/_ts_decorate",
"@swc/helpers/_/_using_ctx"
], function(_export, _context) {
System.register([], function(_export, _context) {
"use strict";
var _ts_decorate, _using_ctx;
_export("default", @dec
class {
});
return {
setters: [
function(_ts_decorate1) {
_ts_decorate = _ts_decorate1._;
},
function(_using_ctx1) {
_using_ctx = _using_ctx1._;
}
],
setters: [],
execute: function() {
try {
var _usingCtx = _using_ctx();
var before = _usingCtx.u(null);
var _class = class _class {
};
_export("default", _class = _ts_decorate([
dec
], _class));
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
using before = null
}
};
});

View File

@ -1,32 +1,11 @@
//// [usingDeclarationsWithLegacyClassDecorators.4.ts]
System.register([
"@swc/helpers/_/_ts_decorate",
"@swc/helpers/_/_using_ctx"
], function(_export, _context) {
var _ts_decorate, _using_ctx;
return {
setters: [
function(_ts_decorate1) {
_ts_decorate = _ts_decorate1._;
},
function(_using_ctx1) {
_using_ctx = _using_ctx1._;
}
],
System.register([], function(_export, _context) {
return _export("default", @dec
class {
}), {
setters: [],
execute: function() {
try {
var _usingCtx = _using_ctx();
_usingCtx.u(null);
var _class = class {
};
_export("default", _class = _ts_decorate([
dec
], _class));
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
using before = null
}
};
});

View File

@ -9,18 +9,7 @@ Object.defineProperty(exports, "C", {
return C;
}
});
const _ts_decorate = require("@swc/helpers/_/_ts_decorate");
const _using_ctx = require("@swc/helpers/_/_using_ctx");
try {
var _usingCtx = _using_ctx._();
var before = _usingCtx.u(null);
class C {
}
C = _ts_decorate._([
dec
], C);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
using before = null
@dec
class C {
}

View File

@ -7,17 +7,7 @@ Object.defineProperty(exports, "__esModule", {
return C;
}
});
const _ts_decorate = require("@swc/helpers/_/_ts_decorate"), _using_ctx = require("@swc/helpers/_/_using_ctx");
try {
var _usingCtx = _using_ctx._();
_usingCtx.u(null);
class C1 {
}
C1 = _ts_decorate._([
dec
], C1);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
using before = null
@dec
class C {
}

View File

@ -1,17 +1,6 @@
//// [usingDeclarationsWithLegacyClassDecorators.5.ts]
import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
export { C };
try {
var _usingCtx = _using_ctx();
var before = _usingCtx.u(null);
class C {
}
C = _ts_decorate([
dec
], C);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
using before = null
@dec
class C {
}
export { C };

View File

@ -1,17 +1,6 @@
//// [usingDeclarationsWithLegacyClassDecorators.5.ts]
import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
import { _ as _using_ctx } from "@swc/helpers/_/_using_ctx";
try {
var _usingCtx = _using_ctx();
_usingCtx.u(null);
class C {
}
C = _ts_decorate([
dec
], C);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
using before = null
@dec
class C {
}
export { C };

View File

@ -1,33 +1,14 @@
//// [usingDeclarationsWithLegacyClassDecorators.5.ts]
System.register([
"@swc/helpers/_/_ts_decorate",
"@swc/helpers/_/_using_ctx"
], function(_export, _context) {
System.register([], function(_export, _context) {
"use strict";
var _ts_decorate, _using_ctx;
var C;
return {
setters: [
function(_ts_decorate1) {
_ts_decorate = _ts_decorate1._;
},
function(_using_ctx1) {
_using_ctx = _using_ctx1._;
}
],
setters: [],
execute: function() {
try {
var _usingCtx = _using_ctx();
var before = _usingCtx.u(null);
class C {
}
_export("C", C = _ts_decorate([
dec
], C));
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
using before = null
_export("C", C = @dec
class C {
});
}
};
});

View File

@ -1,32 +1,12 @@
//// [usingDeclarationsWithLegacyClassDecorators.5.ts]
System.register([
"@swc/helpers/_/_ts_decorate",
"@swc/helpers/_/_using_ctx"
], function(_export, _context) {
var _ts_decorate, _using_ctx;
System.register([], function(_export, _context) {
return {
setters: [
function(_ts_decorate1) {
_ts_decorate = _ts_decorate1._;
},
function(_using_ctx1) {
_using_ctx = _using_ctx1._;
}
],
setters: [],
execute: function() {
try {
var _usingCtx = _using_ctx();
_usingCtx.u(null);
class C {
}
_export("C", C = _ts_decorate([
dec
], C));
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
}
using before = null
_export("C", @dec
class {
});
}
};
});

View File

@ -9,18 +9,7 @@ Object.defineProperty(exports, "D", {
return C;
}
});
const _ts_decorate = require("@swc/helpers/_/_ts_decorate");
const _using_ctx = require("@swc/helpers/_/_using_ctx");
try {
var _usingCtx = _using_ctx._();
var before = _usingCtx.u(null);
class C {
}
C = _ts_decorate._([
dec
], C);
} catch (_) {
_usingCtx.e = _;
} finally{
_usingCtx.d();
using before = null
@dec
class C {
}

Some files were not shown because too many files have changed in this diff Show More