mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
128 lines
1.9 KiB
Plaintext
128 lines
1.9 KiB
Plaintext
// === Inlay Hints ===
|
|
foo1(1)(2);
|
|
^
|
|
{
|
|
"position": {
|
|
"line": 5,
|
|
"character": 5
|
|
},
|
|
"label": [
|
|
{
|
|
"value": "a",
|
|
"location": {
|
|
"uri": "file:///inlayHintsInteractiveWithClosures.ts",
|
|
"range": {
|
|
"start": {
|
|
"line": 0,
|
|
"character": 14
|
|
},
|
|
"end": {
|
|
"line": 0,
|
|
"character": 15
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"value": ":"
|
|
}
|
|
],
|
|
"kind": 2,
|
|
"paddingRight": true
|
|
}
|
|
|
|
foo1(1)(2);
|
|
^
|
|
{
|
|
"position": {
|
|
"line": 5,
|
|
"character": 8
|
|
},
|
|
"label": [
|
|
{
|
|
"value": "b",
|
|
"location": {
|
|
"uri": "file:///inlayHintsInteractiveWithClosures.ts",
|
|
"range": {
|
|
"start": {
|
|
"line": 1,
|
|
"character": 12
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"character": 13
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"value": ":"
|
|
}
|
|
],
|
|
"kind": 2,
|
|
"paddingRight": true
|
|
}
|
|
|
|
return a(1) + 2
|
|
^
|
|
{
|
|
"position": {
|
|
"line": 7,
|
|
"character": 13
|
|
},
|
|
"label": [
|
|
{
|
|
"value": "b",
|
|
"location": {
|
|
"uri": "file:///inlayHintsInteractiveWithClosures.ts",
|
|
"range": {
|
|
"start": {
|
|
"line": 6,
|
|
"character": 18
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"character": 19
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"value": ":"
|
|
}
|
|
],
|
|
"kind": 2,
|
|
"paddingRight": true
|
|
}
|
|
|
|
foo2((c: number) => c + 1);
|
|
^
|
|
{
|
|
"position": {
|
|
"line": 9,
|
|
"character": 5
|
|
},
|
|
"label": [
|
|
{
|
|
"value": "a",
|
|
"location": {
|
|
"uri": "file:///inlayHintsInteractiveWithClosures.ts",
|
|
"range": {
|
|
"start": {
|
|
"line": 6,
|
|
"character": 14
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"character": 15
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"value": ":"
|
|
}
|
|
],
|
|
"kind": 2,
|
|
"paddingRight": true
|
|
} |