aboutsummaryrefslogtreecommitdiff
path: root/lib/ast.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-12-22 04:59:54 +0800
committerGitHub <noreply@github.com>2017-12-22 04:59:54 +0800
commitedb4e3bd52e1623425927a7d63963ba3b87a3ec2 (patch)
treeace997f3450683da280f4031b224ed6628ab79a7 /lib/ast.js
parent4113609dd4d782f0ceb9ec1c3e9c829e05a93aed (diff)
downloadtracifyjs-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.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ast.js b/lib/ast.js
index 997486c2..65918675 100644
--- a/lib/ast.js
+++ b/lib/ast.js
@@ -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", {