Comparing version 0.4.12 to 0.4.13
@@ -58,2 +58,3 @@ var assert = require("assert"); | ||
addComment(previousNode, comment); | ||
comment.trailing = true; | ||
}); | ||
@@ -94,2 +95,3 @@ | ||
addComment(previousNode, comment); | ||
comment.trailing = true; | ||
@@ -176,3 +178,5 @@ } else { | ||
if (lines instanceof Lines) { | ||
// When we move trailing comments before the node to become leading | ||
// comments, we don't want to bring any trailing spaces along. | ||
if (!comment.trailing && lines instanceof Lines) { | ||
var trailingSpace = lines.slice( | ||
@@ -179,0 +183,0 @@ loc.end, |
@@ -15,3 +15,3 @@ { | ||
], | ||
"version": "0.4.12", | ||
"version": "0.4.13", | ||
"homepage": "http://github.com/benjamn/recast", | ||
@@ -18,0 +18,0 @@ "repository": { |
@@ -85,2 +85,3 @@ var recast = require("../main"); | ||
" // ... and here I am continuing this comment.", | ||
"", | ||
"};" | ||
@@ -87,0 +88,0 @@ ]; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
181241
4840