2016-05-13 17:26:41 +02:00
|
|
|
/// <reference path="fourslash.ts"/>
|
|
|
|
|
2018-07-03 04:25:27 +02:00
|
|
|
// @noLib: true
|
|
|
|
|
|
|
|
////[|{| "name": "A", "kind": "class" |}class A {}|]
|
|
|
|
////const [|{| "name": "B", "kind": "const" |}B = [|{| "name": "Cz", "kind": "class" |}class Cz {
|
2016-05-13 17:26:41 +02:00
|
|
|
//// public x;
|
2018-07-03 04:25:27 +02:00
|
|
|
////}|]|];
|
|
|
|
////[|{| "name": "D", "kind": "function" |}function D() {}|]
|
|
|
|
////const [|{| "name": "E", "kind": "const" |}E = [|{| "name": "F", "kind": "function" |}function F() {}|]|]
|
2016-05-16 15:41:39 +02:00
|
|
|
////console.log(function() {}, class {}); // Expression with no name should have no effect.
|
2018-07-03 04:25:27 +02:00
|
|
|
////console.log([|{| "name": "inner", "kind": "function" |}function inner() {}|]);
|
|
|
|
////String([|{| "name": "nn", "kind": "function" |}function nn() {
|
|
|
|
//// [|{| "name": "cls", "kind": "class", "containerName": "nn", "containerKind": "function" |}class cls {
|
|
|
|
//// [|{| "name": "prop", "kind": "property", "kindModifiers": "public", "containerName": "cls", "containerKind": "class" |}public prop;|]
|
|
|
|
//// }|]
|
|
|
|
////}|]));
|
2016-05-13 17:36:51 +02:00
|
|
|
|
2018-07-03 04:25:27 +02:00
|
|
|
for (const range of test.ranges()) {
|
|
|
|
verify.navigateTo({ pattern: range.marker.data.name, expected: [{ ...range.marker.data, range }] });
|
2016-05-13 19:23:38 +02:00
|
|
|
}
|