Fix emit duplicate comment

This commit is contained in:
Kanchalai Tanglertsampan
2017-05-24 10:54:08 -07:00
parent b4ee6b19aa
commit a2ba649ddd
4 changed files with 1 additions and 4 deletions

View File

@@ -3011,7 +3011,7 @@ namespace ts {
NoInterveningComments = 1 << 17, // Do not emit comments between each node
// Precomputed Formats
Modifiers = SingleLine | SpaceBetweenSiblings,
Modifiers = SingleLine | SpaceBetweenSiblings | NoInterveningComments,
HeritageClauses = SingleLine | SpaceBetweenSiblings,
SingleLineTypeLiteralMembers = SingleLine | SpaceBetweenBraces | SpaceBetweenSiblings | Indented,
MultiLineTypeLiteralMembers = MultiLine | Indented,

View File

@@ -4,5 +4,4 @@ export const a = 1;
//// [alwaysStrictModule3.js]
// module ES2015
// module ES2015
export var a = 1;

View File

@@ -4,5 +4,4 @@ export const a = 1;
//// [alwaysStrictModule5.js]
// Targeting ES6
// Targeting ES6
export const a = 1;

View File

@@ -144,7 +144,6 @@ for (const y = 0; y < 1;) {
//// [capturedLetConstInLoop4_ES6.js]
//======let
//======let
export function exportedFoo() {
return v0 + v00 + v1 + v2 + v3 + v4 + v5 + v6 + v7 + v8;
}