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
|
|
|
|
|
|
|
goTo.marker('1');
|
|
|
|
verify.completionListContains("f", "function f(): void");
|
2017-05-25 00:24:49 +02:00
|
|
|
verify.not.completionListContains("n", "namespace n");
|
|
|
|
verify.not.completionListContains("I", "interface I");
|
2015-06-10 19:58:57 +02:00
|
|
|
|
|
|
|
goTo.marker('2');
|
|
|
|
verify.completionListContains("f", "function f(): void");
|
2017-05-25 00:24:49 +02:00
|
|
|
verify.not.completionListContains("n", "namespace n");
|
2015-06-10 19:58:57 +02:00
|
|
|
|
|
|
|
goTo.marker('3');
|
2017-05-25 00:24:49 +02:00
|
|
|
verify.completionListContains("f", "function f(): void");
|
|
|
|
|
|
|
|
goTo.marker('11');
|
|
|
|
verify.completionListContains("f2", "function f2(): void");
|
|
|
|
verify.completionListContains("n2", "namespace n2");
|
|
|
|
verify.completionListContains("I2", "class I2");
|
|
|
|
|
|
|
|
goTo.marker('22');
|
|
|
|
verify.completionListContains("f2", "function f2(): void");
|
|
|
|
verify.completionListContains("n2", "namespace n2");
|
|
|
|
|
|
|
|
goTo.marker('33');
|
|
|
|
verify.completionListContains("f2", "function f2(): void");
|