2015-06-10 19:58:57 +02:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
////function f() {
|
|
|
|
//// namespace n {
|
|
|
|
//// interface I {
|
|
|
|
//// x: number
|
|
|
|
//// }
|
|
|
|
//// /*1*/
|
|
|
|
//// }
|
|
|
|
//// /*2*/
|
|
|
|
////}
|
|
|
|
/////*3*/
|
2017-05-25 00:24:49 +02:00
|
|
|
////function f2() {
|
|
|
|
//// namespace n2 {
|
|
|
|
//// class I2 {
|
|
|
|
//// x: number
|
|
|
|
//// }
|
|
|
|
//// /*11*/
|
|
|
|
//// }
|
|
|
|
//// /*22*/
|
|
|
|
////}
|
|
|
|
/////*33*/
|
2015-06-10 19:58:57 +02:00
|
|
|
|
2018-10-29 18:03:25 +01:00
|
|
|
verify.completions(
|
|
|
|
{ marker: ["1", "2", "3"], includes: { name: "f", text: "function f(): void" }, excludes: ["n", "I"] },
|
|
|
|
{
|
|
|
|
marker: "11",
|
|
|
|
includes: [
|
|
|
|
{ name: "f2", text: "function f2(): void" },
|
|
|
|
{ name: "n2", text: "namespace n2" },
|
|
|
|
{ name: "I2", text: "class I2" },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
marker: "22",
|
|
|
|
includes: [
|
|
|
|
{ name: "f2", text: "function f2(): void" },
|
|
|
|
{ name: "n2", text: "namespace n2" },
|
|
|
|
],
|
|
|
|
excludes: "I2",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
marker: "33",
|
|
|
|
includes: { name: "f2", text: "function f2(): void" },
|
|
|
|
excludes: ["n2", "I2"],
|
|
|
|
},
|
|
|
|
);
|