mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
[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:
+1
-14
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user