Skip to content

Commit

Permalink
chore: add test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
magic-akari committed Jun 26, 2023
1 parent e7c4e04 commit 0d93b04
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
namespace X1 {
console.log(1);
}

export namespace X2 {
console.log(2);
}

namespace X3 {
namespace X4 {
console.log(4);
}
}

namespace X5 {
export namespace X6 {
console.log(6);
}
}

namespace X7.X8 {
console.log(8);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
var X1;
(function (X1) {
console.log(1);
})(X1 || (X1 = {}));

export var X2;
(function (X2) {
console.log(2);
})(X2 || (X2 = {}));

var X3;
(function (X3) {
let X4;
(function (X4) {
console.log(4);
})(X4 || (X4 = {}));
})(X3 || (X3 = {}));

var X5;
(function (X5) {
let X6;
(function (X6) {
console.log(6);
})(X6 = X5.X6 || (X5.X6 = {}));
})(X5 || (X5 = {}));

var X7;
(function (X7) {
(function (X8) {
console.log(8);
})(X8 = X7.X8 || (X7.X8 = {}));
})(X7 || (X7 = {}));
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
class X1 {}

namespace X1 {
console.log(1);
}

function X2() {}

namespace X2 {
console.log(2);
}

enum X3 {}

namespace X3 {
console.log(3);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
class X1 {
}
(function (X1) {
console.log(1);
})(X1 || (X1 = {}));

function X2() { }
(function (X2) {
console.log(2);
})(X2 || (X2 = {}));

var X3;
(function (X3) {
})(X3 || (X3 = {}));
(function (X3) {
console.log(3);
})(X3 || (X3 = {}));

0 comments on commit 0d93b04

Please sign in to comment.