TypeScript/tests/cases/fourslash/navigationItemsInConstructorsExactMatch.ts
Andy efc1b7df08
More thoroughly test navigateTo (#25239)
* More thoroughly test navigateTo

* Fix #25233 and #25237

* Update API (#24966)
2018-07-02 19:25:27 -07:00

21 lines
868 B
TypeScript

/// <reference path="fourslash.ts"/>
// @noLib: true
////class Test {
//// [|private search1: number;|]
//// constructor([|public search2: boolean|], [|readonly search3: string|], search4: string) {
//// }
////}
// Search for properties defined in the constructor, but not other constructor paramters
const [r0, r1, r2] = test.ranges();
verify.navigateTo({
pattern: "search",
expected: [
{ name: "search1", matchKind: "prefix", kind: "property", kindModifiers: "private", range: r0, containerName: "Test", containerKind: "class" },
{ name: "search2", matchKind: "prefix", kind: "property", kindModifiers: "public", range: r1, containerName: "Test", containerKind: "class" },
{ name: "search3", matchKind: "prefix", kind: "property", range: r2, containerName: "Test", containerKind: "class" },
],
});