mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05: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:
@@ -24,8 +24,6 @@ namespace ts {
|
||||
let currentLineMap: number[];
|
||||
let detachedCommentsInfo: { nodePos: number, detachedCommentEndPos: number}[];
|
||||
let hasWrittenComment = false;
|
||||
let hasLastComment: boolean;
|
||||
let lastCommentEnd: number;
|
||||
let disabled: boolean = compilerOptions.removeComments;
|
||||
|
||||
return {
|
||||
@@ -287,7 +285,6 @@ namespace ts {
|
||||
currentText = currentSourceFile.text;
|
||||
currentLineMap = getLineStarts(currentSourceFile);
|
||||
detachedCommentsInfo = undefined;
|
||||
disabled = false;
|
||||
}
|
||||
|
||||
function disableCommentsAndEmit(node: Node, emitCallback: (node: Node) => void): void {
|
||||
|
||||
Reference in New Issue
Block a user