-
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.
allow more keywords to return definitions
- Loading branch information
Showing
6 changed files
with
78 additions
and
29 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
20 changes: 17 additions & 3 deletions
20
tests/baselines/reference/goToDefinitionAwait3.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
16 changes: 14 additions & 2 deletions
16
tests/baselines/reference/goToDefinitionReturn5.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 |
---|---|---|
@@ -1,7 +1,19 @@ | ||
// === goToDefinition === | ||
// === /tests/cases/fourslash/goToDefinitionReturn5.ts === | ||
// function foo() { | ||
// <|function [|foo|]() { | ||
// class Foo { | ||
// static { /*GOTO DEF*/return; } | ||
// } | ||
// } | ||
// }|> | ||
|
||
// === Details === | ||
[ | ||
{ | ||
"kind": "function", | ||
"name": "foo", | ||
"containerName": "", | ||
"isLocal": false, | ||
"isAmbient": false, | ||
"unverified": false | ||
} | ||
] |
20 changes: 17 additions & 3 deletions
20
tests/baselines/reference/goToDefinitionYield3.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
16 changes: 14 additions & 2 deletions
16
tests/baselines/reference/goToDefinitionYield4.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 |
---|---|---|
@@ -1,5 +1,17 @@ | ||
// === goToDefinition === | ||
// === /tests/cases/fourslash/goToDefinitionYield4.ts === | ||
// function* gen() { | ||
// class C { [/*GOTO DEF*/yield 10]() {} } | ||
// } | ||
// class C { <|[|[/*GOTO DEF*/yield 10]|]() {}|> } | ||
// } | ||
|
||
// === Details === | ||
[ | ||
{ | ||
"kind": "method", | ||
"name": "[yield 10]", | ||
"containerName": "C", | ||
"isLocal": true, | ||
"isAmbient": false, | ||
"unverified": false | ||
} | ||
] |