From f2f370cee3708c0d9431594f81e192099fc6900c Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Sun, 2 Sep 2012 14:32:00 +0300 Subject: add source mappings for more node types; started CLI utility --- lib/output.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib') diff --git a/lib/output.js b/lib/output.js index b43d817e..05bd9136 100644 --- a/lib/output.js +++ b/lib/output.js @@ -1009,7 +1009,17 @@ function OutputStream(options) { DEFMAP(AST_Debugger, basic_sourcemap_gen); DEFMAP(AST_Symbol, basic_sourcemap_gen); DEFMAP(AST_Jump, basic_sourcemap_gen); + DEFMAP(AST_StatementWithBody, basic_sourcemap_gen); + DEFMAP(AST_Lambda, basic_sourcemap_gen); DEFMAP(AST_PropAccess, basic_sourcemap_gen); + DEFMAP(AST_Switch, basic_sourcemap_gen); + DEFMAP(AST_BlockStatement, basic_sourcemap_gen); + DEFMAP(AST_Toplevel, noop); + DEFMAP(AST_Try, basic_sourcemap_gen); + DEFMAP(AST_Catch, basic_sourcemap_gen); + DEFMAP(AST_Finally, basic_sourcemap_gen); + DEFMAP(AST_Definitions, basic_sourcemap_gen); + DEFMAP(AST_Constant, basic_sourcemap_gen); DEFMAP(AST_ObjectProperty, function(self, output){ output.add_mapping(self.start, self.key); }); -- cgit v1.2.3