TypeScript/tests/cases/fourslash/referencesForStringLiteralPropertyNames.ts

14 lines
476 B
TypeScript
Raw Normal View History

/// <reference path='fourslash.ts'/>
////class Foo {
2019-06-13 21:25:02 +02:00
//// [|public "[|{| "isDefinition": true, "contextRangeIndex": 0 |}ss|]": any;|]
////}
////
////var x: Foo;
////x.[|ss|];
////x["[|ss|]"];
2019-06-13 21:25:02 +02:00
////x = { [|"[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 4 |}ss|]": 0|] };
////x = { [|[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 6 |}ss|]: 0|] };
verify.singleReferenceGroup('(property) Foo["ss"]: any', "ss");