2014-09-30 23:56:46 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
////module M {
|
|
|
|
//// export interface I { }
|
|
|
|
//// export class C {
|
|
|
|
//// static property;
|
|
|
|
//// }
|
|
|
|
//// export enum E {
|
|
|
|
//// value = 0
|
|
|
|
//// }
|
|
|
|
//// export module N {
|
|
|
|
//// export var v;
|
|
|
|
//// }
|
|
|
|
//// export var V = 0;
|
|
|
|
//// export function F() { }
|
|
|
|
//// export import A = M;
|
|
|
|
////}
|
|
|
|
////
|
|
|
|
////import m = M;
|
|
|
|
////import c = M.C;
|
|
|
|
////import e = M.E;
|
|
|
|
////import n = M.N;
|
|
|
|
////import v = M.V;
|
|
|
|
////import f = M.F;
|
|
|
|
////import a = M.A;
|
|
|
|
////
|
|
|
|
////m./*1*/;
|
2017-05-25 00:24:49 +02:00
|
|
|
////var tmp: m./*1Type*/;
|
2014-09-30 23:56:46 +02:00
|
|
|
////c./*2*/;
|
|
|
|
////e./*3*/;
|
|
|
|
////n./*4*/;
|
|
|
|
////v./*5*/;
|
|
|
|
////f./*6*/;
|
|
|
|
////a./*7*/;
|
2017-05-25 00:24:49 +02:00
|
|
|
////var tmp2: a./*7Type*/;
|
|
|
|
|
2018-10-29 18:03:25 +01:00
|
|
|
verify.completions(
|
|
|
|
// Module m / alias a
|
|
|
|
{ marker: ["1", "7"], exact: ["F", "C", "E", "N", "V", "A"] },
|
|
|
|
{ marker: ["1Type", "7Type"], exact: ["I", "C", "E", "A"] },
|
|
|
|
// Class C
|
2020-09-11 23:48:24 +02:00
|
|
|
{
|
|
|
|
marker: "2",
|
|
|
|
exact: [
|
|
|
|
{ name: "prototype", sortText: completion.SortText.LocationPriority },
|
|
|
|
{ name: "property", sortText: completion.SortText.LocalDeclarationPriority },
|
|
|
|
...completion.functionMembers
|
|
|
|
]
|
|
|
|
},
|
2018-10-29 18:03:25 +01:00
|
|
|
// Enum E
|
|
|
|
{ marker: "3", exact: "value" },
|
|
|
|
// Module N
|
|
|
|
{ marker: "4", exact: "v" },
|
|
|
|
// var V
|
|
|
|
{ marker: "5", includes: "toFixed" },
|
|
|
|
// function F
|
|
|
|
{ marker: "6", includes: "call" },
|
|
|
|
);
|