TypeScript/tests/cases/fourslash/jsdocTypedefTagServices.ts
Andy 3cd9f3d2d4 Support services for @typedef (#16087)
* Support services for @typedef

* Ensure JSDocTypeReference has SemanticMeaning.Type

* Get SemanticMeaning right
2017-05-26 09:52:46 -07:00

29 lines
586 B
TypeScript

///<reference path="fourslash.ts" />
// @allowJs: true
// @Filename: a.js
/////**
//// * Doc comment
//// * @typedef /*def*/[|{| "isWriteAccess": true, "isDefinition": true |}Product|]
//// * @property {string} title
//// */
/////**
//// * @type {/*use*/[|Product|]}
//// */
////const product = null;
const desc = `type Product = {
title: string;
}`;
verify.quickInfoAt("use", desc, "Doc comment");
verify.goToDefinition("use", "def");
verify.rangesAreOccurrences();
verify.rangesAreDocumentHighlights();
verify.singleReferenceGroup(desc);
verify.rangesAreRenameLocations();