Skip to content

Commit

Permalink
chore: update tsc-references test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
magic-akari committed Apr 3, 2023
1 parent 48fbb28 commit fdcdafc
Show file tree
Hide file tree
Showing 2,960 changed files with 7,324 additions and 7,432 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//// [module.d.ts]
//// [classPoint.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var A;
(function(A) {
var Point = function Point(x, y) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//// [module.d.ts]
//// [classPoint.ts]
var A;
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
(A || (A = {})).Point = function Point(x, y) {
"use strict";
_class_call_check(this, Point), this.x = x, this.y = y;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//// [ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.ts]
// all expected to be errors
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var clodule1 = function clodule1() {
"use strict";
_class_call_check(this, clodule1);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var clodule1 = function clodule1() {
"use strict";
_class_call_check(this, clodule1);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var clodule = /*#__PURE__*/ function() {
"use strict";
function clodule() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var clodule = function() {
"use strict";
function clodule() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var clodule = /*#__PURE__*/ function() {
"use strict";
function clodule() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var clodule = function() {
"use strict";
function clodule() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var clodule = /*#__PURE__*/ function() {
"use strict";
function clodule() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var clodule = function() {
"use strict";
function clodule() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var Point = /*#__PURE__*/ function() {
"use strict";
function Point(x, y) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var A, Point = function() {
"use strict";
function Point(x, y) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var Point = /*#__PURE__*/ function() {
"use strict";
function Point(x, y) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var A, Point = function() {
"use strict";
function Point(x, y) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var Point = function Point(x, y) {
"use strict";
_class_call_check(this, Point);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var A, Point = function Point(x, y) {
"use strict";
_class_call_check(this, Point), this.x = x, this.y = y;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var Point = function Point(x, y) {
"use strict";
_class_call_check(this, Point);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var A, Point = function Point(x, y) {
"use strict";
_class_call_check(this, Point), this.x = x, this.y = y;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [class.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var X;
(function(X) {
var Y;
Expand Down Expand Up @@ -29,7 +29,7 @@ var X;
var cl = new X.Y.Point(1, 1);
var cl = X.Y.Point.Origin; // error not expected here same as bug 83996 ?
//// [simple.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var A = function A() {
"use strict";
_class_call_check(this, A);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//// [class.ts]
var X;
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
!function(X) {
(X.Y || (X.Y = {})).Point = function Point(x, y) {
"use strict";
Expand All @@ -16,7 +16,7 @@ var X;
//// [test.ts]
new X.Y.Point(1, 1), X.Y.Point.Origin;
//// [simple.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var A = function A() {
"use strict";
_class_call_check(this, A);
Expand Down
2 changes: 1 addition & 1 deletion crates/swc/tests/tsc-references/ES5For-of26.1.normal.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ES5For-of26.ts]
import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs";
import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
for(var _i = 0, _iter = [
2,
3
Expand Down
2 changes: 1 addition & 1 deletion crates/swc/tests/tsc-references/ES5For-of26.2.minified.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ES5For-of26.ts]
import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs";
import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
for(var _i = 0, _iter = [
2,
3
Expand Down
2 changes: 1 addition & 1 deletion crates/swc/tests/tsc-references/ES5For-of28.1.normal.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ES5For-of28.ts]
import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs";
import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
for(var _i = 0, _iter = [
2,
3
Expand Down
2 changes: 1 addition & 1 deletion crates/swc/tests/tsc-references/ES5For-of28.2.minified.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ES5For-of28.ts]
import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs";
import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
for(var _i = 0, _iter = [
2,
3
Expand Down
2 changes: 1 addition & 1 deletion crates/swc/tests/tsc-references/ES5For-of30.1.normal.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ES5For-of30.ts]
import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs";
import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
var a, b;
var tuple = [
2,
Expand Down
2 changes: 1 addition & 1 deletion crates/swc/tests/tsc-references/ES5For-of30.2.minified.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ES5For-of30.ts]
import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs";
import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
try {
for(var ref, _step, _iterator = [
Expand Down
2 changes: 1 addition & 1 deletion crates/swc/tests/tsc-references/ES5For-of36.1.normal.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ES5For-of36.ts]
import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs";
import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
for(var _i = 0, _iter = [
2,
3
Expand Down
2 changes: 1 addition & 1 deletion crates/swc/tests/tsc-references/ES5For-of36.2.minified.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ES5For-of36.ts]
import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs";
import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
for(var _i = 0, _iter = [
2,
3
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//// [ES5For-ofTypeCheck10.ts]
// In ES3/5, you cannot for...of over an arbitrary iterable.
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var StringIterator = /*#__PURE__*/ function() {
"use strict";
function StringIterator() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ES5For-ofTypeCheck10.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var StringIterator = function() {
"use strict";
function StringIterator() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ES5SymbolProperty1.ts]
import _define_property from "@swc/helpers/src/_define_property.mjs";
import { _ as _define_property } from "@swc/helpers/_/_define_property";
var Symbol;
var obj = _define_property({}, Symbol.foo, 0);
obj[Symbol.foo];
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// [ES5SymbolProperty1.ts]
var Symbol;
import _define_property from "@swc/helpers/src/_define_property.mjs";
import { _ as _define_property } from "@swc/helpers/_/_define_property";
_define_property({}, Symbol.foo, 0)[Symbol.foo];
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ES5SymbolProperty2.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var M;
(function(M) {
var _$Symbol;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//// [ES5SymbolProperty2.ts]
var M;
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
!function(M) {
var _$Symbol, C = function() {
"use strict";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ES5SymbolProperty3.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var Symbol;
var C = /*#__PURE__*/ function() {
"use strict";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//// [ES5SymbolProperty3.ts]
var Symbol;
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
(new (function() {
"use strict";
function C() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ES5SymbolProperty4.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var Symbol;
var C = /*#__PURE__*/ function() {
"use strict";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//// [ES5SymbolProperty4.ts]
var Symbol;
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
(new (function() {
"use strict";
function C() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ES5SymbolProperty5.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var Symbol;
var C = /*#__PURE__*/ function() {
"use strict";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//// [ES5SymbolProperty5.ts]
var Symbol;
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
(new (function() {
"use strict";
function C() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ES5SymbolProperty6.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var C = /*#__PURE__*/ function() {
"use strict";
function C() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ES5SymbolProperty6.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
(new (function() {
"use strict";
function C() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ES5SymbolProperty7.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var Symbol;
var C = /*#__PURE__*/ function() {
"use strict";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//// [ES5SymbolProperty7.ts]
var Symbol;
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
(new (function() {
"use strict";
function C() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [EnumAndModuleWithSameNameAndCommonRoot.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var enumdule;
(function(enumdule) {
enumdule[enumdule["Red"] = 0] = "Red";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//// [EnumAndModuleWithSameNameAndCommonRoot.ts]
var enumdule;
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
!function(enumdule) {
enumdule[enumdule.Red = 0] = "Red", enumdule[enumdule.Blue = 1] = "Blue";
}(enumdule || (enumdule = {})), (enumdule || (enumdule = {})).Point = function Point(x, y) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ExportClassWhichExtendsInterfaceWithInaccessibleType.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var A;
(function(A) {
var Point2d = /*#__PURE__*/ function() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//// [ExportClassWhichExtendsInterfaceWithInaccessibleType.ts]
var A;
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
!function(A) {
var Point2d = function() {
"use strict";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//// [ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
var A;
(function(A) {
var Point = function Point() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//// [ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts]
var A;
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
!function(A) {
var Point = function Point() {
"use strict";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var A;
(function(A) {
var Point = function Point() {
Expand Down

0 comments on commit fdcdafc

Please sign in to comment.