Open wanderer opened 8 years ago
comment
kind usually problematic in AST.
Comments can come almost at any point of source code and they are orthogonal to the main tree structure. For example Esprima can attach trailingComments
or leadingComments
to the AST nodes close to comment.
@ariya @michaelficarra correct me if I am wrong.
It could be useful to include a
comment
type.