diff options
author | Mihai Bazon <mihai@bazon.net> | 2012-09-02 14:32:00 +0300 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2012-09-02 14:32:00 +0300 |
commit | f2f370cee3708c0d9431594f81e192099fc6900c (patch) | |
tree | e4f03f0f4576a59bf781b9f9b2b8326db2e4e132 /lib | |
parent | 24bfd55a22afd791d4a97694641831cfbd27fb14 (diff) | |
download | tracifyjs-f2f370cee3708c0d9431594f81e192099fc6900c.tar.gz tracifyjs-f2f370cee3708c0d9431594f81e192099fc6900c.zip |
add source mappings for more node types; started CLI utility
Diffstat (limited to 'lib')
-rw-r--r-- | lib/output.js | 10 |
1 files changed, 10 insertions, 0 deletions
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); }); |