TypeScript/tests/cases/fourslash/jsDocSee1.ts
Wenlu Wang ee5f51bc0f
Add see tag support (#39760)
* Add see tag parser

* add baseline

* fix symbol resolve

* add more case

* fix unittests

* improve tests and parser

* accept baseline

* Adopt package-lock.json and npm ci

* Add a workflow to update package-lock.json daily

* Git ignore package-lock.json and forcibly update in workflow

* Update bot email address

* Delete extra npm update

* Update package-lock.json

* Add compactDisplay and signDisplay to NumberFormatOptions (#40039)

* Fix typo in (Readonly)Set.keys comment (fixes #40164) (#40176)

* fix(26325): use a unique name for reserved words in 'constructor like' function name (#39684)

* fix(25770): add diagnostic message for the possible mapped type used as an index (#39973)

* fix(31046): add new diagnostic message for incompatible constructor signature (#40073)

* Update package-lock.json

* Update package-lock.json

* Add rename support

* Accpet baseline

* wip

* fix anders

* Revert "fix anders"

This reverts commit b3178d4618.

* Fix call hierarchy item serialization and server tests (#40348)

* Avoid error

* accept baseline

* Add more tests

* Add signature name resolve

Co-authored-by: Andrew Casey <andrew.casey@microsoft.com>
Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com>
Co-authored-by: Neil Kistner <neil.kistner@gmail.com>
Co-authored-by: cherryblossom000 <31467609+cherryblossom000@users.noreply.github.com>
Co-authored-by: Alexander T <alexander.tarasyuk@outlook.com>
Co-authored-by: Erich Gamma <egamma@microsoft.com>
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
2020-09-09 10:45:09 -07:00

41 lines
819 B
TypeScript

///<reference path="fourslash.ts" />
//// interface [|/*def1*/Foo|] {
//// foo: string
//// }
//// namespace NS {
//// export interface [|/*def2*/Bar|] {
//// baz: Foo
//// }
//// }
//// /** @see {/*use1*/[|Foo|]} foooo*/
//// const a = ""
//// /** @see {NS./*use2*/[|Bar|]} ns.bar*/
//// const b = ""
//// /** @see /*use3*/[|Foo|] f1*/
//// const c = ""
//// /** @see NS./*use4*/[|Bar|] ns.bar*/
//// const [|/*def3*/d|] = ""
//// /** @see /*use5*/[|d|] dd*/
//// const e = ""
goTo.marker("use1");
verify.goToDefinitionIs("def1");
goTo.marker("use2");
verify.goToDefinitionIs("def2");
goTo.marker("use3");
verify.goToDefinitionIs("def1");
goTo.marker("use4");
verify.goToDefinitionIs("def2");
goTo.marker("use5");
verify.goToDefinitionIs("def3");