2015-03-02 23:41:44 +01:00
|
|
|
/// <reference path="fourslash.ts"/>
|
|
|
|
|
2018-07-03 04:25:27 +02:00
|
|
|
// @noLib: true
|
|
|
|
|
2015-03-02 23:41:44 +01:00
|
|
|
////class Test {
|
2018-07-03 04:25:27 +02:00
|
|
|
//// [|private search1: number;|]
|
|
|
|
//// constructor([|public search2: boolean|], [|readonly search3: string|], search4: string) {
|
2015-03-02 23:41:44 +01:00
|
|
|
//// }
|
|
|
|
////}
|
|
|
|
|
|
|
|
// Search for properties defined in the constructor, but not other constructor paramters
|
2018-07-03 04:25:27 +02:00
|
|
|
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" },
|
|
|
|
],
|
|
|
|
});
|