2017-12-18 19:54:22 +01:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
|
2019-06-13 21:25:02 +02:00
|
|
|
////[|class [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}C|] {
|
2017-12-18 19:54:22 +01:00
|
|
|
//// static s() {
|
|
|
|
//// [|this|];
|
|
|
|
//// }
|
2018-06-11 19:51:11 +02:00
|
|
|
//// static get f() {
|
|
|
|
//// return [|this|];
|
|
|
|
////
|
|
|
|
//// function inner() { this; }
|
|
|
|
//// class Inner { x = this; }
|
|
|
|
//// }
|
2019-06-06 18:49:31 +02:00
|
|
|
////}|]
|
2017-12-18 19:54:22 +01:00
|
|
|
|
2019-06-06 18:49:31 +02:00
|
|
|
const [r0Def, r0, r1, r2] = test.ranges();
|
2017-12-18 19:54:22 +01:00
|
|
|
verify.referenceGroups(r0, [{ definition: "class C", ranges: [r0, r1, r2] }]);
|
2018-03-02 19:23:08 +01:00
|
|
|
verify.singleReferenceGroup("this: typeof C", [r1, r2]);
|
|
|
|
|
|
|
|
verify.renameLocations(r0, [r0]);
|