[Transforms] Update baselines from merging with master round 2 (#8926)

* update baselines from merging with master

* Correctly fix#8786

* Fix up linting errors

* Fix spelling error in comment

* Remove usage of null

* Revert "Remove usage of null"

This reverts commit d9102d1e3f.

* Disable using null in unittest as we use null to signal to not generate baselines

* Remove setting disable comment as we already done so in createCommentWriter

* Address linting

* Fix travis failure

* Fix travis failure
This commit is contained in:
Yui
2016-06-02 10:57:28 -07:00
parent 0af375ef17
commit e35dd79c04
12 changed files with 88 additions and 92 deletions
+1 -14
View File
@@ -389,19 +389,6 @@ const _super = (function (geti, seti) {
|| (getNodeEmitFlags(node) & NodeEmitFlags.NoLeadingComments) !== 0;
}
/**
* Determines whether to skip trailing comment emit for a node.
*
* We do not emit comments for NotEmittedStatement nodes or any node that has
* NodeEmitFlags.NoTrailingComments.
*
* @param node A Node.
*/
function shouldSkipTrailingCommentsForNode(node: Node) {
return isNotEmittedStatement(node)
|| (getNodeEmitFlags(node) & NodeEmitFlags.NoTrailingComments) !== 0;
}
/**
* Determines whether to skip source map emit for the start position of a node.
*
@@ -2897,7 +2884,7 @@ const _super = (function (geti, seti) {
// Other
PreferNewLine = 1 << 15, // Prefer adding a LineTerminator between synthesized nodes.
NoTrailingNewLine = 1 << 16, // Do not emit a trailing NewLine for a MultiLine list.
NoInterveningComments = 1 << 17,// Do not emit comments between each node
NoInterveningComments = 1 << 17, // Do not emit comments between each node
// Precomputed Formats
Modifiers = SingleLine | SpaceBetweenSiblings,