i.e. use "var v: string" instead of "(var) v: string". The parens case should only be used when we're using an english description instead of an actual language construct.
733 lines
No EOL
27 KiB
TypeScript
733 lines
No EOL
27 KiB
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
/////** this is signature 1*/
|
|
////function /*1*/f1(/**param a*/a: number): number;
|
|
////function /*2*/f1(b: string): number;
|
|
////function /*3*/f1(aOrb: any) {
|
|
//// return 10;
|
|
////}
|
|
////f/*4q*/1(/*4*/"hello");
|
|
////f/*o4q*/1(/*o4*/10);
|
|
////function /*5*/f2(/**param a*/a: number): number;
|
|
/////** this is signature 2*/
|
|
////function /*6*/f2(b: string): number;
|
|
/////** this is f2 var comment*/
|
|
////function /*7*/f2(aOrb: any) {
|
|
//// return 10;
|
|
////}
|
|
////f/*8q*/2(/*8*/"hello");
|
|
////f/*o8q*/2(/*o8*/10);
|
|
////function /*9*/f3(a: number): number;
|
|
////function /*10*/f3(b: string): number;
|
|
////function /*11*/f3(aOrb: any) {
|
|
//// return 10;
|
|
////}
|
|
////f/*12q*/3(/*12*/"hello");
|
|
////f/*o12q*/3(/*o12*/10);
|
|
/////** this is signature 4 - with number parameter*/
|
|
////function /*13*/f4(/**param a*/a: number): number;
|
|
/////** this is signature 4 - with string parameter*/
|
|
////function /*14*/f4(b: string): number;
|
|
////function /*15*/f4(aOrb: any) {
|
|
//// return 10;
|
|
////}
|
|
////f/*16q*/4(/*16*/"hello");
|
|
////f/*o16q*/4(/*o16*/10);
|
|
/////*17*/
|
|
////interface i1 {
|
|
//// /**this signature 1*/
|
|
//// (/**param a*/ a: number): number;
|
|
//// /**this is signature 2*/
|
|
//// (b: string): number;
|
|
//// /** foo 1*/
|
|
//// foo(a: number): number;
|
|
//// /** foo 2*/
|
|
//// foo(b: string): number;
|
|
//// foo2(a: number): number;
|
|
//// /** foo2 2*/
|
|
//// foo2(b: string): number;
|
|
//// foo3(a: number): number;
|
|
//// foo3(b: string): number;
|
|
//// /** foo4 1*/
|
|
//// foo4(a: number): number;
|
|
//// foo4(b: string): number;
|
|
//// /** new 1*/
|
|
//// new (a: string);
|
|
//// new (b: number);
|
|
////}
|
|
////var i1_i: i1;
|
|
////interface i2 {
|
|
//// new (a: string);
|
|
//// /** new 2*/
|
|
//// new (b: number);
|
|
//// (a: number): number;
|
|
//// /**this is signature 2*/
|
|
//// (b: string): number;
|
|
////}
|
|
////var i2_i: i2;
|
|
////interface i3 {
|
|
//// /** new 1*/
|
|
//// new (a: string);
|
|
//// /** new 2*/
|
|
//// new (b: number);
|
|
//// /**this is signature 1*/
|
|
//// (a: number): number;
|
|
//// (b: string): number;
|
|
////}
|
|
////var i3_i: i3;
|
|
////interface i4 {
|
|
//// new (a: string);
|
|
//// new (b: number);
|
|
//// (a: number): number;
|
|
//// (b: string): number;
|
|
////}
|
|
////var i4_i: i4;
|
|
////new /*18*/i1/*19q*/_i(/*19*/10);
|
|
////new i/*20q*/1_i(/*20*/"Hello");
|
|
////i/*21q*/1_i(/*21*/10);
|
|
////i/*22q*/1_i(/*22*/"hello");
|
|
////i1_i./*23*/f/*24q*/oo(/*24*/10);
|
|
////i1_i.f/*25q*/oo(/*25*/"hello");
|
|
////i1_i.fo/*26q*/o2(/*26*/10);
|
|
////i1_i.fo/*27q*/o2(/*27*/"hello");
|
|
////i1_i.fo/*28q*/o3(/*28*/10);
|
|
////i1_i.fo/*29q*/o3(/*29*/"hello");
|
|
////i1_i.fo/*30q*/o4(/*30*/10);
|
|
////i1_i.fo/*31q*/o4(/*31*/"hello");
|
|
////new i2/*32q*/_i(/*32*/10);
|
|
////new i2/*33q*/_i(/*33*/"Hello");
|
|
////i/*34q*/2_i(/*34*/10);
|
|
////i2/*35q*/_i(/*35*/"hello");
|
|
////new i/*36q*/3_i(/*36*/10);
|
|
////new i3/*37q*/_i(/*37*/"Hello");
|
|
////i3/*38q*/_i(/*38*/10);
|
|
////i3/*39q*/_i(/*39*/"hello");
|
|
////new i4/*40q*/_i(/*40*/10);
|
|
////new i/*41q*/4_i(/*41*/"Hello");
|
|
////i4/*42q*/_i(/*42*/10);
|
|
////i4/*43q*/_i(/*43*/"hello");
|
|
////class c {
|
|
//// public /*93*/prop1(a: number): number;
|
|
//// public /*94*/prop1(b: string): number;
|
|
//// public /*95*/prop1(aorb: any) {
|
|
//// return 10;
|
|
//// }
|
|
//// /** prop2 1*/
|
|
//// public /*96*/prop2(a: number): number;
|
|
//// public /*97*/prop2(b: string): number;
|
|
//// public /*98*/prop2(aorb: any) {
|
|
//// return 10;
|
|
//// }
|
|
//// public /*99*/prop3(a: number): number;
|
|
//// /** prop3 2*/
|
|
//// public /*100*/prop3(b: string): number;
|
|
//// public /*101*/prop3(aorb: any) {
|
|
//// return 10;
|
|
//// }
|
|
//// /** prop4 1*/
|
|
//// public /*102*/prop4(a: number): number;
|
|
//// /** prop4 2*/
|
|
//// public /*103*/prop4(b: string): number;
|
|
//// public /*104*/prop4(aorb: any) {
|
|
//// return 10;
|
|
//// }
|
|
//// /** prop5 1*/
|
|
//// public /*105*/prop5(a: number): number;
|
|
//// /** prop5 2*/
|
|
//// public /*106*/prop5(b: string): number;
|
|
//// /** Prop5 implementaion*/
|
|
//// public /*107*/prop5(aorb: any) {
|
|
//// return 10;
|
|
//// }
|
|
////}
|
|
////class c1 {
|
|
//// /*78*/constructor(a: number);
|
|
//// /*79*/constructor(b: string);
|
|
//// /*80*/constructor(aorb: any) {
|
|
//// }
|
|
////}
|
|
////class c2 {
|
|
//// /** c2 1*/
|
|
//// /*81*/constructor(a: number);
|
|
//// /*82*/constructor(b: string);
|
|
//// /*83*/constructor(aorb: any) {
|
|
//// }
|
|
////}
|
|
////class c3 {
|
|
//// /*84*/constructor(a: number);
|
|
//// /** c3 2*/
|
|
//// /*85*/constructor(b: string);
|
|
//// /*86*/constructor(aorb: any) {
|
|
//// }
|
|
////}
|
|
////class c4 {
|
|
//// /** c4 1*/
|
|
//// /*87*/constructor(a: number);
|
|
//// /** c4 2*/
|
|
//// /*88*/constructor(b: string);
|
|
//// /*89*/constructor(aorb: any) {
|
|
//// }
|
|
////}
|
|
////class c5 {
|
|
//// /** c5 1*/
|
|
//// /*90*/constructor(a: number);
|
|
//// /** c5 2*/
|
|
//// /*91*/constructor(b: string);
|
|
//// /** c5 implementation*/
|
|
//// /*92*/constructor(aorb: any) {
|
|
//// }
|
|
////}
|
|
////var c_i = new c();
|
|
////c_i./*44*/pro/*45q*/p1(/*45*/10);
|
|
////c_i.pr/*46q*/op1(/*46*/"hello");
|
|
////c_i.pr/*47q*/op2(/*47*/10);
|
|
////c_i.pr/*48q*/op2(/*48*/"hello");
|
|
////c_i.pro/*49q*/p3(/*49*/10);
|
|
////c_i.pr/*50q*/op3(/*50*/"hello");
|
|
////c_i.pr/*51q*/op4(/*51*/10);
|
|
////c_i.pr/*52q*/op4(/*52*/"hello");
|
|
////c_i.pr/*53q*/op5(/*53*/10);
|
|
////c_i.pr/*54q*/op5(/*54*/"hello");
|
|
////var c1/*66*/_i_1 = new c/*55q*/1(/*55*/10);
|
|
////var c1_i_2 = new c/*56q*/1(/*56*/"hello");
|
|
////var c2_i_1 = new c/*57q*/2(/*57*/10);
|
|
////var c/*67*/2_i_2 = new c/*58q*/2(/*58*/"hello");
|
|
////var c3_i_1 = new c/*59q*/3(/*59*/10);
|
|
////var c/*68*/3_i_2 = new c/*60q*/3(/*60*/"hello");
|
|
////var c4/*69*/_i_1 = new c/*61q*/4(/*61*/10);
|
|
////var c4_i_2 = new c/*62q*/4(/*62*/"hello");
|
|
////var c/*70*/5_i_1 = new c/*63q*/5(/*63*/10);
|
|
////var c5_i_2 = new c/*64q*/5(/*64*/"hello");
|
|
/////** This is multiOverload F1 1*/
|
|
////function multiOverload(a: number): string;
|
|
/////** This is multiOverload F1 2*/
|
|
////function multiOverload(b: string): string;
|
|
/////** This is multiOverload F1 3*/
|
|
////function multiOverload(c: boolean): string;
|
|
/////** This is multiOverload Implementation */
|
|
////function multiOverload(d): string {
|
|
//// return "Hello";
|
|
////}
|
|
////multiOverl/*71*/oad(10);
|
|
////multiOverl/*72*/oad("hello");
|
|
////multiOverl/*73*/oad(true);
|
|
/////** This is ambient F1 1*/
|
|
////declare function ambientF1(a: number): string;
|
|
/////** This is ambient F1 2*/
|
|
////declare function ambientF1(b: string): string;
|
|
/////** This is ambient F1 3*/
|
|
////declare function ambientF1(c: boolean): boolean;
|
|
/////*65*/
|
|
////ambient/*74*/F1(10);
|
|
////ambient/*75*/F1("hello");
|
|
////ambient/*76*/F1(true);
|
|
////function foo(a/*77*/a: i3) {
|
|
////}
|
|
////foo(null);
|
|
|
|
goTo.marker('1');
|
|
verify.quickInfoIs("function f1(a: number): number (+1 overload)", "this is signature 1");
|
|
goTo.marker('2');
|
|
verify.quickInfoIs("function f1(b: string): number (+1 overload)", "");
|
|
goTo.marker('3');
|
|
verify.quickInfoIs("function f1(a: number): number (+1 overload)", "this is signature 1");
|
|
goTo.marker('4q');
|
|
verify.quickInfoIs("function f1(b: string): number (+1 overload)", "");
|
|
goTo.marker('o4q');
|
|
verify.quickInfoIs("function f1(a: number): number (+1 overload)", "this is signature 1");
|
|
|
|
goTo.marker('4');
|
|
verify.currentSignatureHelpDocCommentIs("");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('o4');
|
|
verify.currentSignatureHelpDocCommentIs("this is signature 1");
|
|
verify.currentParameterHelpArgumentDocCommentIs("param a");
|
|
|
|
goTo.marker('5');
|
|
verify.quickInfoIs("function f2(a: number): number (+1 overload)", "");
|
|
goTo.marker('6');
|
|
verify.quickInfoIs("function f2(b: string): number (+1 overload)", "this is signature 2");
|
|
goTo.marker('7');
|
|
verify.quickInfoIs("function f2(a: number): number (+1 overload)", "");
|
|
goTo.marker('8q');
|
|
verify.quickInfoIs("function f2(b: string): number (+1 overload)", "this is signature 2");
|
|
goTo.marker('o8q');
|
|
verify.quickInfoIs("function f2(a: number): number (+1 overload)", "");
|
|
|
|
goTo.marker('8');
|
|
verify.currentSignatureHelpDocCommentIs("this is signature 2");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
|
|
goTo.marker('o8');
|
|
verify.currentSignatureHelpDocCommentIs("");
|
|
verify.currentParameterHelpArgumentDocCommentIs("param a");
|
|
|
|
goTo.marker('9');
|
|
verify.quickInfoIs("function f3(a: number): number (+1 overload)", "");
|
|
goTo.marker('10');
|
|
verify.quickInfoIs("function f3(b: string): number (+1 overload)", "");
|
|
goTo.marker('11');
|
|
verify.quickInfoIs("function f3(a: number): number (+1 overload)", "");
|
|
goTo.marker('12q');
|
|
verify.quickInfoIs("function f3(b: string): number (+1 overload)", "");
|
|
goTo.marker('o12q');
|
|
verify.quickInfoIs("function f3(a: number): number (+1 overload)", "");
|
|
|
|
goTo.marker('12');
|
|
verify.currentSignatureHelpDocCommentIs("");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
|
|
goTo.marker('o12');
|
|
verify.currentSignatureHelpDocCommentIs("");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
|
|
goTo.marker('13');
|
|
verify.quickInfoIs("function f4(a: number): number (+1 overload)", "this is signature 4 - with number parameter");
|
|
goTo.marker('14');
|
|
verify.quickInfoIs("function f4(b: string): number (+1 overload)", "this is signature 4 - with string parameter");
|
|
goTo.marker('15');
|
|
verify.quickInfoIs("function f4(a: number): number (+1 overload)", "this is signature 4 - with number parameter");
|
|
goTo.marker('16q');
|
|
verify.quickInfoIs("function f4(b: string): number (+1 overload)", "this is signature 4 - with string parameter");
|
|
goTo.marker('o16q');
|
|
verify.quickInfoIs("function f4(a: number): number (+1 overload)", "this is signature 4 - with number parameter");
|
|
|
|
goTo.marker('16');
|
|
verify.currentSignatureHelpDocCommentIs("this is signature 4 - with string parameter");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
|
|
goTo.marker('o16');
|
|
verify.currentSignatureHelpDocCommentIs("this is signature 4 - with number parameter");
|
|
verify.currentParameterHelpArgumentDocCommentIs("param a");
|
|
|
|
goTo.marker('17');
|
|
verify.completionListContains('f1', 'function f1(a: number): number (+1 overload)', 'this is signature 1');
|
|
verify.completionListContains('f2', 'function f2(a: number): number (+1 overload)', '');
|
|
verify.completionListContains('f3', 'function f3(a: number): number (+1 overload)', '');
|
|
verify.completionListContains('f4', 'function f4(a: number): number (+1 overload)', 'this is signature 4 - with number parameter');
|
|
|
|
goTo.marker('18');
|
|
verify.completionListContains('i1', 'interface i1', '');
|
|
verify.completionListContains('i1_i', 'var i1_i: new i1(b: number) => any (+1 overload)', '');
|
|
verify.completionListContains('i2', 'interface i2', '');
|
|
verify.completionListContains('i2_i', 'var i2_i: new i2(a: string) => any (+1 overload)', '');
|
|
verify.completionListContains('i3', 'interface i3', '');
|
|
verify.completionListContains('i3_i', 'var i3_i: new i3(a: string) => any (+1 overload)', 'new 1');
|
|
verify.completionListContains('i4', 'interface i4', '');
|
|
verify.completionListContains('i4_i', 'var i4_i: new i4(a: string) => any (+1 overload)', '');
|
|
|
|
goTo.marker('19');
|
|
verify.currentSignatureHelpDocCommentIs("");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('19q');
|
|
verify.quickInfoIs("var i1_i: new i1(b: number) => any (+1 overload)", "");
|
|
|
|
goTo.marker('20');
|
|
verify.currentSignatureHelpDocCommentIs("new 1");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('20q');
|
|
verify.quickInfoIs("var i1_i: new i1(a: string) => any (+1 overload)", "new 1");
|
|
|
|
goTo.marker('21');
|
|
verify.currentSignatureHelpDocCommentIs("this signature 1");
|
|
verify.currentParameterHelpArgumentDocCommentIs("param a");
|
|
goTo.marker('21q');
|
|
verify.quickInfoIs("var i1_i: i1(a: number) => number (+1 overload)", "this signature 1");
|
|
|
|
goTo.marker('22');
|
|
verify.currentSignatureHelpDocCommentIs("this is signature 2");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('22q');
|
|
verify.quickInfoIs("var i1_i: i1(b: string) => number (+1 overload)", "this is signature 2");
|
|
|
|
goTo.marker('23');
|
|
verify.memberListContains('foo', '(method) i1.foo(a: number): number (+1 overload)', 'foo 1');
|
|
verify.memberListContains('foo2', '(method) i1.foo2(a: number): number (+1 overload)', '');
|
|
verify.memberListContains('foo3', '(method) i1.foo3(a: number): number (+1 overload)', '');
|
|
verify.memberListContains('foo4', '(method) i1.foo4(a: number): number (+1 overload)', 'foo4 1');
|
|
|
|
goTo.marker('24');
|
|
verify.currentSignatureHelpDocCommentIs("foo 1");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('24q');
|
|
verify.quickInfoIs("(method) i1.foo(a: number): number (+1 overload)", "foo 1");
|
|
|
|
goTo.marker('25');
|
|
verify.currentSignatureHelpDocCommentIs("foo 2");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('25q');
|
|
verify.quickInfoIs("(method) i1.foo(b: string): number (+1 overload)", "foo 2");
|
|
|
|
goTo.marker('26');
|
|
verify.currentSignatureHelpDocCommentIs("");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('26q');
|
|
verify.quickInfoIs("(method) i1.foo2(a: number): number (+1 overload)", "");
|
|
|
|
goTo.marker('27');
|
|
verify.currentSignatureHelpDocCommentIs("foo2 2");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('27q');
|
|
verify.quickInfoIs("(method) i1.foo2(b: string): number (+1 overload)", "foo2 2");
|
|
|
|
goTo.marker('28');
|
|
verify.currentSignatureHelpDocCommentIs("");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('28q');
|
|
verify.quickInfoIs("(method) i1.foo3(a: number): number (+1 overload)", "");
|
|
|
|
goTo.marker('29');
|
|
verify.currentSignatureHelpDocCommentIs("");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('29q');
|
|
verify.quickInfoIs("(method) i1.foo3(b: string): number (+1 overload)", "");
|
|
|
|
goTo.marker('30');
|
|
verify.currentSignatureHelpDocCommentIs("foo4 1");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('30q');
|
|
verify.quickInfoIs("(method) i1.foo4(a: number): number (+1 overload)", "foo4 1");
|
|
|
|
goTo.marker('31');
|
|
verify.currentSignatureHelpDocCommentIs("");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('31q');
|
|
verify.quickInfoIs("(method) i1.foo4(b: string): number (+1 overload)", "");
|
|
|
|
goTo.marker('32');
|
|
verify.currentSignatureHelpDocCommentIs("new 2");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('32q');
|
|
verify.quickInfoIs("var i2_i: new i2(b: number) => any (+1 overload)", "new 2");
|
|
|
|
goTo.marker('33');
|
|
verify.currentSignatureHelpDocCommentIs("");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('33q');
|
|
verify.quickInfoIs("var i2_i: new i2(a: string) => any (+1 overload)", "");
|
|
|
|
goTo.marker('34');
|
|
verify.currentSignatureHelpDocCommentIs("");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('34q');
|
|
verify.quickInfoIs("var i2_i: i2(a: number) => number (+1 overload)", "");
|
|
|
|
goTo.marker('35');
|
|
verify.currentSignatureHelpDocCommentIs("this is signature 2");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('35q');
|
|
verify.quickInfoIs("var i2_i: i2(b: string) => number (+1 overload)", "this is signature 2");
|
|
|
|
goTo.marker('36');
|
|
verify.currentSignatureHelpDocCommentIs("new 2");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('36q');
|
|
verify.quickInfoIs("var i3_i: new i3(b: number) => any (+1 overload)", "new 2");
|
|
|
|
goTo.marker('37');
|
|
verify.currentSignatureHelpDocCommentIs("new 1");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('37q');
|
|
verify.quickInfoIs("var i3_i: new i3(a: string) => any (+1 overload)", "new 1");
|
|
|
|
goTo.marker('38');
|
|
verify.currentSignatureHelpDocCommentIs("this is signature 1");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('38q');
|
|
verify.quickInfoIs("var i3_i: i3(a: number) => number (+1 overload)", "this is signature 1");
|
|
|
|
goTo.marker('39');
|
|
verify.currentSignatureHelpDocCommentIs("");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('39q');
|
|
verify.quickInfoIs("var i3_i: i3(b: string) => number (+1 overload)", "");
|
|
|
|
goTo.marker('40');
|
|
verify.currentSignatureHelpDocCommentIs("");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('40q');
|
|
verify.quickInfoIs("var i4_i: new i4(b: number) => any (+1 overload)", "");
|
|
|
|
goTo.marker('41');
|
|
verify.currentSignatureHelpDocCommentIs("");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('41q');
|
|
verify.quickInfoIs("var i4_i: new i4(a: string) => any (+1 overload)", "");
|
|
|
|
goTo.marker('42');
|
|
verify.currentSignatureHelpDocCommentIs("");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('42q');
|
|
verify.quickInfoIs("var i4_i: i4(a: number) => number (+1 overload)", "");
|
|
|
|
goTo.marker('43');
|
|
verify.currentSignatureHelpDocCommentIs("");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('43q');
|
|
verify.quickInfoIs("var i4_i: i4(b: string) => number (+1 overload)", "");
|
|
|
|
goTo.marker('44');
|
|
verify.memberListContains('prop1', '(method) c.prop1(a: number): number (+1 overload)', '');
|
|
verify.memberListContains('prop2', '(method) c.prop2(a: number): number (+1 overload)', 'prop2 1');
|
|
verify.memberListContains('prop3', '(method) c.prop3(a: number): number (+1 overload)', '');
|
|
verify.memberListContains('prop4', '(method) c.prop4(a: number): number (+1 overload)', 'prop4 1');
|
|
verify.memberListContains('prop5', '(method) c.prop5(a: number): number (+1 overload)', 'prop5 1');
|
|
|
|
goTo.marker('45');
|
|
verify.currentSignatureHelpDocCommentIs("");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('45q');
|
|
verify.quickInfoIs("(method) c.prop1(a: number): number (+1 overload)", "");
|
|
|
|
goTo.marker('46');
|
|
verify.currentSignatureHelpDocCommentIs("");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('46q');
|
|
verify.quickInfoIs("(method) c.prop1(b: string): number (+1 overload)", "");
|
|
|
|
goTo.marker('47');
|
|
verify.currentSignatureHelpDocCommentIs("prop2 1");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('47q');
|
|
verify.quickInfoIs("(method) c.prop2(a: number): number (+1 overload)", "prop2 1");
|
|
|
|
goTo.marker('48');
|
|
verify.currentSignatureHelpDocCommentIs("");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('48q');
|
|
verify.quickInfoIs("(method) c.prop2(b: string): number (+1 overload)", "");
|
|
|
|
goTo.marker('49');
|
|
verify.currentSignatureHelpDocCommentIs("");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('49q');
|
|
verify.quickInfoIs("(method) c.prop3(a: number): number (+1 overload)", "");
|
|
|
|
goTo.marker('50');
|
|
verify.currentSignatureHelpDocCommentIs("prop3 2");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('50q');
|
|
verify.quickInfoIs("(method) c.prop3(b: string): number (+1 overload)", "prop3 2");
|
|
|
|
goTo.marker('51');
|
|
verify.currentSignatureHelpDocCommentIs("prop4 1");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('51q');
|
|
verify.quickInfoIs("(method) c.prop4(a: number): number (+1 overload)", "prop4 1");
|
|
|
|
goTo.marker('52');
|
|
verify.currentSignatureHelpDocCommentIs("prop4 2");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('52q');
|
|
verify.quickInfoIs("(method) c.prop4(b: string): number (+1 overload)", "prop4 2");
|
|
|
|
goTo.marker('53');
|
|
verify.currentSignatureHelpDocCommentIs("prop5 1");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('53q');
|
|
verify.quickInfoIs("(method) c.prop5(a: number): number (+1 overload)", "prop5 1");
|
|
|
|
goTo.marker('54');
|
|
verify.currentSignatureHelpDocCommentIs("prop5 2");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('54q');
|
|
verify.quickInfoIs("(method) c.prop5(b: string): number (+1 overload)", "prop5 2");
|
|
|
|
goTo.marker('55');
|
|
verify.currentSignatureHelpDocCommentIs("");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('55q');
|
|
verify.quickInfoIs("constructor c1(a: number): c1 (+1 overload)", "");
|
|
|
|
goTo.marker('56');
|
|
verify.currentSignatureHelpDocCommentIs("");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('56q');
|
|
verify.quickInfoIs("constructor c1(b: string): c1 (+1 overload)", "");
|
|
|
|
goTo.marker('57');
|
|
verify.currentSignatureHelpDocCommentIs("c2 1");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('57q');
|
|
verify.quickInfoIs("constructor c2(a: number): c2 (+1 overload)", "c2 1");
|
|
|
|
goTo.marker('58');
|
|
verify.currentSignatureHelpDocCommentIs("");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('58q');
|
|
verify.quickInfoIs("constructor c2(b: string): c2 (+1 overload)", "");
|
|
|
|
goTo.marker('59');
|
|
verify.currentSignatureHelpDocCommentIs("");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('59q');
|
|
verify.quickInfoIs("constructor c3(a: number): c3 (+1 overload)", "");
|
|
|
|
goTo.marker('60');
|
|
verify.currentSignatureHelpDocCommentIs("c3 2");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('60q');
|
|
verify.quickInfoIs("constructor c3(b: string): c3 (+1 overload)", "c3 2");
|
|
|
|
goTo.marker('61');
|
|
verify.currentSignatureHelpDocCommentIs("c4 1");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('61q');
|
|
verify.quickInfoIs("constructor c4(a: number): c4 (+1 overload)", "c4 1");
|
|
|
|
goTo.marker('62');
|
|
verify.currentSignatureHelpDocCommentIs("c4 2");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('62q');
|
|
verify.quickInfoIs("constructor c4(b: string): c4 (+1 overload)", "c4 2");
|
|
|
|
goTo.marker('63');
|
|
verify.currentSignatureHelpDocCommentIs("c5 1");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('63q');
|
|
verify.quickInfoIs("constructor c5(a: number): c5 (+1 overload)", "c5 1");
|
|
|
|
goTo.marker('64');
|
|
verify.currentSignatureHelpDocCommentIs("c5 2");
|
|
verify.currentParameterHelpArgumentDocCommentIs("");
|
|
goTo.marker('64q');
|
|
verify.quickInfoIs("constructor c5(b: string): c5 (+1 overload)", "c5 2");
|
|
|
|
goTo.marker('65');
|
|
verify.completionListContains("c", "class c", "");
|
|
verify.completionListContains("c1", "class c1", "");
|
|
verify.completionListContains("c2", "class c2", "");
|
|
verify.completionListContains("c3", "class c3", "");
|
|
verify.completionListContains("c4", "class c4", "");
|
|
verify.completionListContains("c5", "class c5", "");
|
|
verify.completionListContains("c_i", "var c_i: c", "");
|
|
verify.completionListContains("c1_i_1", "var c1_i_1: c1", "");
|
|
verify.completionListContains("c2_i_1", "var c2_i_1: c2", "");
|
|
verify.completionListContains("c3_i_1", "var c3_i_1: c3", "");
|
|
verify.completionListContains("c4_i_1", "var c4_i_1: c4", "");
|
|
verify.completionListContains("c5_i_1", "var c5_i_1: c5", "");
|
|
verify.completionListContains("c1_i_2", "var c1_i_2: c1", "");
|
|
verify.completionListContains("c2_i_2", "var c2_i_2: c2", "");
|
|
verify.completionListContains("c3_i_2", "var c3_i_2: c3", "");
|
|
verify.completionListContains("c4_i_2", "var c4_i_2: c4", "");
|
|
verify.completionListContains("c5_i_2", "var c5_i_2: c5", "");
|
|
verify.completionListContains('multiOverload', 'function multiOverload(a: number): string (+2 overloads)', 'This is multiOverload F1 1');
|
|
verify.completionListContains('ambientF1', 'function ambientF1(a: number): string (+2 overloads)', 'This is ambient F1 1');
|
|
|
|
goTo.marker('66');
|
|
verify.quickInfoIs("var c1_i_1: c1", "");
|
|
goTo.marker('67');
|
|
verify.quickInfoIs("var c2_i_2: c2", "");
|
|
goTo.marker('68');
|
|
verify.quickInfoIs("var c3_i_2: c3", "");
|
|
goTo.marker('69');
|
|
verify.quickInfoIs("var c4_i_1: c4", "");
|
|
goTo.marker('70');
|
|
verify.quickInfoIs("var c5_i_1: c5", "");
|
|
|
|
goTo.marker('71');
|
|
verify.quickInfoIs("function multiOverload(a: number): string (+2 overloads)", "This is multiOverload F1 1");
|
|
goTo.marker('72');
|
|
verify.quickInfoIs("function multiOverload(b: string): string (+2 overloads)", "This is multiOverload F1 2");
|
|
goTo.marker('73');
|
|
verify.quickInfoIs("function multiOverload(c: boolean): string (+2 overloads)", "This is multiOverload F1 3");
|
|
|
|
goTo.marker('74');
|
|
verify.quickInfoIs("function ambientF1(a: number): string (+2 overloads)", "This is ambient F1 1");
|
|
goTo.marker('75');
|
|
verify.quickInfoIs("function ambientF1(b: string): string (+2 overloads)", "This is ambient F1 2");
|
|
goTo.marker('76');
|
|
verify.quickInfoIs("function ambientF1(c: boolean): boolean (+2 overloads)", "This is ambient F1 3");
|
|
|
|
goTo.marker('77');
|
|
verify.quickInfoIs("(parameter) aa: i3", "");
|
|
|
|
goTo.marker('78');
|
|
verify.quickInfoIs("constructor c1(a: number): c1 (+1 overload)", "");
|
|
|
|
goTo.marker('79');
|
|
verify.quickInfoIs("constructor c1(b: string): c1 (+1 overload)", "");
|
|
|
|
goTo.marker('80');
|
|
verify.quickInfoIs("constructor c1(a: number): c1 (+1 overload)", "");
|
|
|
|
goTo.marker('81');
|
|
verify.quickInfoIs("constructor c2(a: number): c2 (+1 overload)", "c2 1");
|
|
|
|
goTo.marker('82');
|
|
verify.quickInfoIs("constructor c2(b: string): c2 (+1 overload)", "");
|
|
|
|
goTo.marker('83');
|
|
verify.quickInfoIs("constructor c2(a: number): c2 (+1 overload)", "c2 1");
|
|
|
|
goTo.marker('84');
|
|
verify.quickInfoIs("constructor c3(a: number): c3 (+1 overload)", "");
|
|
|
|
goTo.marker('85');
|
|
verify.quickInfoIs("constructor c3(b: string): c3 (+1 overload)", "c3 2");
|
|
|
|
goTo.marker('86');
|
|
verify.quickInfoIs("constructor c3(a: number): c3 (+1 overload)", "");
|
|
|
|
goTo.marker('87');
|
|
verify.quickInfoIs("constructor c4(a: number): c4 (+1 overload)", "c4 1");
|
|
|
|
goTo.marker('88');
|
|
verify.quickInfoIs("constructor c4(b: string): c4 (+1 overload)", "c4 2");
|
|
|
|
goTo.marker('89');
|
|
verify.quickInfoIs("constructor c4(a: number): c4 (+1 overload)", "c4 1");
|
|
|
|
goTo.marker('90');
|
|
verify.quickInfoIs("constructor c5(a: number): c5 (+1 overload)", "c5 1");
|
|
|
|
goTo.marker('91');
|
|
verify.quickInfoIs("constructor c5(b: string): c5 (+1 overload)", "c5 2");
|
|
|
|
goTo.marker('92');
|
|
verify.quickInfoIs("constructor c5(a: number): c5 (+1 overload)", "c5 1");
|
|
|
|
goTo.marker('93');
|
|
verify.quickInfoIs("(method) c.prop1(a: number): number (+1 overload)", "");
|
|
|
|
goTo.marker('94');
|
|
verify.quickInfoIs("(method) c.prop1(b: string): number (+1 overload)", "");
|
|
|
|
goTo.marker('95');
|
|
verify.quickInfoIs("(method) c.prop1(a: number): number (+1 overload)", "");
|
|
|
|
goTo.marker('96');
|
|
verify.quickInfoIs("(method) c.prop2(a: number): number (+1 overload)", "prop2 1");
|
|
|
|
goTo.marker('97');
|
|
verify.quickInfoIs("(method) c.prop2(b: string): number (+1 overload)", "");
|
|
|
|
goTo.marker('98');
|
|
verify.quickInfoIs("(method) c.prop2(a: number): number (+1 overload)", "prop2 1");
|
|
|
|
goTo.marker('99');
|
|
verify.quickInfoIs("(method) c.prop3(a: number): number (+1 overload)", "");
|
|
|
|
goTo.marker('100');
|
|
verify.quickInfoIs("(method) c.prop3(b: string): number (+1 overload)", "prop3 2");
|
|
|
|
goTo.marker('101');
|
|
verify.quickInfoIs("(method) c.prop3(a: number): number (+1 overload)", "");
|
|
|
|
goTo.marker('102');
|
|
verify.quickInfoIs("(method) c.prop4(a: number): number (+1 overload)", "prop4 1");
|
|
|
|
goTo.marker('103');
|
|
verify.quickInfoIs("(method) c.prop4(b: string): number (+1 overload)", "prop4 2");
|
|
|
|
goTo.marker('104');
|
|
verify.quickInfoIs("(method) c.prop4(a: number): number (+1 overload)", "prop4 1");
|
|
|
|
goTo.marker('105');
|
|
verify.quickInfoIs("(method) c.prop5(a: number): number (+1 overload)", "prop5 1");
|
|
|
|
goTo.marker('106');
|
|
verify.quickInfoIs("(method) c.prop5(b: string): number (+1 overload)", "prop5 2");
|
|
|
|
goTo.marker('107');
|
|
verify.quickInfoIs("(method) c.prop5(a: number): number (+1 overload)", "prop5 1"); |