2015-03-02 23:41:44 +01:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
2015-04-27 01:12:48 +02:00
|
|
|
////namespace mod1 {
|
2015-03-02 23:41:44 +01:00
|
|
|
//// var mX = 1;
|
|
|
|
//// function mFunc() { }
|
|
|
|
//// class mClass { }
|
2015-04-27 01:12:48 +02:00
|
|
|
//// namespace mMod { }
|
2015-03-02 23:41:44 +01:00
|
|
|
//// interface mInt {}
|
|
|
|
//// export var meX = 1;
|
|
|
|
//// export function meFunc() { }
|
|
|
|
//// export class meClass { }
|
2015-04-27 01:12:48 +02:00
|
|
|
//// export namespace meMod { export var iMex = 1; }
|
2015-03-02 23:41:44 +01:00
|
|
|
//// export interface meInt {}
|
|
|
|
////}
|
|
|
|
////
|
2015-04-27 01:12:48 +02:00
|
|
|
////namespace frmConfirm {
|
2015-03-02 23:41:44 +01:00
|
|
|
//// import Mod1 = mod1;
|
|
|
|
//// import iMod1 = mod1./*1*/meMod;
|
|
|
|
//// Mod1./*2*/meX = 1;
|
|
|
|
//// iMod1./*3*/iMex = 1;
|
|
|
|
////}
|
|
|
|
|
2018-10-29 18:03:25 +01:00
|
|
|
const values: ReadonlyArray<FourSlashInterface.ExpectedCompletionEntry> = [
|
|
|
|
{ name: "meFunc", text: "function mod1.meFunc(): void" },
|
|
|
|
{ name: "meX", text: "var mod1.meX: number" },
|
|
|
|
{ name: "meClass", text: "class mod1.meClass" },
|
|
|
|
{ name: "meMod", text: "namespace mod1.meMod" },
|
|
|
|
];
|
|
|
|
verify.completions(
|
|
|
|
{ marker: "1", exact: [...values, { name: "meInt", text: "interface mod1.meInt" }] },
|
|
|
|
{ marker: "2", exact: values },
|
|
|
|
{ marker: "3", exact: { name: "iMex", text: "var mod1.meMod.iMex: number" } },
|
|
|
|
);
|