mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
e0069505b9
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: jakebailey <[email protected]>
88 lines
2.0 KiB
Plaintext
88 lines
2.0 KiB
Plaintext
// === QuickInfo ===
|
|
=== /destructuredWithOwnJSDoc.ts ===
|
|
//
|
|
// interface Foo {
|
|
// /** This is bar from the interface */
|
|
// bar: string;
|
|
// /** This is baz from the interface */
|
|
// baz: number;
|
|
// }
|
|
//
|
|
// declare var foo: Foo;
|
|
//
|
|
// /** Comment on the variable statement. */
|
|
// const {
|
|
// /** Comment on bar destructuring. */ bar,
|
|
// ^^^
|
|
// | ----------------------------------------------------------------------
|
|
// | ```typescript
|
|
// | const bar: string
|
|
// | ```
|
|
// | This is bar from the interface
|
|
// | ----------------------------------------------------------------------
|
|
// /** Comment on baz destructuring. */ baz
|
|
// ^^^
|
|
// | ----------------------------------------------------------------------
|
|
// | ```typescript
|
|
// | const baz: number
|
|
// | ```
|
|
// | This is baz from the interface
|
|
// | ----------------------------------------------------------------------
|
|
// } = foo;
|
|
//
|
|
[
|
|
{
|
|
"marker": {
|
|
"Position": 252,
|
|
"LSPosition": {
|
|
"line": 12,
|
|
"character": 41
|
|
},
|
|
"Name": "1",
|
|
"Data": {}
|
|
},
|
|
"item": {
|
|
"contents": {
|
|
"kind": "markdown",
|
|
"value": "```typescript\nconst bar: string\n```\nThis is bar from the interface"
|
|
},
|
|
"range": {
|
|
"start": {
|
|
"line": 12,
|
|
"character": 41
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"character": 44
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"Position": 298,
|
|
"LSPosition": {
|
|
"line": 13,
|
|
"character": 41
|
|
},
|
|
"Name": "2",
|
|
"Data": {}
|
|
},
|
|
"item": {
|
|
"contents": {
|
|
"kind": "markdown",
|
|
"value": "```typescript\nconst baz: number\n```\nThis is baz from the interface"
|
|
},
|
|
"range": {
|
|
"start": {
|
|
"line": 13,
|
|
"character": 41
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"character": 44
|
|
}
|
|
}
|
|
}
|
|
}
|
|
] |