TypeScript/tests/cases/fourslash/renameCommentsAndStrings3.ts

12 lines
367 B
TypeScript
Raw Normal View History

2014-10-04 00:59:20 +02:00
/// <reference path="fourslash.ts" />
///////<reference path="./Bar.ts" />
2014-10-04 00:59:20 +02:00
2019-06-13 21:25:02 +02:00
////[|function [|{| "contextRangeIndex": 0 |}Bar|]() {
2014-10-04 00:59:20 +02:00
//// // This is a reference to [|Bar|] in a comment.
//// "this is a reference to Bar in a string"
2019-06-03 23:13:47 +02:00
////}|]
2014-10-04 00:59:20 +02:00
2019-06-03 23:13:47 +02:00
const [rDef, ...ranges] = test.ranges();
verify.renameLocations(ranges[0], { findInComments: true, ranges });