TypeScript/tests/cases/fourslash/server/jsdocCallbackTagRename01.ts
2019-06-13 12:41:21 -07:00

16 lines
438 B
TypeScript

/// <reference path="../fourslash.ts"/>
// @allowNonTsExtensions: true
// @Filename: jsDocCallback.js
////
//// /**
//// * [|@callback [|{| "contextRangeIndex": 0 |}FooCallback|]
//// * @param {string} eventName - Rename should work
//// |]*/
////
//// /** @type {/*1*/[|FooCallback|]} */
//// var t;
const [rDef, ...ranges] = test.ranges();
verify.renameLocations(ranges[0], { findInStrings: false, findInComments: true, ranges });