TypeScript/tests/cases/fourslash/referencesForMergedDeclarations4.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

28 lines
866 B
TypeScript

/// <reference path='fourslash.ts'/>
// class and instantiated module
////class [|{| "isWriteAccess": true, "isDefinition": true |}testClass|] {
//// static staticMethod() { }
//// method() { }
////}
////
////module [|{| "isWriteAccess": true, "isDefinition": true |}testClass|] {
//// export interface Bar {
////
//// }
//// export var s = 0;
////}
////
////var c1: [|testClass|];
////var c2: [|testClass|].Bar;
////[|testClass|].staticMethod();
////[|testClass|].prototype.method();
////[|testClass|].bind(this);
////[|testClass|].s;
////new [|testClass|]();
const ranges = test.ranges();
verify.referenceGroups(ranges.slice(0, 8), [{ definition: "class testClass\nnamespace testClass", ranges }]);
verify.referenceGroups(ranges[8], [{ definition: "constructor testClass(): testClass\nnamespace testClass", ranges }]);