TypeScript/tests/cases/fourslash/findAllRefsWithLeadingUnderscoreNames4.ts
Andy Hanson 8515f7e2b5 Change find-all-references tests to test for groups
* Also always test for isWriteAccess and isDefinition
2017-01-31 06:59:16 -08:00

17 lines
520 B
TypeScript

/// <reference path='fourslash.ts'/>
////class Foo {
//// public [|{| "isWriteAccess": true, "isDefinition": true |}____bar|]() { return 0; }
////}
////
////var x: Foo;
////x.[|____bar|];
const ranges = test.ranges();
const [r0, r1] = ranges;
verify.referenceGroups(r0, [{ definition: "(method) Foo.____bar(): number", ranges }]);
verify.referenceGroups(r1, [
{ definition: "(method) Foo.____bar(): number", ranges: [r0] },
{ definition: "(method) Foo.____bar(): number", ranges: [r1] }
]);