2014-08-30 03:02:05 +02:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
////var a = {
|
|
|
|
//// x(a: number) { }
|
|
|
|
////};
|
|
|
|
////
|
|
|
|
////var b = {
|
|
|
|
//// x: function (a: number) { }
|
|
|
|
////};
|
|
|
|
////
|
|
|
|
////var c = {
|
|
|
|
//// x: (a: number) => { }
|
|
|
|
////};
|
|
|
|
////a.x(/*signatureA*/1);
|
|
|
|
////b.x(/*signatureB*/1);
|
|
|
|
////c.x(/*signatureC*/1);
|
|
|
|
////a./*completionA*/;
|
|
|
|
////b./*completionB*/;
|
|
|
|
////c./*completionC*/;
|
|
|
|
////a./*quickInfoA*/x;
|
|
|
|
////b./*quickInfoB*/x;
|
|
|
|
////c./*quickInfoC*/x;
|
|
|
|
|
|
|
|
goTo.marker('signatureA');
|
|
|
|
verify.currentSignatureHelpIs('x(a: number): void');
|
|
|
|
|
|
|
|
goTo.marker('signatureB');
|
|
|
|
verify.currentSignatureHelpIs('x(a: number): void');
|
|
|
|
|
|
|
|
goTo.marker('signatureC');
|
|
|
|
verify.currentSignatureHelpIs('x(a: number): void');
|
|
|
|
|
2014-09-29 18:49:09 +02:00
|
|
|
goTo.marker('completionA');
|
2014-12-03 09:04:54 +01:00
|
|
|
verify.completionListContains("x", "(method) x(a: number): void");
|
2014-08-30 03:02:05 +02:00
|
|
|
|
2014-09-29 18:49:09 +02:00
|
|
|
goTo.marker('completionB');
|
|
|
|
verify.completionListContains("x", "(property) x: (a: number) => void");
|
2014-08-30 03:02:05 +02:00
|
|
|
|
2014-09-29 18:49:09 +02:00
|
|
|
goTo.marker('completionC');
|
|
|
|
verify.completionListContains("x", "(property) x: (a: number) => void");
|
2014-08-30 03:02:05 +02:00
|
|
|
|
2014-09-29 18:49:09 +02:00
|
|
|
goTo.marker('quickInfoA');
|
2014-12-03 09:04:54 +01:00
|
|
|
verify.quickInfoIs("(method) x(a: number): void", undefined);
|
2014-08-30 03:02:05 +02:00
|
|
|
|
2014-09-29 18:49:09 +02:00
|
|
|
goTo.marker('quickInfoB');
|
|
|
|
verify.quickInfoIs("(property) x: (a: number) => void", undefined);
|
2014-08-30 03:02:05 +02:00
|
|
|
|
2014-09-29 18:49:09 +02:00
|
|
|
goTo.marker('quickInfoC');
|
|
|
|
verify.quickInfoIs("(property) x: (a: number) => void", undefined);
|