mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
416 lines
6.2 KiB
Plaintext
416 lines
6.2 KiB
Plaintext
// === Inlay Hints ===
|
|
foo(1);
|
|
^
|
|
{
|
|
"position": {
|
|
"line": 1,
|
|
"character": 4
|
|
},
|
|
"label": [
|
|
{
|
|
"value": "v",
|
|
"location": {
|
|
"uri": "file:///inlayHintsInteractiveAnyParameter2.ts",
|
|
"range": {
|
|
"start": {
|
|
"line": 0,
|
|
"character": 14
|
|
},
|
|
"end": {
|
|
"line": 0,
|
|
"character": 15
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"value": ":"
|
|
}
|
|
],
|
|
"kind": 2,
|
|
"paddingRight": true
|
|
}
|
|
|
|
foo('');
|
|
^
|
|
{
|
|
"position": {
|
|
"line": 2,
|
|
"character": 4
|
|
},
|
|
"label": [
|
|
{
|
|
"value": "v",
|
|
"location": {
|
|
"uri": "file:///inlayHintsInteractiveAnyParameter2.ts",
|
|
"range": {
|
|
"start": {
|
|
"line": 0,
|
|
"character": 14
|
|
},
|
|
"end": {
|
|
"line": 0,
|
|
"character": 15
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"value": ":"
|
|
}
|
|
],
|
|
"kind": 2,
|
|
"paddingRight": true
|
|
}
|
|
|
|
foo(true);
|
|
^
|
|
{
|
|
"position": {
|
|
"line": 3,
|
|
"character": 4
|
|
},
|
|
"label": [
|
|
{
|
|
"value": "v",
|
|
"location": {
|
|
"uri": "file:///inlayHintsInteractiveAnyParameter2.ts",
|
|
"range": {
|
|
"start": {
|
|
"line": 0,
|
|
"character": 14
|
|
},
|
|
"end": {
|
|
"line": 0,
|
|
"character": 15
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"value": ":"
|
|
}
|
|
],
|
|
"kind": 2,
|
|
"paddingRight": true
|
|
}
|
|
|
|
foo(() => 1);
|
|
^
|
|
{
|
|
"position": {
|
|
"line": 4,
|
|
"character": 4
|
|
},
|
|
"label": [
|
|
{
|
|
"value": "v",
|
|
"location": {
|
|
"uri": "file:///inlayHintsInteractiveAnyParameter2.ts",
|
|
"range": {
|
|
"start": {
|
|
"line": 0,
|
|
"character": 14
|
|
},
|
|
"end": {
|
|
"line": 0,
|
|
"character": 15
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"value": ":"
|
|
}
|
|
],
|
|
"kind": 2,
|
|
"paddingRight": true
|
|
}
|
|
|
|
foo(function () { return 1 });
|
|
^
|
|
{
|
|
"position": {
|
|
"line": 5,
|
|
"character": 4
|
|
},
|
|
"label": [
|
|
{
|
|
"value": "v",
|
|
"location": {
|
|
"uri": "file:///inlayHintsInteractiveAnyParameter2.ts",
|
|
"range": {
|
|
"start": {
|
|
"line": 0,
|
|
"character": 14
|
|
},
|
|
"end": {
|
|
"line": 0,
|
|
"character": 15
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"value": ":"
|
|
}
|
|
],
|
|
"kind": 2,
|
|
"paddingRight": true
|
|
}
|
|
|
|
foo({});
|
|
^
|
|
{
|
|
"position": {
|
|
"line": 6,
|
|
"character": 4
|
|
},
|
|
"label": [
|
|
{
|
|
"value": "v",
|
|
"location": {
|
|
"uri": "file:///inlayHintsInteractiveAnyParameter2.ts",
|
|
"range": {
|
|
"start": {
|
|
"line": 0,
|
|
"character": 14
|
|
},
|
|
"end": {
|
|
"line": 0,
|
|
"character": 15
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"value": ":"
|
|
}
|
|
],
|
|
"kind": 2,
|
|
"paddingRight": true
|
|
}
|
|
|
|
foo({ a: 1 });
|
|
^
|
|
{
|
|
"position": {
|
|
"line": 7,
|
|
"character": 4
|
|
},
|
|
"label": [
|
|
{
|
|
"value": "v",
|
|
"location": {
|
|
"uri": "file:///inlayHintsInteractiveAnyParameter2.ts",
|
|
"range": {
|
|
"start": {
|
|
"line": 0,
|
|
"character": 14
|
|
},
|
|
"end": {
|
|
"line": 0,
|
|
"character": 15
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"value": ":"
|
|
}
|
|
],
|
|
"kind": 2,
|
|
"paddingRight": true
|
|
}
|
|
|
|
foo([]);
|
|
^
|
|
{
|
|
"position": {
|
|
"line": 8,
|
|
"character": 4
|
|
},
|
|
"label": [
|
|
{
|
|
"value": "v",
|
|
"location": {
|
|
"uri": "file:///inlayHintsInteractiveAnyParameter2.ts",
|
|
"range": {
|
|
"start": {
|
|
"line": 0,
|
|
"character": 14
|
|
},
|
|
"end": {
|
|
"line": 0,
|
|
"character": 15
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"value": ":"
|
|
}
|
|
],
|
|
"kind": 2,
|
|
"paddingRight": true
|
|
}
|
|
|
|
foo([1]);
|
|
^
|
|
{
|
|
"position": {
|
|
"line": 9,
|
|
"character": 4
|
|
},
|
|
"label": [
|
|
{
|
|
"value": "v",
|
|
"location": {
|
|
"uri": "file:///inlayHintsInteractiveAnyParameter2.ts",
|
|
"range": {
|
|
"start": {
|
|
"line": 0,
|
|
"character": 14
|
|
},
|
|
"end": {
|
|
"line": 0,
|
|
"character": 15
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"value": ":"
|
|
}
|
|
],
|
|
"kind": 2,
|
|
"paddingRight": true
|
|
}
|
|
|
|
foo(foo);
|
|
^
|
|
{
|
|
"position": {
|
|
"line": 10,
|
|
"character": 4
|
|
},
|
|
"label": [
|
|
{
|
|
"value": "v",
|
|
"location": {
|
|
"uri": "file:///inlayHintsInteractiveAnyParameter2.ts",
|
|
"range": {
|
|
"start": {
|
|
"line": 0,
|
|
"character": 14
|
|
},
|
|
"end": {
|
|
"line": 0,
|
|
"character": 15
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"value": ":"
|
|
}
|
|
],
|
|
"kind": 2,
|
|
"paddingRight": true
|
|
}
|
|
|
|
foo((1));
|
|
^
|
|
{
|
|
"position": {
|
|
"line": 11,
|
|
"character": 4
|
|
},
|
|
"label": [
|
|
{
|
|
"value": "v",
|
|
"location": {
|
|
"uri": "file:///inlayHintsInteractiveAnyParameter2.ts",
|
|
"range": {
|
|
"start": {
|
|
"line": 0,
|
|
"character": 14
|
|
},
|
|
"end": {
|
|
"line": 0,
|
|
"character": 15
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"value": ":"
|
|
}
|
|
],
|
|
"kind": 2,
|
|
"paddingRight": true
|
|
}
|
|
|
|
foo(foo(1));
|
|
^
|
|
{
|
|
"position": {
|
|
"line": 12,
|
|
"character": 4
|
|
},
|
|
"label": [
|
|
{
|
|
"value": "v",
|
|
"location": {
|
|
"uri": "file:///inlayHintsInteractiveAnyParameter2.ts",
|
|
"range": {
|
|
"start": {
|
|
"line": 0,
|
|
"character": 14
|
|
},
|
|
"end": {
|
|
"line": 0,
|
|
"character": 15
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"value": ":"
|
|
}
|
|
],
|
|
"kind": 2,
|
|
"paddingRight": true
|
|
}
|
|
|
|
foo(foo(1));
|
|
^
|
|
{
|
|
"position": {
|
|
"line": 12,
|
|
"character": 8
|
|
},
|
|
"label": [
|
|
{
|
|
"value": "v",
|
|
"location": {
|
|
"uri": "file:///inlayHintsInteractiveAnyParameter2.ts",
|
|
"range": {
|
|
"start": {
|
|
"line": 0,
|
|
"character": 14
|
|
},
|
|
"end": {
|
|
"line": 0,
|
|
"character": 15
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"value": ":"
|
|
}
|
|
],
|
|
"kind": 2,
|
|
"paddingRight": true
|
|
} |