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
152 lines
2.8 KiB
Plaintext
152 lines
2.8 KiB
Plaintext
// === /b.js ===
|
|
// /** @type {import("[|./a|]")} */
|
|
// const x = 0;
|
|
// /** @type {import("./a").D} */
|
|
// const y = 0;
|
|
|
|
// === /a.js ===
|
|
// module.exports = class /*FIND ALL REFS*/[|C|] {};
|
|
// module.exports.D = class D {};
|
|
|
|
[
|
|
{
|
|
"definition": {
|
|
"containerKind": "",
|
|
"containerName": "",
|
|
"fileName": "/a.js",
|
|
"kind": "local class",
|
|
"name": "(local class) C",
|
|
"textSpan": {
|
|
"start": 23,
|
|
"length": 1
|
|
},
|
|
"displayParts": [
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": "local class",
|
|
"kind": "text"
|
|
},
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "C",
|
|
"kind": "className"
|
|
}
|
|
],
|
|
"contextSpan": {
|
|
"start": 17,
|
|
"length": 10
|
|
}
|
|
},
|
|
"references": [
|
|
{
|
|
"textSpan": {
|
|
"start": 23,
|
|
"length": 1
|
|
},
|
|
"fileName": "/a.js",
|
|
"contextSpan": {
|
|
"start": 17,
|
|
"length": 10
|
|
},
|
|
"isWriteAccess": true,
|
|
"isDefinition": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"definition": {
|
|
"containerKind": "",
|
|
"containerName": "",
|
|
"fileName": "/a.js",
|
|
"kind": "alias",
|
|
"name": "(alias) (local class) export=\nimport export=",
|
|
"textSpan": {
|
|
"start": 0,
|
|
"length": 27
|
|
},
|
|
"displayParts": [
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": "alias",
|
|
"kind": "text"
|
|
},
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": "local class",
|
|
"kind": "text"
|
|
},
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "export=",
|
|
"kind": "aliasName"
|
|
},
|
|
{
|
|
"text": "\n",
|
|
"kind": "lineBreak"
|
|
},
|
|
{
|
|
"text": "import",
|
|
"kind": "keyword"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "export=",
|
|
"kind": "aliasName"
|
|
}
|
|
],
|
|
"contextSpan": {
|
|
"start": 0,
|
|
"length": 28
|
|
}
|
|
},
|
|
"references": [
|
|
{
|
|
"textSpan": {
|
|
"start": 19,
|
|
"length": 3
|
|
},
|
|
"fileName": "/b.js",
|
|
"contextSpan": {
|
|
"start": 4,
|
|
"length": 22
|
|
},
|
|
"isWriteAccess": false,
|
|
"isDefinition": false
|
|
}
|
|
]
|
|
}
|
|
] |