|
| 1 | +/// <reference path='fourslash.ts'/> |
| 2 | + |
| 3 | +// @Filename: quickInfoJsDocTagsFunctionOverload.ts |
| 4 | +////declare function /*1*/foo(): void; |
| 5 | +//// |
| 6 | +/////** |
| 7 | +//// * @tag Tag text |
| 8 | +//// */ |
| 9 | +////declare function /*2*/foo(x: number): void |
| 10 | + |
| 11 | +goTo.marker("1"); |
| 12 | +verify.verifyQuickInfoDisplayParts( |
| 13 | + "function", |
| 14 | + "declare", |
| 15 | + { start: 17, length: 3 }, |
| 16 | + [ |
| 17 | + {text:"function",kind:"keyword"}, |
| 18 | + {text:" ",kind:"space"}, |
| 19 | + {text:"foo",kind:"functionName"}, |
| 20 | + {text:"(",kind:"punctuation"}, |
| 21 | + {text:")",kind:"punctuation"}, |
| 22 | + {text:":",kind:"punctuation"}, |
| 23 | + {text:" ",kind:"space"}, |
| 24 | + {text:"void",kind:"keyword"}, |
| 25 | + {text:" ",kind:"space"}, |
| 26 | + {text:"(",kind:"punctuation"}, |
| 27 | + {text:"+",kind:"operator"}, |
| 28 | + {text:"1",kind:"numericLiteral"}, |
| 29 | + {text:" ",kind:"space"}, |
| 30 | + {text:"overload",kind:"text"}, |
| 31 | + {text:")",kind:"punctuation"} |
| 32 | + ], |
| 33 | + []); |
| 34 | + |
| 35 | +goTo.marker("2"); |
| 36 | +verify.verifyQuickInfoDisplayParts( |
| 37 | + "function", |
| 38 | + "declare", |
| 39 | + { start: 73, length: 3 }, |
| 40 | + [ |
| 41 | + {text:"function",kind:"keyword"}, |
| 42 | + {text:" ",kind:"space"}, |
| 43 | + {text:"foo",kind:"functionName"}, |
| 44 | + {text:"(",kind:"punctuation"}, |
| 45 | + {text:"x",kind:"parameterName"}, |
| 46 | + {text:":",kind:"punctuation"}, |
| 47 | + {text:" ",kind:"space"}, |
| 48 | + {text:"number",kind:"keyword"}, |
| 49 | + {text:")",kind:"punctuation"}, |
| 50 | + {text:":",kind:"punctuation"}, |
| 51 | + {text:" ",kind:"space"}, |
| 52 | + {text:"void",kind:"keyword"}, |
| 53 | + {text:" ",kind:"space"}, |
| 54 | + {text:"(",kind:"punctuation"}, |
| 55 | + {text:"+",kind:"operator"}, |
| 56 | + {text:"1",kind:"numericLiteral"}, |
| 57 | + {text:" ",kind:"space"}, |
| 58 | + {text:"overload",kind:"text"}, |
| 59 | + {text:")",kind:"punctuation"} |
| 60 | + ], |
| 61 | + [], |
| 62 | + [{ name: "tag", text: "Tag text" }]); |
0 commit comments