2015-03-02 23:41:44 +01:00
|
|
|
/// <reference path="fourslash.ts"/>
|
|
|
|
|
|
|
|
/////// Module
|
2018-07-03 04:25:27 +02:00
|
|
|
////[|{| "name": "MyShapes", "kind": "module" |}module MyShapes {
|
2015-03-02 23:41:44 +01:00
|
|
|
////
|
|
|
|
//// // Class
|
2018-07-03 04:25:27 +02:00
|
|
|
//// [|{| "name": "MyPoint", "kind": "class", "kindModifiers": "export", "containerName": "MyShapes", "containerKind": "module" |}export class MyPoint {
|
2015-03-02 23:41:44 +01:00
|
|
|
//// // Instance member
|
2018-07-03 04:25:27 +02:00
|
|
|
//// [|{| "name": "MyoriginAttheHorizon", "kind": "property", "kindModifiers": "private", "containerName": "MyPoint", "containerKind": "class" |}private MyoriginAttheHorizon = 0.0;|]
|
2015-03-02 23:41:44 +01:00
|
|
|
////
|
|
|
|
//// // Getter
|
2018-07-03 04:25:27 +02:00
|
|
|
//// [|{| "name": "MydistanceFromOrigin", "kind": "getter", "containerName": "MyPoint", "containerKind": "class" |}get MydistanceFromOrigin(): number { return 0; }|]
|
|
|
|
//// }|]
|
|
|
|
////}|]
|
2015-03-02 23:41:44 +01:00
|
|
|
////
|
|
|
|
////// Local variables
|
2018-07-03 04:25:27 +02:00
|
|
|
////var [|{| "name": "MyXyz", "kind": "var" |}MyXyz = new Shapes.Point()|];
|
2015-03-02 23:41:44 +01:00
|
|
|
|
2018-07-03 04:25:27 +02:00
|
|
|
for (const range of test.ranges()) {
|
|
|
|
verify.navigateTo({
|
|
|
|
pattern: range.marker.data.name.slice(2),
|
|
|
|
expected: [{ ...range.marker.data, range, matchKind: "substring" }],
|
|
|
|
})
|
|
|
|
}
|