tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(4,1): error TS6053: File 'tests/cases/conformance/parser/ecmascript5/typescript.ts' not found. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(8,19): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(8,32): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(8,38): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(25,15): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(25,28): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(25,54): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(29,18): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(29,31): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(41,26): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(41,39): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(41,45): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(77,26): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(77,119): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(94,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(95,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(96,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(97,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(98,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(99,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(100,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(101,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(102,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(103,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(104,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(105,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(106,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(107,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(108,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(109,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(110,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(111,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(112,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(113,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(114,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(115,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(116,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(117,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(118,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(119,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(120,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(121,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(122,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(123,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(124,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(125,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(126,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(127,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(128,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(129,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(130,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(131,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(132,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(133,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(134,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(135,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(136,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(137,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(138,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(139,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(140,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(141,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(142,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(143,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(144,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(145,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(146,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(147,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(148,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(149,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(150,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(151,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(152,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(153,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(154,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(155,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(156,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(157,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(158,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(159,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(160,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(161,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(162,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(163,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(164,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(165,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(166,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(167,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(168,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(169,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(170,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(171,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(172,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(173,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(174,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(175,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(176,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(177,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(178,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(179,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(180,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(181,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(182,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(183,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(184,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(185,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(186,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(187,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(188,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(189,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(190,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(191,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(192,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(193,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(194,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(195,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(196,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(197,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(198,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(199,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(200,34): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(203,33): error TS2304: Cannot find name 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(221,42): error TS2304: Cannot find name 'ASTList'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(221,59): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(225,50): error TS2304: Cannot find name 'ASTList'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(225,67): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(243,61): error TS2304: Cannot find name 'UnaryExpression'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(243,86): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(252,62): error TS2304: Cannot find name 'BinaryExpression'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(252,88): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(270,59): error TS2304: Cannot find name 'TypeReference'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(270,82): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(276,60): error TS2304: Cannot find name 'CallExpression'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(276,84): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(281,37): error TS2304: Cannot find name 'ASTList'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(288,63): error TS2304: Cannot find name 'ConditionalExpression'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(288,94): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(300,54): error TS2304: Cannot find name 'FuncDecl'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(300,72): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(302,32): error TS2304: Cannot find name 'Identifier'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(305,37): error TS2304: Cannot find name 'ASTList'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(311,31): error TS2304: Cannot find name 'ASTList'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(315,55): error TS2304: Cannot find name 'BoundDecl'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(315,74): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(317,30): error TS2304: Cannot find name 'Identifier'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(327,61): error TS2304: Cannot find name 'ReturnStatement'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(327,86): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(333,58): error TS2304: Cannot find name 'ForStatement'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(333,80): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(351,60): error TS2304: Cannot find name 'ForInStatement'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(351,84): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(361,57): error TS2304: Cannot find name 'IfStatement'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(361,78): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(371,60): error TS2304: Cannot find name 'WhileStatement'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(371,84): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(378,62): error TS2304: Cannot find name 'DoWhileStatement'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(378,88): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(385,51): error TS2304: Cannot find name 'Block'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(385,66): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(387,38): error TS2304: Cannot find name 'ASTList'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(391,59): error TS2304: Cannot find name 'CaseStatement'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(391,82): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(397,32): error TS2304: Cannot find name 'ASTList'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(401,61): error TS2304: Cannot find name 'SwitchStatement'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(401,86): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(407,36): error TS2304: Cannot find name 'ASTList'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(411,49): error TS2304: Cannot find name 'Try'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(411,62): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(417,54): error TS2304: Cannot find name 'TryCatch'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(417,72): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(419,35): error TS2304: Cannot find name 'Try'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(423,37): error TS2304: Cannot find name 'Catch'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(427,56): error TS2304: Cannot find name 'TryFinally'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(427,76): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(433,39): error TS2304: Cannot find name 'Finally'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(437,53): error TS2304: Cannot find name 'Finally'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(437,70): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(443,51): error TS2304: Cannot find name 'Catch'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(443,66): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(445,33): error TS2304: Cannot find name 'VarDecl'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(453,52): error TS2304: Cannot find name 'NamedDeclaration'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(453,78): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(454,28): error TS2304: Cannot find name 'Identifier'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(456,35): error TS2304: Cannot find name 'ASTList'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(461,55): error TS2304: Cannot find name 'TypeDeclaration'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(461,80): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(465,55): error TS2304: Cannot find name 'ClassDeclaration'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(465,81): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(469,39): error TS2304: Cannot find name 'ASTList'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(473,42): error TS2304: Cannot find name 'ASTList'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(477,52): error TS2304: Cannot find name 'Script'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(477,68): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(479,31): error TS2304: Cannot find name 'ASTList'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(483,54): error TS2304: Cannot find name 'InterfaceDeclaration'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(483,84): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(488,39): error TS2304: Cannot find name 'ASTList'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(492,42): error TS2304: Cannot find name 'ASTList'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(496,56): error TS2304: Cannot find name 'ModuleDeclaration'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(496,83): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(500,56): error TS2304: Cannot find name 'ImportDeclaration'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(500,83): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(502,30): error TS2304: Cannot find name 'Identifier'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(509,59): error TS2304: Cannot find name 'WithStatement'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(509,82): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(519,51): error TS2304: Cannot find name 'Label'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(519,66): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(523,62): error TS2304: Cannot find name 'LabeledStatement'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(523,88): error TS2304: Cannot find name 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts(524,30): error TS2304: Cannot find name 'ASTList'. ==== tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts (209 errors) ==== // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0. // See LICENSE.txt in the project root for complete license information. /// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS6053: File 'typescript.ts' not found. module TypeScript { export interface IAstWalker { walk(ast: AST, parent: AST): AST; ~~~ !!! error TS2304: Cannot find name 'AST'. ~~~ !!! error TS2304: Cannot find name 'AST'. ~~~ !!! error TS2304: Cannot find name 'AST'. options: AstWalkOptions; state: any; // user state object } export class AstWalkOptions { public goChildren = true; public goNextSibling = true; public reverseSiblings = false; // visit siblings in reverse execution order public stopWalk(stop:boolean = true) { this.goChildren = !stop; this.goNextSibling = !stop; } } export interface IAstWalkCallback { (ast: AST, parent: AST, walker: IAstWalker): AST; ~~~ !!! error TS2304: Cannot find name 'AST'. ~~~ !!! error TS2304: Cannot find name 'AST'. ~~~ !!! error TS2304: Cannot find name 'AST'. } export interface IAstWalkChildren { (preAst: AST, parent: AST, walker: IAstWalker): void; ~~~ !!! error TS2304: Cannot find name 'AST'. ~~~ !!! error TS2304: Cannot find name 'AST'. } class AstWalker implements IAstWalker { constructor ( private childrenWalkers: IAstWalkChildren[], private pre: IAstWalkCallback, private post: IAstWalkCallback, public options: AstWalkOptions, public state: any) { } public walk(ast: AST, parent: AST): AST { ~~~ !!! error TS2304: Cannot find name 'AST'. ~~~ !!! error TS2304: Cannot find name 'AST'. ~~~ !!! error TS2304: Cannot find name 'AST'. var preAst = this.pre(ast, parent, this); if (preAst === undefined) { preAst = ast; } if (this.options.goChildren) { var svGoSib = this.options.goNextSibling; this.options.goNextSibling = true; // Call the "walkChildren" function corresponding to "nodeType". this.childrenWalkers[ast.nodeType](ast, parent, this); this.options.goNextSibling = svGoSib; } else { // no go only applies to children of node issuing it this.options.goChildren = true; } if (this.post) { var postAst = this.post(preAst, parent, this); if (postAst === undefined) { postAst = preAst; } return postAst; } else { return preAst; } } } export class AstWalkerFactory { private childrenWalkers: IAstWalkChildren[] = []; constructor () { this.initChildrenWalkers(); } public walk(ast: AST, pre: IAstWalkCallback, post?: IAstWalkCallback, options?: AstWalkOptions, state?: any): AST { ~~~ !!! error TS2304: Cannot find name 'AST'. ~~~ !!! error TS2304: Cannot find name 'AST'. return this.getWalker(pre, post, options, state).walk(ast, null) } public getWalker(pre: IAstWalkCallback, post?: IAstWalkCallback, options?: AstWalkOptions, state?: any): IAstWalker { return this.getSlowWalker(pre, post, options, state); } private getSlowWalker(pre: IAstWalkCallback, post?: IAstWalkCallback, options?: AstWalkOptions, state?: any): IAstWalker { if (!options) { options = new AstWalkOptions(); } return new AstWalker(this.childrenWalkers, pre, post, options, state); } private initChildrenWalkers(): void { this.childrenWalkers[NodeType.None] = ChildrenWalkers.walkNone; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Empty] = ChildrenWalkers.walkNone; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.EmptyExpr] = ChildrenWalkers.walkNone; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.True] = ChildrenWalkers.walkNone; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.False] = ChildrenWalkers.walkNone; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.This] = ChildrenWalkers.walkNone; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Super] = ChildrenWalkers.walkNone; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.QString] = ChildrenWalkers.walkNone; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Regex] = ChildrenWalkers.walkNone; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Null] = ChildrenWalkers.walkNone; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.ArrayLit] = ChildrenWalkers.walkUnaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.ObjectLit] = ChildrenWalkers.walkUnaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Void] = ChildrenWalkers.walkUnaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Comma] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Pos] = ChildrenWalkers.walkUnaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Neg] = ChildrenWalkers.walkUnaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Delete] = ChildrenWalkers.walkUnaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Await] = ChildrenWalkers.walkUnaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.In] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Dot] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.From] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Is] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.InstOf] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Typeof] = ChildrenWalkers.walkUnaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.NumberLit] = ChildrenWalkers.walkNone; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Name] = ChildrenWalkers.walkNone; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.TypeRef] = ChildrenWalkers.walkTypeReferenceChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Index] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Call] = ChildrenWalkers.walkCallExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.New] = ChildrenWalkers.walkCallExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Asg] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.AsgAdd] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.AsgSub] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.AsgDiv] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.AsgMul] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.AsgMod] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.AsgAnd] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.AsgXor] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.AsgOr] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.AsgLsh] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.AsgRsh] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.AsgRs2] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.ConditionalExpression] = ChildrenWalkers.walkTrinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.LogOr] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.LogAnd] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Or] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Xor] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.And] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Eq] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Ne] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Eqv] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.NEqv] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Lt] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Le] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Gt] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Ge] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Add] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Sub] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Mul] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Div] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Mod] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Lsh] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Rsh] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Rs2] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Not] = ChildrenWalkers.walkUnaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.LogNot] = ChildrenWalkers.walkUnaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.IncPre] = ChildrenWalkers.walkUnaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.DecPre] = ChildrenWalkers.walkUnaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.IncPost] = ChildrenWalkers.walkUnaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.DecPost] = ChildrenWalkers.walkUnaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.TypeAssertion] = ChildrenWalkers.walkUnaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.FuncDecl] = ChildrenWalkers.walkFuncDeclChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Member] = ChildrenWalkers.walkBinaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.VarDecl] = ChildrenWalkers.walkBoundDeclChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.ArgDecl] = ChildrenWalkers.walkBoundDeclChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Return] = ChildrenWalkers.walkReturnStatementChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Break] = ChildrenWalkers.walkNone; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Continue] = ChildrenWalkers.walkNone; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Throw] = ChildrenWalkers.walkUnaryExpressionChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.For] = ChildrenWalkers.walkForStatementChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.ForIn] = ChildrenWalkers.walkForInStatementChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.If] = ChildrenWalkers.walkIfStatementChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.While] = ChildrenWalkers.walkWhileStatementChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.DoWhile] = ChildrenWalkers.walkDoWhileStatementChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Block] = ChildrenWalkers.walkBlockChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Case] = ChildrenWalkers.walkCaseStatementChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Switch] = ChildrenWalkers.walkSwitchStatementChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Try] = ChildrenWalkers.walkTryChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.TryCatch] = ChildrenWalkers.walkTryCatchChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.TryFinally] = ChildrenWalkers.walkTryFinallyChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Finally] = ChildrenWalkers.walkFinallyChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Catch] = ChildrenWalkers.walkCatchChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.List] = ChildrenWalkers.walkListChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Script] = ChildrenWalkers.walkScriptChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.ClassDeclaration] = ChildrenWalkers.walkClassDeclChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.InterfaceDeclaration] = ChildrenWalkers.walkTypeDeclChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.ModuleDeclaration] = ChildrenWalkers.walkModuleDeclChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.ImportDeclaration] = ChildrenWalkers.walkImportDeclChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.With] = ChildrenWalkers.walkWithStatementChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Label] = ChildrenWalkers.walkLabelChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.LabeledStatement] = ChildrenWalkers.walkLabeledStatementChildren; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.EBStart] = ChildrenWalkers.walkNone; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.GotoEB] = ChildrenWalkers.walkNone; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.EndCode] = ChildrenWalkers.walkNone; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Error] = ChildrenWalkers.walkNone; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Comment] = ChildrenWalkers.walkNone; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. this.childrenWalkers[NodeType.Debugger] = ChildrenWalkers.walkNone; ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. // Verify the code is up to date with the enum for (var e in (NodeType)._map) { ~~~~~~~~ !!! error TS2304: Cannot find name 'NodeType'. if ((this.childrenWalkers)[e] === undefined) { throw new Error("initWalkers function is not up to date with enum content!"); } } } } var globalAstWalkerFactory: AstWalkerFactory; export function getAstWalkerFactory(): AstWalkerFactory { if (!globalAstWalkerFactory) { globalAstWalkerFactory = new AstWalkerFactory(); } return globalAstWalkerFactory; } module ChildrenWalkers { export function walkNone(preAst: ASTList, parent: AST, walker: IAstWalker): void { ~~~~~~~ !!! error TS2304: Cannot find name 'ASTList'. ~~~ !!! error TS2304: Cannot find name 'AST'. // Nothing to do } export function walkListChildren(preAst: ASTList, parent: AST, walker: IAstWalker): void { ~~~~~~~ !!! error TS2304: Cannot find name 'ASTList'. ~~~ !!! error TS2304: Cannot find name 'AST'. var len = preAst.members.length; if (walker.options.reverseSiblings) { for (var i = len - 1; i >= 0; i--) { if (walker.options.goNextSibling) { preAst.members[i] = walker.walk(preAst.members[i], preAst); } } } else { for (var i = 0; i < len; i++) { if (walker.options.goNextSibling) { preAst.members[i] = walker.walk(preAst.members[i], preAst); } } } } export function walkUnaryExpressionChildren(preAst: UnaryExpression, parent: AST, walker: IAstWalker): void { ~~~~~~~~~~~~~~~ !!! error TS2304: Cannot find name 'UnaryExpression'. ~~~ !!! error TS2304: Cannot find name 'AST'. if (preAst.castTerm) { preAst.castTerm = walker.walk(preAst.castTerm, preAst); } if (preAst.operand) { preAst.operand = walker.walk(preAst.operand, preAst); } } export function walkBinaryExpressionChildren(preAst: BinaryExpression, parent: AST, walker: IAstWalker): void { ~~~~~~~~~~~~~~~~ !!! error TS2304: Cannot find name 'BinaryExpression'. ~~~ !!! error TS2304: Cannot find name 'AST'. if (walker.options.reverseSiblings) { if (preAst.operand2) { preAst.operand2 = walker.walk(preAst.operand2, preAst); } if ((preAst.operand1) && (walker.options.goNextSibling)) { preAst.operand1 = walker.walk(preAst.operand1, preAst); } } else { if (preAst.operand1) { preAst.operand1 = walker.walk(preAst.operand1, preAst); } if ((preAst.operand2) && (walker.options.goNextSibling)) { preAst.operand2 = walker.walk(preAst.operand2, preAst); } } } export function walkTypeReferenceChildren(preAst: TypeReference, parent: AST, walker: IAstWalker): void { ~~~~~~~~~~~~~ !!! error TS2304: Cannot find name 'TypeReference'. ~~~ !!! error TS2304: Cannot find name 'AST'. if (preAst.term) { preAst.term = walker.walk(preAst.term, preAst); } } export function walkCallExpressionChildren(preAst: CallExpression, parent: AST, walker: IAstWalker): void { ~~~~~~~~~~~~~~ !!! error TS2304: Cannot find name 'CallExpression'. ~~~ !!! error TS2304: Cannot find name 'AST'. if (!walker.options.reverseSiblings) { preAst.target = walker.walk(preAst.target, preAst); } if (preAst.arguments && (walker.options.goNextSibling)) { preAst.arguments = walker.walk(preAst.arguments, preAst); ~~~~~~~ !!! error TS2304: Cannot find name 'ASTList'. } if ((walker.options.reverseSiblings) && (walker.options.goNextSibling)) { preAst.target = walker.walk(preAst.target, preAst); } } export function walkTrinaryExpressionChildren(preAst: ConditionalExpression, parent: AST, walker: IAstWalker): void { ~~~~~~~~~~~~~~~~~~~~~ !!! error TS2304: Cannot find name 'ConditionalExpression'. ~~~ !!! error TS2304: Cannot find name 'AST'. if (preAst.operand1) { preAst.operand1 = walker.walk(preAst.operand1, preAst); } if (preAst.operand2 && (walker.options.goNextSibling)) { preAst.operand2 = walker.walk(preAst.operand2, preAst); } if (preAst.operand3 && (walker.options.goNextSibling)) { preAst.operand3 = walker.walk(preAst.operand3, preAst); } } export function walkFuncDeclChildren(preAst: FuncDecl, parent: AST, walker: IAstWalker): void { ~~~~~~~~ !!! error TS2304: Cannot find name 'FuncDecl'. ~~~ !!! error TS2304: Cannot find name 'AST'. if (preAst.name) { preAst.name = walker.walk(preAst.name, preAst); ~~~~~~~~~~ !!! error TS2304: Cannot find name 'Identifier'. } if (preAst.arguments && (preAst.arguments.members.length > 0) && (walker.options.goNextSibling)) { preAst.arguments = walker.walk(preAst.arguments, preAst); ~~~~~~~ !!! error TS2304: Cannot find name 'ASTList'. } if (preAst.returnTypeAnnotation && (walker.options.goNextSibling)) { preAst.returnTypeAnnotation = walker.walk(preAst.returnTypeAnnotation, preAst); } if (preAst.bod && (preAst.bod.members.length > 0) && (walker.options.goNextSibling)) { preAst.bod = walker.walk(preAst.bod, preAst); ~~~~~~~ !!! error TS2304: Cannot find name 'ASTList'. } } export function walkBoundDeclChildren(preAst: BoundDecl, parent: AST, walker: IAstWalker): void { ~~~~~~~~~ !!! error TS2304: Cannot find name 'BoundDecl'. ~~~ !!! error TS2304: Cannot find name 'AST'. if (preAst.id) { preAst.id = walker.walk(preAst.id, preAst); ~~~~~~~~~~ !!! error TS2304: Cannot find name 'Identifier'. } if (preAst.init) { preAst.init = walker.walk(preAst.init, preAst); } if ((preAst.typeExpr) && (walker.options.goNextSibling)) { preAst.typeExpr = walker.walk(preAst.typeExpr, preAst); } } export function walkReturnStatementChildren(preAst: ReturnStatement, parent: AST, walker: IAstWalker): void { ~~~~~~~~~~~~~~~ !!! error TS2304: Cannot find name 'ReturnStatement'. ~~~ !!! error TS2304: Cannot find name 'AST'. if (preAst.returnExpression) { preAst.returnExpression = walker.walk(preAst.returnExpression, preAst); } } export function walkForStatementChildren(preAst: ForStatement, parent: AST, walker: IAstWalker): void { ~~~~~~~~~~~~ !!! error TS2304: Cannot find name 'ForStatement'. ~~~ !!! error TS2304: Cannot find name 'AST'. if (preAst.init) { preAst.init = walker.walk(preAst.init, preAst); } if (preAst.cond && walker.options.goNextSibling) { preAst.cond = walker.walk(preAst.cond, preAst); } if (preAst.incr && walker.options.goNextSibling) { preAst.incr = walker.walk(preAst.incr, preAst); } if (preAst.body && walker.options.goNextSibling) { preAst.body = walker.walk(preAst.body, preAst); } } export function walkForInStatementChildren(preAst: ForInStatement, parent: AST, walker: IAstWalker): void { ~~~~~~~~~~~~~~ !!! error TS2304: Cannot find name 'ForInStatement'. ~~~ !!! error TS2304: Cannot find name 'AST'. preAst.lval = walker.walk(preAst.lval, preAst); if (walker.options.goNextSibling) { preAst.obj = walker.walk(preAst.obj, preAst); } if (preAst.body && (walker.options.goNextSibling)) { preAst.body = walker.walk(preAst.body, preAst); } } export function walkIfStatementChildren(preAst: IfStatement, parent: AST, walker: IAstWalker): void { ~~~~~~~~~~~ !!! error TS2304: Cannot find name 'IfStatement'. ~~~ !!! error TS2304: Cannot find name 'AST'. preAst.cond = walker.walk(preAst.cond, preAst); if (preAst.thenBod && (walker.options.goNextSibling)) { preAst.thenBod = walker.walk(preAst.thenBod, preAst); } if (preAst.elseBod && (walker.options.goNextSibling)) { preAst.elseBod = walker.walk(preAst.elseBod, preAst); } } export function walkWhileStatementChildren(preAst: WhileStatement, parent: AST, walker: IAstWalker): void { ~~~~~~~~~~~~~~ !!! error TS2304: Cannot find name 'WhileStatement'. ~~~ !!! error TS2304: Cannot find name 'AST'. preAst.cond = walker.walk(preAst.cond, preAst); if (preAst.body && (walker.options.goNextSibling)) { preAst.body = walker.walk(preAst.body, preAst); } } export function walkDoWhileStatementChildren(preAst: DoWhileStatement, parent: AST, walker: IAstWalker): void { ~~~~~~~~~~~~~~~~ !!! error TS2304: Cannot find name 'DoWhileStatement'. ~~~ !!! error TS2304: Cannot find name 'AST'. preAst.cond = walker.walk(preAst.cond, preAst); if (preAst.body && (walker.options.goNextSibling)) { preAst.body = walker.walk(preAst.body, preAst); } } export function walkBlockChildren(preAst: Block, parent: AST, walker: IAstWalker): void { ~~~~~ !!! error TS2304: Cannot find name 'Block'. ~~~ !!! error TS2304: Cannot find name 'AST'. if (preAst.statements) { preAst.statements = walker.walk(preAst.statements, preAst); ~~~~~~~ !!! error TS2304: Cannot find name 'ASTList'. } } export function walkCaseStatementChildren(preAst: CaseStatement, parent: AST, walker: IAstWalker): void { ~~~~~~~~~~~~~ !!! error TS2304: Cannot find name 'CaseStatement'. ~~~ !!! error TS2304: Cannot find name 'AST'. if (preAst.expr) { preAst.expr = walker.walk(preAst.expr, preAst); } if (preAst.body && walker.options.goNextSibling) { preAst.body = walker.walk(preAst.body, preAst); ~~~~~~~ !!! error TS2304: Cannot find name 'ASTList'. } } export function walkSwitchStatementChildren(preAst: SwitchStatement, parent: AST, walker: IAstWalker): void { ~~~~~~~~~~~~~~~ !!! error TS2304: Cannot find name 'SwitchStatement'. ~~~ !!! error TS2304: Cannot find name 'AST'. if (preAst.val) { preAst.val = walker.walk(preAst.val, preAst); } if ((preAst.caseList) && walker.options.goNextSibling) { preAst.caseList = walker.walk(preAst.caseList, preAst); ~~~~~~~ !!! error TS2304: Cannot find name 'ASTList'. } } export function walkTryChildren(preAst: Try, parent: AST, walker: IAstWalker): void { ~~~ !!! error TS2304: Cannot find name 'Try'. ~~~ !!! error TS2304: Cannot find name 'AST'. if (preAst.body) { preAst.body = walker.walk(preAst.body, preAst); } } export function walkTryCatchChildren(preAst: TryCatch, parent: AST, walker: IAstWalker): void { ~~~~~~~~ !!! error TS2304: Cannot find name 'TryCatch'. ~~~ !!! error TS2304: Cannot find name 'AST'. if (preAst.tryNode) { preAst.tryNode = walker.walk(preAst.tryNode, preAst); ~~~ !!! error TS2304: Cannot find name 'Try'. } if ((preAst.catchNode) && walker.options.goNextSibling) { preAst.catchNode = walker.walk(preAst.catchNode, preAst); ~~~~~ !!! error TS2304: Cannot find name 'Catch'. } } export function walkTryFinallyChildren(preAst: TryFinally, parent: AST, walker: IAstWalker): void { ~~~~~~~~~~ !!! error TS2304: Cannot find name 'TryFinally'. ~~~ !!! error TS2304: Cannot find name 'AST'. if (preAst.tryNode) { preAst.tryNode = walker.walk(preAst.tryNode, preAst); } if (preAst.finallyNode && walker.options.goNextSibling) { preAst.finallyNode = walker.walk(preAst.finallyNode, preAst); ~~~~~~~ !!! error TS2304: Cannot find name 'Finally'. } } export function walkFinallyChildren(preAst: Finally, parent: AST, walker: IAstWalker): void { ~~~~~~~ !!! error TS2304: Cannot find name 'Finally'. ~~~ !!! error TS2304: Cannot find name 'AST'. if (preAst.body) { preAst.body = walker.walk(preAst.body, preAst); } } export function walkCatchChildren(preAst: Catch, parent: AST, walker: IAstWalker): void { ~~~~~ !!! error TS2304: Cannot find name 'Catch'. ~~~ !!! error TS2304: Cannot find name 'AST'. if (preAst.param) { preAst.param = walker.walk(preAst.param, preAst); ~~~~~~~ !!! error TS2304: Cannot find name 'VarDecl'. } if ((preAst.body) && walker.options.goNextSibling) { preAst.body = walker.walk(preAst.body, preAst); } } export function walkRecordChildren(preAst: NamedDeclaration, parent: AST, walker: IAstWalker): void { ~~~~~~~~~~~~~~~~ !!! error TS2304: Cannot find name 'NamedDeclaration'. ~~~ !!! error TS2304: Cannot find name 'AST'. preAst.name = walker.walk(preAst.name, preAst); ~~~~~~~~~~ !!! error TS2304: Cannot find name 'Identifier'. if (walker.options.goNextSibling && preAst.members) { preAst.members = walker.walk(preAst.members, preAst); ~~~~~~~ !!! error TS2304: Cannot find name 'ASTList'. } } export function walkNamedTypeChildren(preAst: TypeDeclaration, parent: AST, walker: IAstWalker): void { ~~~~~~~~~~~~~~~ !!! error TS2304: Cannot find name 'TypeDeclaration'. ~~~ !!! error TS2304: Cannot find name 'AST'. walkRecordChildren(preAst, parent, walker); } export function walkClassDeclChildren(preAst: ClassDeclaration, parent: AST, walker: IAstWalker): void { ~~~~~~~~~~~~~~~~ !!! error TS2304: Cannot find name 'ClassDeclaration'. ~~~ !!! error TS2304: Cannot find name 'AST'. walkNamedTypeChildren(preAst, parent, walker); if (walker.options.goNextSibling && preAst.extendsList) { preAst.extendsList = walker.walk(preAst.extendsList, preAst); ~~~~~~~ !!! error TS2304: Cannot find name 'ASTList'. } if (walker.options.goNextSibling && preAst.implementsList) { preAst.implementsList = walker.walk(preAst.implementsList, preAst); ~~~~~~~ !!! error TS2304: Cannot find name 'ASTList'. } } export function walkScriptChildren(preAst: Script, parent: AST, walker: IAstWalker): void { ~~~~~~ !!! error TS2304: Cannot find name 'Script'. ~~~ !!! error TS2304: Cannot find name 'AST'. if (preAst.bod) { preAst.bod = walker.walk(preAst.bod, preAst); ~~~~~~~ !!! error TS2304: Cannot find name 'ASTList'. } } export function walkTypeDeclChildren(preAst: InterfaceDeclaration, parent: AST, walker: IAstWalker): void { ~~~~~~~~~~~~~~~~~~~~ !!! error TS2304: Cannot find name 'InterfaceDeclaration'. ~~~ !!! error TS2304: Cannot find name 'AST'. walkNamedTypeChildren(preAst, parent, walker); // walked arguments as part of members if (walker.options.goNextSibling && preAst.extendsList) { preAst.extendsList = walker.walk(preAst.extendsList, preAst); ~~~~~~~ !!! error TS2304: Cannot find name 'ASTList'. } if (walker.options.goNextSibling && preAst.implementsList) { preAst.implementsList = walker.walk(preAst.implementsList, preAst); ~~~~~~~ !!! error TS2304: Cannot find name 'ASTList'. } } export function walkModuleDeclChildren(preAst: ModuleDeclaration, parent: AST, walker: IAstWalker): void { ~~~~~~~~~~~~~~~~~ !!! error TS2304: Cannot find name 'ModuleDeclaration'. ~~~ !!! error TS2304: Cannot find name 'AST'. walkRecordChildren(preAst, parent, walker); } export function walkImportDeclChildren(preAst: ImportDeclaration, parent: AST, walker: IAstWalker): void { ~~~~~~~~~~~~~~~~~ !!! error TS2304: Cannot find name 'ImportDeclaration'. ~~~ !!! error TS2304: Cannot find name 'AST'. if (preAst.id) { preAst.id = walker.walk(preAst.id, preAst); ~~~~~~~~~~ !!! error TS2304: Cannot find name 'Identifier'. } if (preAst.alias) { preAst.alias = walker.walk(preAst.alias, preAst); } } export function walkWithStatementChildren(preAst: WithStatement, parent: AST, walker: IAstWalker): void { ~~~~~~~~~~~~~ !!! error TS2304: Cannot find name 'WithStatement'. ~~~ !!! error TS2304: Cannot find name 'AST'. if (preAst.expr) { preAst.expr = walker.walk(preAst.expr, preAst); } if (preAst.body && walker.options.goNextSibling) { preAst.body = walker.walk(preAst.body, preAst); } } export function walkLabelChildren(preAst: Label, parent: AST, walker: IAstWalker): void { ~~~~~ !!! error TS2304: Cannot find name 'Label'. ~~~ !!! error TS2304: Cannot find name 'AST'. //TODO: Walk "id"? } export function walkLabeledStatementChildren(preAst: LabeledStatement, parent: AST, walker: IAstWalker): void { ~~~~~~~~~~~~~~~~ !!! error TS2304: Cannot find name 'LabeledStatement'. ~~~ !!! error TS2304: Cannot find name 'AST'. preAst.labels = walker.walk(preAst.labels, preAst); ~~~~~~~ !!! error TS2304: Cannot find name 'ASTList'. if (walker.options.goNextSibling) { preAst.stmt = walker.walk(preAst.stmt, preAst); } } } }