File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed
testdata/baselines/reference/fourslash/codeLenses Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ // === Code Lenses ===
2+ // === /codeLensOverloads01.ts ===
3+ // export function /*CODELENS: 3 references*/foo(x: number): number;
4+ // export function foo(x: string): string;
5+ // export function foo(x: string | number): string | number {
6+ // return x;
7+ // }
8+ //
9+ // [|foo|](1);
10+ //
11+ // [|foo|]("hello");
12+ //
13+ // // This one isn't expected to match any overload,
14+ // // but is really just here to test how it affects how code lens.
15+ // [|foo|](Math.random() ? 1 : "hello");
16+ //
17+
18+
19+
20+ // === Code Lenses ===
21+ // === /codeLensOverloads01.ts ===
22+ // export function foo(x: number): number;
23+ // export function /*CODELENS: 3 references*/foo(x: string): string;
24+ // export function foo(x: string | number): string | number {
25+ // return x;
26+ // }
27+ //
28+ // [|foo|](1);
29+ //
30+ // [|foo|]("hello");
31+ //
32+ // // This one isn't expected to match any overload,
33+ // // but is really just here to test how it affects how code lens.
34+ // [|foo|](Math.random() ? 1 : "hello");
35+ //
36+
37+
38+
39+ // === Code Lenses ===
40+ // === /codeLensOverloads01.ts ===
41+ // export function foo(x: number): number;
42+ // export function foo(x: string): string;
43+ // export function /*CODELENS: 3 references*/foo(x: string | number): string | number {
44+ // return x;
45+ // }
46+ //
47+ // [|foo|](1);
48+ //
49+ // [|foo|]("hello");
50+ //
51+ // // This one isn't expected to match any overload,
52+ // // but is really just here to test how it affects how code lens.
53+ // [|foo|](Math.random() ? 1 : "hello");
54+ //
You can’t perform that action at this time.
0 commit comments