TypeScript/tests/cases/fourslash/findAllRefsWithLeadingUnderscoreNames3.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
515 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] }
]);