2014-07-13 01:04:16 +02:00
|
|
|
/// <reference path="fourslash.ts"/>
|
|
|
|
// @Filename: scriptLexicalStructureItemsContainsNoAnonymouseFunctions_0.ts
|
|
|
|
/////*file1*/
|
|
|
|
////(function() {
|
|
|
|
//// // this should not be included
|
|
|
|
//// var x = 0;
|
|
|
|
////
|
|
|
|
//// // this should not be included either
|
|
|
|
//// function foo() {
|
|
|
|
////
|
|
|
|
//// }
|
|
|
|
////})();
|
|
|
|
////
|
|
|
|
// @Filename: scriptLexicalStructureItemsContainsNoAnonymouseFunctions_1.ts
|
|
|
|
/////*file2*/
|
|
|
|
////var x = function() {
|
|
|
|
//// // this should not be included
|
|
|
|
//// var x = 0;
|
|
|
|
////
|
|
|
|
//// // this should not be included either
|
|
|
|
//// function foo() {
|
|
|
|
////};
|
|
|
|
////
|
|
|
|
// @Filename: scriptLexicalStructureItemsContainsNoAnonymouseFunctions_2.ts
|
|
|
|
////// Named functions should still show up
|
|
|
|
/////*file3*/
|
|
|
|
////function foo() {
|
|
|
|
////}
|
|
|
|
////function bar() {
|
|
|
|
////}
|
2014-09-30 20:58:56 +02:00
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
goTo.marker("file1");
|
|
|
|
verify.getScriptLexicalStructureListCount(0);
|
|
|
|
|
|
|
|
goTo.marker("file2");
|
|
|
|
verify.getScriptLexicalStructureListContains("<global>", "module");
|
|
|
|
verify.getScriptLexicalStructureListContains("x", "var");
|
|
|
|
verify.getScriptLexicalStructureListCount(2);
|
|
|
|
|
|
|
|
goTo.marker("file3");
|
|
|
|
verify.getScriptLexicalStructureListContains("<global>", "module");
|
|
|
|
verify.getScriptLexicalStructureListContains("foo", "function");
|
|
|
|
verify.getScriptLexicalStructureListContains("bar", "function");
|
2014-10-06 23:22:08 +02:00
|
|
|
verify.getScriptLexicalStructureListCount(5);
|