Files
tsgo/testdata/baselines/reference/fourslash/quickInfo/quickInfoForArgumentsPropertyNameInJsMode1.baseline
e0069505b9 Use typescript instead of tsx for hover code block language (#3458)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: jakebailey <[email protected]>
2026-04-22 17:14:11 +00:00

81 lines
1.5 KiB
Plaintext

// === QuickInfo ===
=== /a.js ===
// const foo = {
// f1: (params) => { }
// }
//
// function f2(x) {
// ^^
// | ----------------------------------------------------------------------
// | ```typescript
// | function f2(x: any): void
// | ```
// |
// | ----------------------------------------------------------------------
// foo.f1({ x, arguments: [] });
// }
//
// f2('');
// ^^
// | ----------------------------------------------------------------------
// | ```typescript
// | function f2(x: any): void
// | ```
// |
// | ----------------------------------------------------------------------
[
{
"marker": {
"Position": 50,
"LSPosition": {
"line": 4,
"character": 9
},
"Name": "1",
"Data": {}
},
"item": {
"contents": {
"kind": "markdown",
"value": "```typescript\nfunction f2(x: any): void\n```\n"
},
"range": {
"start": {
"line": 4,
"character": 9
},
"end": {
"line": 4,
"character": 11
}
}
}
},
{
"marker": {
"Position": 94,
"LSPosition": {
"line": 8,
"character": 0
},
"Name": "2",
"Data": {}
},
"item": {
"contents": {
"kind": "markdown",
"value": "```typescript\nfunction f2(x: any): void\n```\n"
},
"range": {
"start": {
"line": 8,
"character": 0
},
"end": {
"line": 8,
"character": 2
}
}
}
}
]