2014-07-13 01:04:16 +02:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
//// {| "itemName": "Windows", "kind": "module", "parentName": "" |}declare module Windows {
|
|
|
|
//// {| "itemName": "Foundation", "kind": "module", "parentName": "Windows" |}export module Foundation {
|
|
|
|
//// export var {| "itemName": "A", "kind": "var" |}A;
|
|
|
|
//// {| "itemName": "Test", "kind": "class" |}export class Test {
|
|
|
|
//// {| "itemName": "wow", "kind": "method" |}public wow();
|
|
|
|
//// }
|
|
|
|
//// }
|
|
|
|
//// }
|
|
|
|
////
|
|
|
|
//// {| "itemName": "Windows", "kind": "module", "parentName": "", "isAdditionalRange": true |}declare module Windows {
|
|
|
|
//// {| "itemName": "Foundation", "kind": "module", "parentName": "Windows", "isAdditionalRange": true |}export module Foundation {
|
|
|
|
//// export var {| "itemName": "B", "kind": "var" |}B;
|
|
|
|
//// {| "itemName": "Test", "kind": "module" |}export module Test {
|
|
|
|
//// {| "itemName": "Boom", "kind": "function" |}export function Boom(): number;
|
|
|
|
//// }
|
|
|
|
//// }
|
|
|
|
//// }
|
|
|
|
////
|
|
|
|
//// {| "itemName": "ABC", "kind": "class", "parentName": "" |}class ABC {
|
|
|
|
//// {| "itemName": "foo", "kind": "method" |}public foo() {
|
|
|
|
//// return 3;
|
|
|
|
//// }
|
|
|
|
//// }
|
|
|
|
////
|
|
|
|
//// {| "itemName": "ABC", "kind": "module", "parentName": "" |}module ABC {
|
|
|
|
//// export var {| "itemName": "x", "kind": "var" |}x = 3;
|
|
|
|
//// }
|
2014-08-01 22:05:23 +02:00
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
test.markers().forEach(marker => {
|
|
|
|
if (marker.data) {
|
|
|
|
verify.getScriptLexicalStructureListContains(
|
|
|
|
marker.data.itemName,
|
|
|
|
marker.data.kind,
|
|
|
|
marker.fileName,
|
|
|
|
marker.data.parentName,
|
|
|
|
marker.data.isAdditionalRange,
|
|
|
|
marker.position);
|
|
|
|
}
|
|
|
|
});
|
2014-09-18 03:12:16 +02:00
|
|
|
verify.getScriptLexicalStructureListCount(12);
|