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

20 lines
607 B
TypeScript

/// <reference path='fourslash.ts' />
// @jsx: preserve
//@Filename: file.tsx
////declare module JSX {
//// interface Element {}
//// interface IntrinsicElements {
//// div: {};
//// }
////}
////[|class [|{| "contextRangeIndex": 0 |}MyClass|] {}|]
////
////[|<[|{| "contextRangeIndex": 2 |}MyClass|]></[|{| "contextRangeIndex": 2 |}MyClass|]>|];
////[|<[|{| "contextRangeIndex": 5 |}MyClass|]/>|];
////
////[|<[|{| "contextRangeIndex": 7 |}div|]> </[|{| "contextRangeIndex": 7 |}div|]>|]
verify.noErrors();
verify.rangesWithSameTextAreRenameLocations("MyClass", "div");