-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More delegate analyzing and commit updated snapshots
- Loading branch information
Showing
23 changed files
with
567 additions
and
84 deletions.
There are no files selected for viewing
14 changes: 13 additions & 1 deletion
14
crates/swc/tests/tsc-references/classStaticBlock15(target=es2022).2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,14 @@ | ||
//// [classStaticBlock15.ts] | ||
console.log(void 0); | ||
var _C__1; | ||
class C { | ||
static #_1 = 1; | ||
static #_3 = 3; | ||
static #_5 = 5; | ||
static{} | ||
static{} | ||
static{} | ||
static{} | ||
static{} | ||
static{} | ||
} | ||
console.log(_C__1); |
7 changes: 6 additions & 1 deletion
7
crates/swc/tests/tsc-references/classStaticBlock23.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
//// [classStaticBlock23.ts] | ||
[ | ||
const nums = [ | ||
1, | ||
2, | ||
3 | ||
].map((n)=>Promise.resolve(n)); | ||
class C { | ||
static{ | ||
for await (let nn of nums)console.log(nn); | ||
} | ||
} |
12 changes: 11 additions & 1 deletion
12
crates/swc/tests/tsc-references/classStaticBlock5(target=es2022).2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,12 @@ | ||
//// [classStaticBlock5.ts] | ||
super.a; | ||
class B { | ||
static a = 1; | ||
static b = 2; | ||
} | ||
class C extends B { | ||
static b = 3; | ||
static c = super.a; | ||
static{ | ||
this.b, super.b, super.a; | ||
} | ||
} |
10 changes: 9 additions & 1 deletion
10
crates/swc/tests/tsc-references/classStaticBlockUseBeforeDef1.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
//// [classStaticBlockUseBeforeDef1.ts] | ||
this.x; | ||
class C { | ||
static{ | ||
this.x = 1; | ||
} | ||
static y = this.x; | ||
static{ | ||
this.z = this.y; | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
crates/swc/tests/tsc-references/classStaticBlockUseBeforeDef2.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
//// [classStaticBlockUseBeforeDef2.ts] | ||
class C { | ||
static{ | ||
this.x = 1; | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...es/swc/tests/tsc-references/privateNameComputedPropertyName4(target=es2022).2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,13 @@ | ||
//// [privateNameComputedPropertyName4.ts] | ||
class C1 { | ||
static #qux = 42; | ||
bar() {} | ||
} | ||
class C2 { | ||
static #qux = 42; | ||
static bar() {} | ||
} | ||
class C3 { | ||
static #qux = 42; | ||
static bar = "test"; | ||
} |
Oops, something went wrong.