-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Organize/consolidate inlay hint tests (#55332)
- Loading branch information
1 parent
f5e73d7
commit 05cb53e
Showing
175 changed files
with
2,196 additions
and
1,784 deletions.
There are no files selected for viewing
File renamed without changes.
80 changes: 80 additions & 0 deletions
80
tests/baselines/reference/inlayHintsFunctionParameterTypes1.baseline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
const f1: F1 = (a, b) => { } | ||
^ | ||
{ | ||
"text": ": string", | ||
"position": 58, | ||
"kind": "Type", | ||
"whitespaceBefore": true | ||
} | ||
|
||
const f1: F1 = (a, b) => { } | ||
^ | ||
{ | ||
"text": ": number", | ||
"position": 61, | ||
"kind": "Type", | ||
"whitespaceBefore": true | ||
} | ||
|
||
const f2: F1 = (a, b: number) => { } | ||
^ | ||
{ | ||
"text": ": string", | ||
"position": 87, | ||
"kind": "Type", | ||
"whitespaceBefore": true | ||
} | ||
|
||
foo1((a) => { }) | ||
^ | ||
{ | ||
"text": ": string", | ||
"position": 157, | ||
"kind": "Type", | ||
"whitespaceBefore": true | ||
} | ||
|
||
foo2((a) => { }) | ||
^ | ||
{ | ||
"text": ": 2 | 3", | ||
"position": 232, | ||
"kind": "Type", | ||
"whitespaceBefore": true | ||
} | ||
|
||
foo3(a => { | ||
^ | ||
{ | ||
"text": ": (c: (d: 2 | 3) => void) => ...", | ||
"position": 331, | ||
"kind": "Type", | ||
"whitespaceBefore": true | ||
} | ||
|
||
a(d => {}) | ||
^ | ||
{ | ||
"text": ": 2 | 3", | ||
"position": 344, | ||
"kind": "Type", | ||
"whitespaceBefore": true | ||
} | ||
|
||
foo4(1, a => { }) | ||
^ | ||
{ | ||
"text": ": number", | ||
"position": 409, | ||
"kind": "Type", | ||
"whitespaceBefore": true | ||
} | ||
|
||
const foo5: F2 = (a) => { } | ||
^ | ||
{ | ||
"text": ": { a: number; b: string; }", | ||
"position": 492, | ||
"kind": "Type", | ||
"whitespaceBefore": true | ||
} |
File renamed without changes.
17 changes: 17 additions & 0 deletions
17
tests/baselines/reference/inlayHintsFunctionParameterTypes3.baseline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
bar: function (x?): void { | ||
^ | ||
{ | ||
"text": ": boolean", | ||
"position": 87, | ||
"kind": "Type", | ||
"whitespaceBefore": true | ||
} | ||
|
||
set foo(value) { this.#value = value; } | ||
^ | ||
{ | ||
"text": ": number", | ||
"position": 250, | ||
"kind": "Type", | ||
"whitespaceBefore": true | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
108 changes: 54 additions & 54 deletions
108
...reference/inlayHintsShouldWork64.baseline → ...nlayHintsInteractiveOverloadCall.baseline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.