TypeScript/tests/cases/fourslash/renameForDefaultExport02.ts

16 lines
586 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
////[|export default function /*1*/[|{| "contextRangeIndex": 0 |}DefaultExportedFunction|]() {
2015-05-19 21:43:58 +02:00
//// return /*2*/[|DefaultExportedFunction|]
2019-05-31 23:40:59 +02:00
////}|]
2015-05-21 21:28:02 +02:00
/////**
//// * Commenting [|{| "inComment": true |}DefaultExportedFunction|]
2015-05-21 21:28:02 +02:00
//// */
2015-05-19 21:43:58 +02:00
////
////var x: typeof /*3*/[|DefaultExportedFunction|];
////
////var y = /*4*/[|DefaultExportedFunction|]();
2019-05-31 23:40:59 +02:00
const ranges = test.rangesByText().get("DefaultExportedFunction");
verify.renameLocations(ranges.filter(r => !(r.marker && r.marker.data.inComment)), { findInComments: true, ranges });