TypeScript/tests/cases/fourslash/renameCommentsAndStrings4.ts

17 lines
554 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";
//// `Foo [|Bar|] Baz.`;
//// {
//// const Bar = 0;
//// `[|Bar|] ba ${Bar} bara [|Bar|] berbobo ${Bar} araura [|Bar|] ara!`;
//// }
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], { findInStrings: true, findInComments: true, ranges });