Skip to content

Commit 3f5c77f

Browse files
Replace all testcase instances of 'module' with 'namespace' (#62399)
1 parent 0f4b338 commit 3f5c77f

File tree

5,766 files changed

+23240
-23144
lines changed

Some content is hidden

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

5,766 files changed

+23240
-23144
lines changed

tests/baselines/reference/AmbientModuleAndAmbientFunctionWithTheSameNameAndCommonRoot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//// [tests/cases/conformance/internalModules/DeclarationMerging/AmbientModuleAndAmbientFunctionWithTheSameNameAndCommonRoot.ts] ////
22

33
//// [module.d.ts]
4-
declare module Point {
4+
declare namespace Point {
55
export var Origin: { x: number; y: number; }
66
}
77

tests/baselines/reference/AmbientModuleAndAmbientFunctionWithTheSameNameAndCommonRoot.symbols

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//// [tests/cases/conformance/internalModules/DeclarationMerging/AmbientModuleAndAmbientFunctionWithTheSameNameAndCommonRoot.ts] ////
22

33
=== module.d.ts ===
4-
declare module Point {
4+
declare namespace Point {
55
>Point : Symbol(Point, Decl(module.d.ts, 0, 0), Decl(function.d.ts, 0, 0))
66

77
export var Origin: { x: number; y: number; }

tests/baselines/reference/AmbientModuleAndAmbientFunctionWithTheSameNameAndCommonRoot.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//// [tests/cases/conformance/internalModules/DeclarationMerging/AmbientModuleAndAmbientFunctionWithTheSameNameAndCommonRoot.ts] ////
22

33
=== module.d.ts ===
4-
declare module Point {
4+
declare namespace Point {
55
>Point : typeof Point
66
> : ^^^^^^^^^^^^
77

tests/baselines/reference/AmbientModuleAndAmbientWithSameNameAndCommonRoot.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//// [tests/cases/conformance/internalModules/DeclarationMerging/AmbientModuleAndAmbientWithSameNameAndCommonRoot.ts] ////
22

33
//// [module.d.ts]
4-
declare module A {
5-
export module Point {
4+
declare namespace A {
5+
export namespace Point {
66
export var Origin: {
77
x: number;
88
y: number;
@@ -11,7 +11,7 @@ declare module A {
1111
}
1212

1313
//// [class.d.ts]
14-
declare module A {
14+
declare namespace A {
1515
export class Point {
1616
constructor(x: number, y: number);
1717
x: number;

tests/baselines/reference/AmbientModuleAndAmbientWithSameNameAndCommonRoot.symbols

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
//// [tests/cases/conformance/internalModules/DeclarationMerging/AmbientModuleAndAmbientWithSameNameAndCommonRoot.ts] ////
22

33
=== module.d.ts ===
4-
declare module A {
4+
declare namespace A {
55
>A : Symbol(A, Decl(module.d.ts, 0, 0), Decl(class.d.ts, 0, 0))
66

7-
export module Point {
8-
>Point : Symbol(Point, Decl(module.d.ts, 0, 18), Decl(class.d.ts, 0, 18))
7+
export namespace Point {
8+
>Point : Symbol(Point, Decl(module.d.ts, 0, 21), Decl(class.d.ts, 0, 21))
99

1010
export var Origin: {
1111
>Origin : Symbol(Origin, Decl(module.d.ts, 2, 18))
@@ -20,11 +20,11 @@ declare module A {
2020
}
2121

2222
=== class.d.ts ===
23-
declare module A {
23+
declare namespace A {
2424
>A : Symbol(A, Decl(module.d.ts, 0, 0), Decl(class.d.ts, 0, 0))
2525

2626
export class Point {
27-
>Point : Symbol(Point, Decl(module.d.ts, 0, 18), Decl(class.d.ts, 0, 18))
27+
>Point : Symbol(Point, Decl(module.d.ts, 0, 21), Decl(class.d.ts, 0, 21))
2828

2929
constructor(x: number, y: number);
3030
>x : Symbol(x, Decl(class.d.ts, 2, 20))
@@ -47,14 +47,14 @@ var p: { x: number; y: number; }
4747
var p = A.Point.Origin;
4848
>p : Symbol(p, Decl(test.ts, 0, 3), Decl(test.ts, 1, 3), Decl(test.ts, 2, 3))
4949
>A.Point.Origin : Symbol(A.Point.Origin, Decl(module.d.ts, 2, 18))
50-
>A.Point : Symbol(A.Point, Decl(module.d.ts, 0, 18), Decl(class.d.ts, 0, 18))
50+
>A.Point : Symbol(A.Point, Decl(module.d.ts, 0, 21), Decl(class.d.ts, 0, 21))
5151
>A : Symbol(A, Decl(module.d.ts, 0, 0), Decl(class.d.ts, 0, 0))
52-
>Point : Symbol(A.Point, Decl(module.d.ts, 0, 18), Decl(class.d.ts, 0, 18))
52+
>Point : Symbol(A.Point, Decl(module.d.ts, 0, 21), Decl(class.d.ts, 0, 21))
5353
>Origin : Symbol(A.Point.Origin, Decl(module.d.ts, 2, 18))
5454

5555
var p = new A.Point(0, 0); // unexpected error here, bug 840000
5656
>p : Symbol(p, Decl(test.ts, 0, 3), Decl(test.ts, 1, 3), Decl(test.ts, 2, 3))
57-
>A.Point : Symbol(A.Point, Decl(module.d.ts, 0, 18), Decl(class.d.ts, 0, 18))
57+
>A.Point : Symbol(A.Point, Decl(module.d.ts, 0, 21), Decl(class.d.ts, 0, 21))
5858
>A : Symbol(A, Decl(module.d.ts, 0, 0), Decl(class.d.ts, 0, 0))
59-
>Point : Symbol(A.Point, Decl(module.d.ts, 0, 18), Decl(class.d.ts, 0, 18))
59+
>Point : Symbol(A.Point, Decl(module.d.ts, 0, 21), Decl(class.d.ts, 0, 21))
6060

tests/baselines/reference/AmbientModuleAndAmbientWithSameNameAndCommonRoot.types

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
//// [tests/cases/conformance/internalModules/DeclarationMerging/AmbientModuleAndAmbientWithSameNameAndCommonRoot.ts] ////
22

33
=== module.d.ts ===
4-
declare module A {
4+
declare namespace A {
55
>A : typeof A
66
> : ^^^^^^^^
77

8-
export module Point {
8+
export namespace Point {
99
>Point : typeof Point
1010
> : ^^^^^^^^^^^^
1111

@@ -25,7 +25,7 @@ declare module A {
2525
}
2626

2727
=== class.d.ts ===
28-
declare module A {
28+
declare namespace A {
2929
>A : typeof A
3030
> : ^^^^^^^^
3131

tests/baselines/reference/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//// [tests/cases/conformance/internalModules/DeclarationMerging/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.ts] ////
22

33
//// [module.d.ts]
4-
declare module A {
5-
export module Point {
4+
declare namespace A {
5+
export namespace Point {
66
export var Origin: {
77
x: number;
88
y: number;
@@ -11,7 +11,7 @@ declare module A {
1111
}
1212

1313
//// [classPoint.ts]
14-
module A {
14+
namespace A {
1515
export class Point {
1616
constructor(public x: number, public y: number) { }
1717
}

tests/baselines/reference/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.symbols

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
//// [tests/cases/conformance/internalModules/DeclarationMerging/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.ts] ////
22

33
=== module.d.ts ===
4-
declare module A {
4+
declare namespace A {
55
>A : Symbol(A, Decl(module.d.ts, 0, 0), Decl(classPoint.ts, 0, 0))
66

7-
export module Point {
8-
>Point : Symbol(Point, Decl(module.d.ts, 0, 18), Decl(classPoint.ts, 0, 10))
7+
export namespace Point {
8+
>Point : Symbol(Point, Decl(module.d.ts, 0, 21), Decl(classPoint.ts, 0, 13))
99

1010
export var Origin: {
1111
>Origin : Symbol(Origin, Decl(module.d.ts, 2, 18))
@@ -20,11 +20,11 @@ declare module A {
2020
}
2121

2222
=== classPoint.ts ===
23-
module A {
23+
namespace A {
2424
>A : Symbol(A, Decl(module.d.ts, 0, 0), Decl(classPoint.ts, 0, 0))
2525

2626
export class Point {
27-
>Point : Symbol(Point, Decl(module.d.ts, 0, 18), Decl(classPoint.ts, 0, 10))
27+
>Point : Symbol(Point, Decl(module.d.ts, 0, 21), Decl(classPoint.ts, 0, 13))
2828

2929
constructor(public x: number, public y: number) { }
3030
>x : Symbol(Point.x, Decl(classPoint.ts, 2, 20))
@@ -41,14 +41,14 @@ var p: { x: number; y: number; }
4141
var p = A.Point.Origin;
4242
>p : Symbol(p, Decl(test.ts, 0, 3), Decl(test.ts, 1, 3), Decl(test.ts, 2, 3))
4343
>A.Point.Origin : Symbol(A.Point.Origin, Decl(module.d.ts, 2, 18))
44-
>A.Point : Symbol(A.Point, Decl(module.d.ts, 0, 18), Decl(classPoint.ts, 0, 10))
44+
>A.Point : Symbol(A.Point, Decl(module.d.ts, 0, 21), Decl(classPoint.ts, 0, 13))
4545
>A : Symbol(A, Decl(module.d.ts, 0, 0), Decl(classPoint.ts, 0, 0))
46-
>Point : Symbol(A.Point, Decl(module.d.ts, 0, 18), Decl(classPoint.ts, 0, 10))
46+
>Point : Symbol(A.Point, Decl(module.d.ts, 0, 21), Decl(classPoint.ts, 0, 13))
4747
>Origin : Symbol(A.Point.Origin, Decl(module.d.ts, 2, 18))
4848

4949
var p = new A.Point(0, 0); // unexpected error here, bug 840000
5050
>p : Symbol(p, Decl(test.ts, 0, 3), Decl(test.ts, 1, 3), Decl(test.ts, 2, 3))
51-
>A.Point : Symbol(A.Point, Decl(module.d.ts, 0, 18), Decl(classPoint.ts, 0, 10))
51+
>A.Point : Symbol(A.Point, Decl(module.d.ts, 0, 21), Decl(classPoint.ts, 0, 13))
5252
>A : Symbol(A, Decl(module.d.ts, 0, 0), Decl(classPoint.ts, 0, 0))
53-
>Point : Symbol(A.Point, Decl(module.d.ts, 0, 18), Decl(classPoint.ts, 0, 10))
53+
>Point : Symbol(A.Point, Decl(module.d.ts, 0, 21), Decl(classPoint.ts, 0, 13))
5454

tests/baselines/reference/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.types

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
//// [tests/cases/conformance/internalModules/DeclarationMerging/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.ts] ////
22

33
=== module.d.ts ===
4-
declare module A {
4+
declare namespace A {
55
>A : typeof A
66
> : ^^^^^^^^
77

8-
export module Point {
8+
export namespace Point {
99
>Point : typeof Point
1010
> : ^^^^^^^^^^^^
1111

@@ -25,7 +25,7 @@ declare module A {
2525
}
2626

2727
=== classPoint.ts ===
28-
module A {
28+
namespace A {
2929
>A : typeof A
3030
> : ^^^^^^^^
3131

tests/baselines/reference/AmbientModuleAndNonAmbientFunctionWithTheSameNameAndCommonRoot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//// [tests/cases/conformance/internalModules/DeclarationMerging/AmbientModuleAndNonAmbientFunctionWithTheSameNameAndCommonRoot.ts] ////
22

33
//// [module.d.ts]
4-
declare module Point {
4+
declare namespace Point {
55
export var Origin: { x: number; y: number; }
66
}
77

0 commit comments

Comments
 (0)