-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jsdoc import type find-all-refs/rename
- Loading branch information
1 parent
0b0029d
commit 0a20ad3
Showing
7 changed files
with
160 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
105 changes: 105 additions & 0 deletions
105
tests/baselines/reference/findAllRefsJsDocImportTypeTag.baseline.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
// === findAllReferences === | ||
// === /a.js === | ||
// /** | ||
// * <|@importType { [|{| defId: 0, isWriteAccess: true |}A|] } from "./b"; | ||
// |>*/ | ||
// | ||
// /** | ||
// * @param { [|{| defId: 0 |}A|]/*FIND ALL REFS*/ } a | ||
// */ | ||
// function f(a) {} | ||
|
||
// === /b.ts === | ||
// <|export interface [|{| defId: 1, isWriteAccess: true |}A|] { }|> | ||
|
||
// === Definitions === | ||
// === /a.js === | ||
// /** | ||
// * <|@importType { [|{| defId: 0 |}A|] } from "./b"; | ||
// |>*/ | ||
// | ||
// /** | ||
// * @param { A/*FIND ALL REFS*/ } a | ||
// */ | ||
// function f(a) {} | ||
|
||
// === /b.ts === | ||
// <|export interface [|{| defId: 1 |}A|] { }|> | ||
|
||
// === Details === | ||
[ | ||
{ | ||
"defId": 0, | ||
"containerKind": "", | ||
"containerName": "", | ||
"kind": "alias", | ||
"name": "(alias) interface A\nimport A", | ||
"displayParts": [ | ||
{ | ||
"text": "(", | ||
"kind": "punctuation" | ||
}, | ||
{ | ||
"text": "alias", | ||
"kind": "text" | ||
}, | ||
{ | ||
"text": ")", | ||
"kind": "punctuation" | ||
}, | ||
{ | ||
"text": " ", | ||
"kind": "space" | ||
}, | ||
{ | ||
"text": "interface", | ||
"kind": "keyword" | ||
}, | ||
{ | ||
"text": " ", | ||
"kind": "space" | ||
}, | ||
{ | ||
"text": "A", | ||
"kind": "aliasName" | ||
}, | ||
{ | ||
"text": "\n", | ||
"kind": "lineBreak" | ||
}, | ||
{ | ||
"text": "import", | ||
"kind": "keyword" | ||
}, | ||
{ | ||
"text": " ", | ||
"kind": "space" | ||
}, | ||
{ | ||
"text": "A", | ||
"kind": "aliasName" | ||
} | ||
] | ||
}, | ||
{ | ||
"defId": 1, | ||
"containerKind": "", | ||
"containerName": "", | ||
"kind": "interface", | ||
"name": "interface A", | ||
"displayParts": [ | ||
{ | ||
"text": "interface", | ||
"kind": "keyword" | ||
}, | ||
{ | ||
"text": " ", | ||
"kind": "space" | ||
}, | ||
{ | ||
"text": "A", | ||
"kind": "interfaceName" | ||
} | ||
] | ||
} | ||
] |
10 changes: 10 additions & 0 deletions
10
tests/baselines/reference/renameJsDocImportTypeTag.baseline.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// === findRenameLocations === | ||
// === /a.js === | ||
// /** | ||
// * <|@importType { /*START PREFIX*/A as [|ARENAME|] } from "./b"; | ||
// |>*/ | ||
// | ||
// /** | ||
// * @param { [|ARENAME|]/*RENAME*/ } a | ||
// */ | ||
// function f(a) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/// <reference path='fourslash.ts' /> | ||
|
||
// @allowJS: true | ||
// @checkJs: true | ||
|
||
// @Filename: /b.ts | ||
////export interface A { } | ||
|
||
// @Filename: /a.js | ||
/////** | ||
//// * @importType { A } from "./b"; | ||
//// */ | ||
//// | ||
/////** | ||
//// * @param { [|A/**/|] } a | ||
//// */ | ||
////function f(a) {} | ||
|
||
verify.baselineFindAllReferences(""); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/// <reference path='fourslash.ts' /> | ||
|
||
// @allowJS: true | ||
// @checkJs: true | ||
|
||
// @Filename: /b.ts | ||
////export interface A { } | ||
|
||
// @Filename: /a.js | ||
/////** | ||
//// * @importType { A } from "./b"; | ||
//// */ | ||
//// | ||
/////** | ||
//// * @param { [|A/**/|] } a | ||
//// */ | ||
////function f(a) {} | ||
|
||
verify.baselineRename(""); |