TypeScript/tests/cases/fourslash/jsDocSee4.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

27 lines
536 B
TypeScript

///<reference path="fourslash.ts" />
//// class [|/*def1*/A|] {
//// foo () { }
//// }
//// declare const [|/*def2*/a|]: A;
//// /**
//// * @see {/*use1*/[|A|]#foo}
//// */
//// const t1 = 1
//// /**
//// * @see {/*use2*/[|a|].foo()}
//// */
//// const t2 = 1
//// /**
//// * @see {@link /*use3*/[|a|].foo()}
//// */
//// const t3 = 1
goTo.marker("use1");
verify.goToDefinitionIs(["def1"]);
goTo.marker("use2");
verify.goToDefinitionIs(["def2"]);
goTo.marker("use3");
verify.goToDefinitionIs([]);