diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-12-22 04:59:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-22 04:59:54 +0800 |
commit | edb4e3bd52e1623425927a7d63963ba3b87a3ec2 (patch) | |
tree | ace997f3450683da280f4031b224ed6628ab79a7 /lib/ast.js | |
parent | 4113609dd4d782f0ceb9ec1c3e9c829e05a93aed (diff) | |
download | tracifyjs-edb4e3bd52e1623425927a7d63963ba3b87a3ec2.tar.gz tracifyjs-edb4e3bd52e1623425927a7d63963ba3b87a3ec2.zip |
make comments output more robust (#2633)
- improve handling of comments right after `return`
- retain comments after `OutputStream`
- preserve trailing comments
- fix handling of new line before comments
- handle comments around parentheses
fixes #88
fixes #112
fixes #218
fixes #372
fixes #2629
Diffstat (limited to 'lib/ast.js')
-rw-r--r-- | lib/ast.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -87,7 +87,7 @@ function DEFNODE(type, props, methods, base) { return ctor; }; -var AST_Token = DEFNODE("Token", "type value line col pos endline endcol endpos nlb comments_before file raw", { +var AST_Token = DEFNODE("Token", "type value line col pos endline endcol endpos nlb comments_before comments_after file raw", { }, null); var AST_Node = DEFNODE("Node", "start end", { |