2014-09-18 02:40:32 +02:00
/// <reference path="fourslash.ts"/>
////{| "itemName": "<global>", "kind": "module" |}
////
////{| "itemName": "foo", "kind": "function" |}function foo() {
//// var x = 10;
//// {| "itemName": "bar", "kind": "function", "parentName": "foo" |}function bar() {
//// var y = 10;
//// {| "itemName": "biz", "kind": "function", "parentName": "bar" |}function biz() {
//// var z = 10;
//// }
//// }
////}
////
2014-09-19 21:28:49 +02:00
////{| "itemName": "baz", "kind": "function", "parentName": "<global>" |}function baz() {
2014-09-18 02:40:32 +02:00
//// var v = 10;
////}
test . markers ( ) . forEach ( ( marker ) = > {
verify . getScriptLexicalStructureListContains ( marker . data . itemName , marker . data . kind , marker . fileName , marker . data . parentName ) ;
} ) ;
2014-10-06 23:22:08 +02:00
verify . getScriptLexicalStructureListCount ( 8 ) ; // 4 functions + global. Note: there are 8 because of the functions show up at the top level and as child items.