2017-05-26 18:52:46 +02:00
|
|
|
///<reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
// @allowJs: true
|
|
|
|
// @Filename: a.js
|
|
|
|
|
|
|
|
/////**
|
|
|
|
//// * Doc comment
|
2019-06-13 21:25:02 +02:00
|
|
|
//// * [|@typedef /*def*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}Product|]
|
2017-05-26 18:52:46 +02:00
|
|
|
//// * @property {string} title
|
2019-06-04 21:24:34 +02:00
|
|
|
//// |]*/
|
2017-05-26 18:52:46 +02:00
|
|
|
|
|
|
|
/////**
|
2017-10-19 00:49:46 +02:00
|
|
|
//// * @type {[|/*use*/Product|]}
|
2017-05-26 18:52:46 +02:00
|
|
|
//// */
|
|
|
|
////const product = null;
|
|
|
|
|
|
|
|
const desc = `type Product = {
|
|
|
|
title: string;
|
|
|
|
}`;
|
|
|
|
|
2019-06-04 21:24:34 +02:00
|
|
|
const [r0Def, ...ranges] = test.ranges();
|
2017-05-26 18:52:46 +02:00
|
|
|
verify.quickInfoAt("use", desc, "Doc comment");
|
|
|
|
|
|
|
|
verify.goToDefinition("use", "def");
|
|
|
|
|
2019-06-04 21:24:34 +02:00
|
|
|
verify.rangesAreOccurrences(/*isWriteAccesss*/ undefined, ranges);
|
|
|
|
verify.rangesAreDocumentHighlights(ranges);
|
|
|
|
verify.singleReferenceGroup(desc, ranges);
|
|
|
|
verify.rangesAreRenameLocations(ranges);
|