2014-07-13 01:04:16 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
// @Filename: commentsImportDeclaration_file0.ts
|
2015-04-27 01:12:48 +02:00
|
|
|
/////** NamespaceComment*/
|
|
|
|
////export namespace m/*2*/1 {
|
2014-07-13 01:04:16 +02:00
|
|
|
//// /** b's comment*/
|
|
|
|
//// export var b: number;
|
|
|
|
//// /** m2 comments*/
|
2015-04-27 01:12:48 +02:00
|
|
|
//// export namespace m2 {
|
2014-07-13 01:04:16 +02:00
|
|
|
//// /** class comment;*/
|
|
|
|
//// export class c {
|
|
|
|
//// };
|
|
|
|
//// /** i*/
|
|
|
|
//// export var i: c;;
|
|
|
|
//// }
|
|
|
|
//// /** exported function*/
|
|
|
|
//// export function fooExport(): number;
|
|
|
|
////}
|
|
|
|
|
|
|
|
// @Filename: commentsImportDeclaration_file1.ts
|
|
|
|
///////<reference path='commentsImportDeclaration_file0.ts'/>
|
|
|
|
/////** Import declaration*/
|
2016-02-13 00:40:47 +01:00
|
|
|
////import /*3*/extMod = require("./commentsImportDeclaration_file0/*4*/");
|
2014-07-13 01:04:16 +02:00
|
|
|
////extMod./*6*/m1./*7*/fooEx/*8q*/port(/*8*/);
|
|
|
|
////var new/*9*/Var = new extMod.m1.m2./*10*/c();
|
|
|
|
|
2016-09-09 18:02:55 +02:00
|
|
|
verify.quickInfos({
|
|
|
|
2: ["namespace m1", "NamespaceComment"],
|
|
|
|
3: ['import extMod = require("./commentsImportDeclaration_file0")', "Import declaration"]
|
|
|
|
});
|
2014-07-13 01:04:16 +02:00
|
|
|
|
2018-05-03 22:04:08 +02:00
|
|
|
verify.completions({ marker: "6", exact: [{ name: "m1", text: "namespace extMod.m1", documentation: "NamespaceComment" }] });
|
2014-07-13 01:04:16 +02:00
|
|
|
|
2018-05-01 22:00:13 +02:00
|
|
|
verify.completions({
|
2018-05-03 22:04:08 +02:00
|
|
|
marker: "7",
|
|
|
|
exact: [
|
2018-05-01 22:00:13 +02:00
|
|
|
{ name: "fooExport", text: "function extMod.m1.fooExport(): number", documentation: "exported function" },
|
|
|
|
{ name: "b", text: "var extMod.m1.b: number", documentation: "b's comment" },
|
|
|
|
{ name: "m2", text: "namespace extMod.m1.m2", documentation: "m2 comments" },
|
|
|
|
]
|
|
|
|
})
|
2014-07-13 01:04:16 +02:00
|
|
|
|
2018-05-15 21:34:53 +02:00
|
|
|
verify.signatureHelp({ marker: "8", docComment: "exported function" });
|
2016-09-09 18:02:55 +02:00
|
|
|
verify.quickInfos({
|
|
|
|
"8q": ["function extMod.m1.fooExport(): number", "exported function"],
|
|
|
|
9: "var newVar: extMod.m1.m2.c"
|
|
|
|
});
|
2014-07-13 01:04:16 +02:00
|
|
|
|
2018-05-01 22:00:13 +02:00
|
|
|
verify.completions({
|
2018-05-03 22:04:08 +02:00
|
|
|
marker: "10",
|
|
|
|
exact: [
|
2018-08-27 18:38:52 +02:00
|
|
|
{ name: "c", text: "constructor extMod.m1.m2.c(): extMod.m1.m2.c", documentation: "class comment;" },
|
2018-05-01 22:00:13 +02:00
|
|
|
{ name: "i", text: "var extMod.m1.m2.i: extMod.m1.m2.c", documentation: "i" },
|
|
|
|
],
|
|
|
|
});
|