TypeScript/tests/cases/fourslash/referencesForStringLiteralPropertyNames2.ts

18 lines
575 B
TypeScript
Raw Normal View History

2015-03-02 23:41:44 +01:00
/// <reference path='fourslash.ts'/>
2014-08-21 09:13:29 +02:00
////class Foo {
//// "[|{| "isWriteAccess": true, "isDefinition": true |}blah|]"() { return 0; }
2014-08-21 09:13:29 +02:00
////}
////
////var x: Foo;
////x.[|blah|];
2015-03-02 23:41:44 +01:00
//verify.singleReferenceGroup('(method) Foo["blah"](): number');
const ranges = test.ranges();
const [r0, r1] = ranges;
verify.referenceGroups(r0, [{ definition: '(method) Foo["blah"](): number', ranges }]);
verify.referenceGroups(r1, [
{ definition: '(method) Foo["blah"](): number', ranges: [r0] },
{ definition: '(method) Foo["blah"](): number', ranges: [r1] }
]);