1
1
/// <reference path='fourslash.ts' />
2
2
3
3
// @Filename : commentsExternalModules_file0.ts
4
- /////** Module comment*/
5
- ////export module m/*1*/1 {
4
+ /////** Namespace comment*/
5
+ ////export namespace m/*1*/1 {
6
6
//// /** b's comment*/
7
7
//// export var b: number;
8
8
//// /** foo's comment*/
9
9
//// function foo() {
10
10
//// return /*2*/b;
11
11
//// }
12
12
//// /** m2 comments*/
13
- //// export module m2 {
13
+ //// export namespace m2 {
14
14
//// /** class comment;*/
15
15
//// export class c {
16
16
//// };
@@ -36,7 +36,7 @@ edit.insert('');
36
36
37
37
goTo . file ( "commentsExternalModules_file0.ts" ) ;
38
38
goTo . marker ( '1' ) ;
39
- verify . quickInfoIs ( "module m1" , "Module comment" ) ;
39
+ verify . quickInfoIs ( "namespace m1" , "Namespace comment" ) ;
40
40
41
41
goTo . marker ( '2' ) ;
42
42
verify . completionListContains ( "b" , "var m1.b: number" , "b's comment" ) ;
@@ -48,12 +48,12 @@ goTo.marker('3q');
48
48
verify . quickInfoIs ( "function foo(): number" , "foo's comment" ) ;
49
49
50
50
goTo . marker ( '4' ) ;
51
- verify . completionListContains ( "m1" , "module m1" , "Module comment" ) ;
51
+ verify . completionListContains ( "m1" , "namespace m1" , "Namespace comment" ) ;
52
52
53
53
goTo . marker ( '5' ) ;
54
54
verify . memberListContains ( "b" , "var m1.b: number" , "b's comment" ) ;
55
55
verify . memberListContains ( "fooExport" , "function m1.fooExport(): number" , "exported function" ) ;
56
- verify . memberListContains ( "m2" , "module m1.m2" ) ;
56
+ verify . memberListContains ( "m2" , "namespace m1.m2" ) ;
57
57
58
58
goTo . marker ( '6' ) ;
59
59
verify . currentSignatureHelpDocCommentIs ( "exported function" ) ;
@@ -75,12 +75,12 @@ goTo.marker('10');
75
75
verify . completionListContains ( "extMod" , 'import extMod = require("commentsExternalModules_file0")' , "This is on import declaration" ) ;
76
76
77
77
goTo . marker ( '11' ) ;
78
- verify . memberListContains ( "m1" , "module extMod.m1" ) ;
78
+ verify . memberListContains ( "m1" , "namespace extMod.m1" ) ;
79
79
80
80
goTo . marker ( '12' ) ;
81
81
verify . memberListContains ( "b" , "var extMod.m1.b: number" , "b's comment" ) ;
82
82
verify . memberListContains ( "fooExport" , "function extMod.m1.fooExport(): number" , "exported function" ) ;
83
- verify . memberListContains ( "m2" , "module extMod.m1.m2" ) ;
83
+ verify . memberListContains ( "m2" , "namespace extMod.m1.m2" ) ;
84
84
85
85
goTo . marker ( '13' ) ;
86
86
verify . currentSignatureHelpDocCommentIs ( "exported function" ) ;
0 commit comments