diff options
author | Mihai Bazon <mihai@bazon.net> | 2012-09-21 14:19:05 +0300 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2012-09-21 14:19:05 +0300 |
commit | 5491e1d7b11e363c79bdd352883e92fa3b711e69 (patch) | |
tree | 3963c0888af492f12adf0cc1adc6556be79cd858 /lib/output.js | |
parent | c4f8c2103fd77e3a6666034c2ca19a5ef09fe68b (diff) | |
download | tracifyjs-5491e1d7b11e363c79bdd352883e92fa3b711e69.tar.gz tracifyjs-5491e1d7b11e363c79bdd352883e92fa3b711e69.zip |
better support for multiple input files:
- use a single AST_Toplevel node for all files
- keep original source filename in the tokens
Diffstat (limited to 'lib/output.js')
-rw-r--r-- | lib/output.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/output.js b/lib/output.js index 149fc05e..a7a580c9 100644 --- a/lib/output.js +++ b/lib/output.js @@ -54,7 +54,8 @@ function OutputStream(options) { max_line_len : 32000, ie_proof : true, beautify : true, - source_map : null + source_map : null, + in_source_map : null }); var indentation = 0; @@ -245,6 +246,7 @@ function OutputStream(options) { var add_mapping = options.source_map ? function(token, name) { options.source_map.add( + token.file, current_line, current_col, token.line, token.col, (!name && token.type == "name") ? token.value : name |