Skip to content

Commit 0ebcdd1

Browse files
Update test files to use namespace instead of module keyword
Co-authored-by: RyanCavanaugh <6685088+RyanCavanaugh@users.noreply.github.com>
1 parent 3a60026 commit 0ebcdd1

File tree

891 files changed

+1682
-1682
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

891 files changed

+1682
-1682
lines changed

tests/baselines/reference/commentEmitAtEndOfFile1.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
// test
55
var f = ''
66
// test #2
7-
module foo {
7+
namespace foo {
88
function bar() { }
99
}
1010
// test #3
11-
module empty {
11+
namespace empty {
1212
}
1313
// test #4
1414

tests/baselines/reference/commentEmitAtEndOfFile1.symbols

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ var f = ''
66
>f : Symbol(f, Decl(commentEmitAtEndOfFile1.ts, 1, 3))
77

88
// test #2
9-
module foo {
9+
namespace foo {
1010
>foo : Symbol(foo, Decl(commentEmitAtEndOfFile1.ts, 1, 10))
1111

1212
function bar() { }
13-
>bar : Symbol(bar, Decl(commentEmitAtEndOfFile1.ts, 3, 12))
13+
>bar : Symbol(bar, Decl(commentEmitAtEndOfFile1.ts, 3, 15))
1414
}
1515
// test #3
16-
module empty {
16+
namespace empty {
1717
>empty : Symbol(empty, Decl(commentEmitAtEndOfFile1.ts, 5, 1))
1818
}
1919
// test #4

tests/baselines/reference/commentEmitAtEndOfFile1.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var f = ''
99
> : ^^
1010

1111
// test #2
12-
module foo {
12+
namespace foo {
1313
>foo : typeof foo
1414
> : ^^^^^^^^^^
1515

@@ -18,6 +18,6 @@ module foo {
1818
> : ^^^^^^^^^^
1919
}
2020
// test #3
21-
module empty {
21+
namespace empty {
2222
}
2323
// test #4
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module M {
1+
namespace M {
22
function foo();
33
}

tests/cases/compiler/acceptableAlias1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module M {
1+
namespace M {
22
export module N {
33
}
44
export import X = N;

tests/cases/compiler/aliasBug.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// @module: commonjs
22

3-
module foo {
3+
namespace foo {
44
export class Provide {
55
}
66

tests/cases/compiler/aliasErrors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module foo {
1+
namespace foo {
22
export class Provide {
33
}
44
export module bar { export module baz {export class boo {}}}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// @declaration: true
2-
module M {
3-
module N {
2+
namespace M {
3+
namespace N {
44
}
55
export import X = N;
66
}

tests/cases/compiler/aliasInaccessibleModule2.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// @declaration: true
2-
module M {
3-
module N {
2+
namespace M {
3+
namespace N {
44
class C {
55
}
66

tests/cases/compiler/aliasesInSystemModule1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ let x = new alias.Class();
99
let y = new cls();
1010
let z = new cls2();
1111

12-
module M {
12+
namespace M {
1313
export import cls = alias.Class;
1414
let x = new alias.Class();
1515
let y = new cls();

0 commit comments

Comments
 (0)