2015-03-02 23:41:44 +01:00
|
|
|
/// <reference path="fourslash.ts"/>
|
2018-07-03 04:25:27 +02:00
|
|
|
|
2015-03-02 23:41:44 +01:00
|
|
|
////module Shapes {
|
2018-07-03 04:25:27 +02:00
|
|
|
//// [|class Point {
|
|
|
|
//// [|private _origin = 0.0;|]
|
|
|
|
//// [|private distanceFromA = 0.0;|]
|
2015-03-02 23:41:44 +01:00
|
|
|
////
|
2018-07-03 04:25:27 +02:00
|
|
|
//// [|get distance1(distanceParam): number {
|
|
|
|
//// var [|distanceLocal|];
|
2015-03-02 23:41:44 +01:00
|
|
|
//// return 0;
|
2018-07-03 04:25:27 +02:00
|
|
|
//// }|]
|
|
|
|
//// }|]
|
2015-03-02 23:41:44 +01:00
|
|
|
////}
|
|
|
|
////
|
2018-07-03 04:25:27 +02:00
|
|
|
////var [|point = new Shapes.Point()|];
|
|
|
|
////[|function distance2(distanceParam1): void {
|
|
|
|
//// var [|distanceLocal1|];
|
|
|
|
////}|]
|
2015-06-10 00:49:21 +02:00
|
|
|
|
2018-07-03 04:25:27 +02:00
|
|
|
const [r_Point, r_origin, r_distanceFromA, r_distance1, r_distanceLocal, r_point, r_distance2, r_distanceLocal1] = test.ranges();
|
2015-03-02 23:41:44 +01:00
|
|
|
|
2018-07-03 04:25:27 +02:00
|
|
|
verify.navigateTo(
|
|
|
|
{
|
|
|
|
pattern: "point",
|
|
|
|
expected: [
|
|
|
|
{ name: "point", kind: "var", range: r_point },
|
|
|
|
{ name: "Point", kind: "class", isCaseSensitive: false, range: r_Point, containerName: "Shapes", containerKind: "module" },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
pattern: "distance",
|
|
|
|
expected: [
|
|
|
|
{ name: "distance1", matchKind: "prefix", kind: "getter", range: r_distance1, containerName: "Point", containerKind: "class" },
|
|
|
|
{ name: "distance2", matchKind: "prefix", kind: "function", range: r_distance2 },
|
|
|
|
{ name: "distanceFromA", matchKind: "prefix", kind: "property", kindModifiers: "private", range: r_distanceFromA, containerName: "Point", containerKind: "class" },
|
|
|
|
{ name: "distanceLocal", matchKind: "prefix", kind: "var", range: r_distanceLocal, containerName: "distance1", containerKind: "getter" },
|
|
|
|
{ name: "distanceLocal1", matchKind: "prefix", kind: "var", range: r_distanceLocal1, containerName: "distance2", containerKind: "function" },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
pattern: "origin",
|
|
|
|
expected: [
|
|
|
|
{ name: "_origin", matchKind: "substring", kind: "property", kindModifiers: "private", range: r_origin, containerName: "Point", containerKind: "class" },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
pattern: "square",
|
|
|
|
expected: [],
|
|
|
|
}
|
|
|
|
);
|