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 {
|
|
|
|
//// export class Point {
|
2018-07-03 04:25:27 +02:00
|
|
|
//// [|private originality = 0.0;|]
|
|
|
|
//// [|private distanceFromOrig = 0.0;|]
|
|
|
|
//// [|get distanceFarFarAway(distanceFarFarAwayParam: number): number {
|
|
|
|
//// var [|distanceFarFarAwayLocal|];
|
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
|
|
|
//// }
|
|
|
|
////}
|
|
|
|
////var pointsSquareBox = new Shapes.Point();
|
|
|
|
////function PointsFunc(): void {
|
|
|
|
//// var pointFuncLocal;
|
|
|
|
////}
|
2018-07-03 04:25:27 +02:00
|
|
|
////[|interface OriginI {
|
|
|
|
//// 123;
|
|
|
|
//// [|origin1;|]
|
|
|
|
//// [|public _distance(distanceParam): void;|]
|
|
|
|
////}|]
|
2015-03-02 23:41:44 +01:00
|
|
|
|
2018-07-03 04:25:27 +02:00
|
|
|
const [r0, r1, r2, r3, r4, r5, r6] = test.ranges();
|
|
|
|
verify.navigateTo(
|
|
|
|
{
|
|
|
|
pattern: "origin",
|
|
|
|
expected: [
|
|
|
|
{ name: "origin1", matchKind: "prefix", kind: "property", range: r5, containerName: "OriginI", containerKind: "interface" },
|
|
|
|
{ name: "originality", matchKind: "prefix", kind: "property", kindModifiers: "private", range: r0, containerName: "Point", containerKind: "class" },
|
|
|
|
{ name: "OriginI", matchKind: "prefix", isCaseSensitive: false, kind: "interface", range: r4 },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
pattern: "distance",
|
|
|
|
expected: [
|
|
|
|
{ name: "distanceFarFarAway", matchKind: "prefix", kind: "getter", range: r2, containerName: "Point", containerKind: "class" },
|
|
|
|
{ name: "distanceFarFarAwayLocal", matchKind: "prefix", kind: "var", range: r3, containerName: "distanceFarFarAway", containerKind: "getter" },
|
|
|
|
{ name: "distanceFromOrig", matchKind: "prefix", kind: "property", kindModifiers: "private", range: r1, containerName: "Point", containerKind: "class" },
|
|
|
|
{ name: "_distance", matchKind: "substring", kind: "method", kindModifiers: "public", range: r6, containerName: "OriginI", containerKind: "interface" },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
pattern: "mPointThatIJustInitiated wrongKeyWord",
|
|
|
|
expected: [],
|
|
|
|
},
|
|
|
|
);
|