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

12 lines
394 B
TypeScript

/// <reference path="../fourslash.ts"/>
///////<reference path="./Bar.ts" />
////[|function [|{| "contextRangeIndex": 0 |}Bar|]() {
//// // This is a reference to [|Bar|] in a comment.
//// "this is a reference to [|Bar|] in a string"
////}|]
const [rDef, ...ranges] = test.ranges();
verify.renameLocations(ranges[0], { findInStrings: true, findInComments: true, ranges });