-
Notifications
You must be signed in to change notification settings - Fork 12.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add jsdoc import type tag go to definition tests
- Loading branch information
1 parent
fc4ac15
commit df23ce3
Showing
16 changed files
with
555 additions
and
0 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
17 changes: 17 additions & 0 deletions
17
tests/baselines/reference/goToDefinitionJsDocImportTypeTag1.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,17 @@ | ||
// === goToDefinition === | ||
// === /b.ts === | ||
// [||]export interface A { } | ||
|
||
// === /a.js === | ||
// /** | ||
// * @importType { A } from [|"./b/*GOTO DEF*/"|] | ||
// */ | ||
|
||
// === Details === | ||
[ | ||
{ | ||
"kind": "script", | ||
"name": "./b", | ||
"unverified": false | ||
} | ||
] |
5 changes: 5 additions & 0 deletions
5
tests/baselines/reference/goToDefinitionJsDocImportTypeTag2.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,5 @@ | ||
// === goToDefinition === | ||
// === /a.js === | ||
// /** | ||
// * @importType { A } from/*GOTO DEF*/ "./b" | ||
// */ |
5 changes: 5 additions & 0 deletions
5
tests/baselines/reference/goToDefinitionJsDocImportTypeTag3.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,5 @@ | ||
// === goToDefinition === | ||
// === /a.js === | ||
// /** | ||
// * @importType { A } from /*GOTO DEF*/ "./b"; | ||
// */ |
20 changes: 20 additions & 0 deletions
20
tests/baselines/reference/goToDefinitionJsDocImportTypeTag4.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,20 @@ | ||
// === goToDefinition === | ||
// === /b.ts === | ||
// <|export interface [|A|] { }|> | ||
|
||
// === /a.js === | ||
// /** | ||
// * @importType { [|A|]/*GOTO DEF*/ } from "./b"; | ||
// */ | ||
|
||
// === Details === | ||
[ | ||
{ | ||
"kind": "interface", | ||
"name": "A", | ||
"containerName": "\"/b\"", | ||
"isLocal": false, | ||
"isAmbient": false, | ||
"unverified": false | ||
} | ||
] |
25 changes: 25 additions & 0 deletions
25
tests/baselines/reference/goToDefinitionJsDocImportTypeTag5.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,25 @@ | ||
// === goToDefinition === | ||
// === /b.ts === | ||
// <|export interface [|A|] { }|> | ||
|
||
// === /a.js === | ||
// /** | ||
// * @importType { A } from "./b"; | ||
// */ | ||
// | ||
// /** | ||
// * @param { [|A|]/*GOTO DEF*/ } a | ||
// */ | ||
// function f(a) {} | ||
|
||
// === Details === | ||
[ | ||
{ | ||
"kind": "interface", | ||
"name": "A", | ||
"containerName": "\"/b\"", | ||
"isLocal": false, | ||
"isAmbient": false, | ||
"unverified": false | ||
} | ||
] |
Oops, something went wrong.