TypeScript/tests/cases/fourslash/renameForDefaultExport03.ts

22 lines
602 B
TypeScript
Raw Normal View History

2015-05-19 21:43:58 +02:00
/// <reference path='fourslash.ts'/>
2019-06-13 21:25:02 +02:00
////[|function /*1*/[|{| "contextRangeIndex": 0 |}f|]() {
2015-05-19 21:43:58 +02:00
//// return 100;
2019-05-31 23:40:59 +02:00
////}|]
2015-05-19 21:43:58 +02:00
////
2019-06-13 21:25:02 +02:00
////[|export default /*2*/[|{| "contextRangeIndex": 2 |}f|];|]
2015-05-19 21:43:58 +02:00
////
////var x: typeof /*3*/[|f|];
////
////var y = /*4*/[|f|]();
////
2015-05-21 21:28:02 +02:00
/////**
//// * Commenting [|{| "inComment": true |}f|]
2015-05-21 21:28:02 +02:00
//// */
2019-06-13 21:25:02 +02:00
////[|namespace /*5*/[|{| "contextRangeIndex": 7 |}f|] {
2015-05-19 21:43:58 +02:00
//// var local = 100;
2019-05-31 23:40:59 +02:00
////}|]
2015-05-19 21:43:58 +02:00
2019-05-31 23:40:59 +02:00
const ranges = test.rangesByText().get("f");
verify.renameLocations(ranges.filter(r => !(r.marker && r.marker.data.inComment)), { findInComments: true, ranges });