dcc27ebaf2
* Revert "Revert "Editor support for link tag (#41877)" (#43302)"
This reverts commit 451d4354b9
.
* Fix parsing @link at end of comment
* Parse comments as string when no @link occurs
* fix lint
80 lines
1.5 KiB
Plaintext
80 lines
1.5 KiB
Plaintext
// === /a.js ===
|
|
// /*FIND ALL REFS*/[|module|].exports = class C {};
|
|
// module.exports.D = class D {};
|
|
|
|
// === /b.js ===
|
|
// /** @type {import("[|./a|]")} */
|
|
// const x = 0;
|
|
// /** @type {import("[|./a|]").D} */
|
|
// const y = 0;
|
|
|
|
[
|
|
{
|
|
"definition": {
|
|
"containerKind": "",
|
|
"containerName": "",
|
|
"fileName": "/a.js",
|
|
"kind": "module",
|
|
"name": "module \"/a\"",
|
|
"textSpan": {
|
|
"start": 0,
|
|
"length": 59
|
|
},
|
|
"displayParts": [
|
|
{
|
|
"text": "module",
|
|
"kind": "keyword"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "\"/a\"",
|
|
"kind": "stringLiteral"
|
|
}
|
|
]
|
|
},
|
|
"references": [
|
|
{
|
|
"textSpan": {
|
|
"start": 19,
|
|
"length": 3
|
|
},
|
|
"fileName": "/b.js",
|
|
"contextSpan": {
|
|
"start": 4,
|
|
"length": 22
|
|
},
|
|
"isWriteAccess": false,
|
|
"isDefinition": false
|
|
},
|
|
{
|
|
"textSpan": {
|
|
"start": 61,
|
|
"length": 3
|
|
},
|
|
"fileName": "/b.js",
|
|
"contextSpan": {
|
|
"start": 46,
|
|
"length": 24
|
|
},
|
|
"isWriteAccess": false,
|
|
"isDefinition": false
|
|
},
|
|
{
|
|
"textSpan": {
|
|
"start": 0,
|
|
"length": 6
|
|
},
|
|
"fileName": "/a.js",
|
|
"contextSpan": {
|
|
"start": 0,
|
|
"length": 28
|
|
},
|
|
"isWriteAccess": false,
|
|
"isDefinition": false
|
|
}
|
|
]
|
|
}
|
|
] |