1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144
|
/// <reference path='fourslash.ts' />
/////** This is class c2 without constructor*/
////class c/*1*/2 {
////}
////var i/*2*/2 = new c/*28*/2(/*3*/);
////var i2/*4*/_c = c/*5*/2;
////class c/*6*/3 {
//// /** Constructor comment*/
//// constructor() {
//// }
////}
////var i/*7*/3 = new c/*29*/3(/*8*/);
////var i3/*9*/_c = c/*10*/3;
/////** Class comment*/
////class c/*11*/4 {
//// /** Constructor comment*/
//// constructor() {
//// }
////}
////var i/*12*/4 = new c/*30*/4(/*13*/);
////var i4/*14*/_c = c/*15*/4;
/////** Class with statics*/
////class c/*16*/5 {
//// static s1: number;
////}
////var i/*17*/5 = new c/*31*/5(/*18*/);
////var i5_/*19*/c = c/*20*/5;
/////** class with statics and constructor*/
////class c/*21*/6 {
//// /** s1 comment*/
//// static s1: number;
//// /** constructor comment*/
//// constructor() {
//// }
////}
////var i/*22*/6 = new c/*32*/6(/*23*/);
////var i6/*24*/_c = c/*25*/6;
/////*26*/
////class a {
//// /**
//// constructor for a
//// @param a this is my a
//// */
//// constructor(a: string) {
//// }
////}
////new a(/*27*/"Hello");
////module m {
//// export module m2 {
//// /** class comment */
//// export class c1 {
//// /** constructor comment*/
//// constructor() {
//// }
//// }
//// }
////}
////var myVar = new m.m2.c/*33*/1();
verify.quickInfos({
1: ["class c2", "This is class c2 without constructor"],
2: "var i2: c2"
});
verify.signatureHelp({ marker: "3", docComment: "" });
verify.quickInfos({
4: "var i2_c: typeof c2",
5: ["class c2", "This is class c2 without constructor"],
6: "class c3",
7: "var i3: c3"
});
verify.signatureHelp({ marker: "8", docComment: "Constructor comment" });
verify.quickInfos({
9: "var i3_c: typeof c3",
10: "class c3",
11: ["class c4", "Class comment"],
12: "var i4: c4"
});
verify.signatureHelp({ marker: "13", docComment: "Constructor comment" });
verify.quickInfos({
14: "var i4_c: typeof c4",
15: ["class c4", "Class comment"],
16: ["class c5", "Class with statics"],
17: "var i5: c5"
});
verify.signatureHelp({ marker: "18", docComment: "" });
verify.quickInfos({
19: "var i5_c: typeof c5",
20: ["class c5", "Class with statics"],
21: ["class c6", "class with statics and constructor"],
22: "var i6: c6"
});
verify.signatureHelp({ marker: "23", docComment: "constructor comment" });
verify.quickInfos({
24: "var i6_c: typeof c6",
25: ["class c6", "class with statics and constructor"]
});
verify.completions({
marker: "26",
includes: [
{ name: "c2", text: "class c2", documentation: "This is class c2 without constructor" },
{ name: "i2", text: "var i2: c2" },
{ name: "i2_c", text: "var i2_c: typeof c2" },
{ name: "c3", text: "class c3" },
{ name: "i3", text: "var i3: c3" },
{ name: "i3_c", text: "var i3_c: typeof c3" },
{ name: "c4", text: "class c4", documentation: "Class comment" },
{ name: "i4", text: "var i4: c4" },
{ name: "i4_c", text: "var i4_c: typeof c4" },
{ name: "c5", text: "class c5", documentation: "Class with statics" },
{ name: "i5", text: "var i5: c5" },
{ name: "i5_c", text: "var i5_c: typeof c5" },
{ name: "c6", text: "class c6", documentation: "class with statics and constructor" },
{ name: "i6", text: "var i6: c6" },
{ name: "i6_c", text: "var i6_c: typeof c6" },
],
});
verify.signatureHelp({
marker: "27",
docComment: "constructor for a",
parameterDocComment: "this is my a",
tags: [{ name: "param", text: "a this is my a" }],
});
verify.quickInfos({
28: ["constructor c2(): c2", "This is class c2 without constructor"],
29: ["constructor c3(): c3", "Constructor comment"],
30: ["constructor c4(): c4", "Constructor comment"],
31: ["constructor c5(): c5", "Class with statics"],
32: ["constructor c6(): c6", "constructor comment"],
33: ["constructor m.m2.c1(): m.m2.c1", "constructor comment"]
});
|