@@ -380,7 +380,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
380380 function base64VLQFormatEncode ( inValue : number ) {
381381 function base64FormatEncode ( inValue : number ) {
382382 if ( inValue < 64 ) {
383- return ' ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' . charAt ( inValue ) ;
383+ return " ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" . charAt ( inValue ) ;
384384 }
385385 throw TypeError ( inValue + ": not a 64 based value" ) ;
386386 }
@@ -895,7 +895,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
895895 // Any template literal or string literal with an extended escape
896896 // (e.g. "\u{0067}") will need to be downleveled as a escaped string literal.
897897 if ( languageVersion < ScriptTarget . ES6 && ( isTemplateLiteralKind ( node . kind ) || node . hasExtendedUnicodeEscape ) ) {
898- return getQuotedEscapedLiteralText ( '"' , node . text , '"' ) ;
898+ return getQuotedEscapedLiteralText ( "\"" , node . text , "\"" ) ;
899899 }
900900
901901 // If we don't need to downlevel and we can reach the original source text using
@@ -908,15 +908,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
908908 // or an escaped quoted form of the original text if it's string-like.
909909 switch ( node . kind ) {
910910 case SyntaxKind . StringLiteral :
911- return getQuotedEscapedLiteralText ( '"' , node . text , '"' ) ;
911+ return getQuotedEscapedLiteralText ( "\"" , node . text , "\"" ) ;
912912 case SyntaxKind . NoSubstitutionTemplateLiteral :
913- return getQuotedEscapedLiteralText ( '`' , node . text , '`' ) ;
913+ return getQuotedEscapedLiteralText ( "`" , node . text , "`" ) ;
914914 case SyntaxKind . TemplateHead :
915- return getQuotedEscapedLiteralText ( '`' , node . text , '${' ) ;
915+ return getQuotedEscapedLiteralText ( "`" , node . text , "${" ) ;
916916 case SyntaxKind . TemplateMiddle :
917- return getQuotedEscapedLiteralText ( '}' , node . text , '${' ) ;
917+ return getQuotedEscapedLiteralText ( "}" , node . text , "${" ) ;
918918 case SyntaxKind . TemplateTail :
919- return getQuotedEscapedLiteralText ( '}' , node . text , '`' ) ;
919+ return getQuotedEscapedLiteralText ( "}" , node . text , "`" ) ;
920920 case SyntaxKind . NumericLiteral :
921921 return node . text ;
922922 }
@@ -947,7 +947,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
947947 text = text . replace ( / \r \n ? / g, "\n" ) ;
948948 text = escapeString ( text ) ;
949949
950- write ( '"' + text + '"' ) ;
950+ write ( `" ${ text } "` ) ;
951951 }
952952
953953 function emitDownlevelTaggedTemplateArray ( node : TaggedTemplateExpression , literalEmitter : ( literal : LiteralExpression ) => void ) {
@@ -1134,9 +1134,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
11341134 /// 'Div' for upper-cased or dotted names
11351135 function emitTagName ( name : Identifier | QualifiedName ) {
11361136 if ( name . kind === SyntaxKind . Identifier && isIntrinsicJsxName ( ( < Identifier > name ) . text ) ) {
1137- write ( '"' ) ;
1137+ write ( "\"" ) ;
11381138 emit ( name ) ;
1139- write ( '"' ) ;
1139+ write ( "\"" ) ;
11401140 }
11411141 else {
11421142 emit ( name ) ;
@@ -1148,9 +1148,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
11481148 /// about keywords, just non-identifier characters
11491149 function emitAttributeName ( name : Identifier ) {
11501150 if ( / [ A - Z a - z _ ] + [ \w * ] / . test ( name . text ) ) {
1151- write ( '"' ) ;
1151+ write ( "\"" ) ;
11521152 emit ( name ) ;
1153- write ( '"' ) ;
1153+ write ( "\"" ) ;
11541154 }
11551155 else {
11561156 emit ( name ) ;
@@ -1248,10 +1248,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
12481248 // Don't emit empty strings
12491249 if ( children [ i ] . kind === SyntaxKind . JsxText ) {
12501250 let text = getTextToEmit ( < JsxText > children [ i ] ) ;
1251- if ( text !== undefined ) {
1252- write ( ', "' ) ;
1251+ if ( text !== undefined ) {
1252+ write ( ", \"" ) ;
12531253 write ( text ) ;
1254- write ( '"' ) ;
1254+ write ( "\"" ) ;
12551255 }
12561256 }
12571257 else {
@@ -1491,7 +1491,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
14911491 if ( declaration . kind === SyntaxKind . ImportClause ) {
14921492 // Identifier references default import
14931493 write ( getGeneratedNameForNode ( < ImportDeclaration > declaration . parent ) ) ;
1494- write ( languageVersion === ScriptTarget . ES3 ? '[ "default"]' : ".default" ) ;
1494+ write ( languageVersion === ScriptTarget . ES3 ? "[\ "default\"]" : ".default" ) ;
14951495 return ;
14961496 }
14971497 else if ( declaration . kind === SyntaxKind . ImportSpecifier ) {
@@ -4270,11 +4270,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
42704270 emitDetachedComments ( ctor . body . statements ) ;
42714271 }
42724272 emitCaptureThisForNodeIfNecessary ( node ) ;
4273+ let superCall : ExpressionStatement ;
42734274 if ( ctor ) {
42744275 emitDefaultValueAssignments ( ctor ) ;
42754276 emitRestParameter ( ctor ) ;
42764277 if ( baseTypeElement ) {
4277- var superCall = findInitialSuperCall ( ctor ) ;
4278+ superCall = findInitialSuperCall ( ctor ) ;
42784279 if ( superCall ) {
42794280 writeLine ( ) ;
42804281 emit ( superCall ) ;
@@ -4951,7 +4952,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
49514952 let temp = createAndRecordTempVariable ( TempFlags . Auto ) ;
49524953 write ( "(typeof (" ) ;
49534954 emitNodeWithoutSourceMap ( temp ) ;
4954- write ( " = " )
4955+ write ( " = " ) ;
49554956 emitEntityNameAsExpression ( typeName , /*useFallback*/ true ) ;
49564957 write ( ") === 'function' && " ) ;
49574958 emitNodeWithoutSourceMap ( temp ) ;
@@ -5010,7 +5011,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
50105011 //
50115012 // For the rules on serializing the type of each parameter declaration, see `serializeTypeOfDeclaration`.
50125013 if ( node ) {
5013- var valueDeclaration : FunctionLikeDeclaration ;
5014+ let valueDeclaration : FunctionLikeDeclaration ;
50145015 if ( node . kind === SyntaxKind . ClassDeclaration ) {
50155016 valueDeclaration = getFirstConstructorWithBody ( < ClassDeclaration > node ) ;
50165017 }
@@ -5019,16 +5020,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
50195020 }
50205021
50215022 if ( valueDeclaration ) {
5022- var parameters = valueDeclaration . parameters ;
5023- var parameterCount = parameters . length ;
5023+ const parameters = valueDeclaration . parameters ;
5024+ const parameterCount = parameters . length ;
50245025 if ( parameterCount > 0 ) {
50255026 for ( var i = 0 ; i < parameterCount ; i ++ ) {
50265027 if ( i > 0 ) {
50275028 write ( ", " ) ;
50285029 }
50295030
50305031 if ( parameters [ i ] . dotDotDotToken ) {
5031- var parameterType = parameters [ i ] . type ;
5032+ let parameterType = parameters [ i ] . type ;
50325033 if ( parameterType . kind === SyntaxKind . ArrayType ) {
50335034 parameterType = ( < ArrayTypeNode > parameterType ) . elementType ;
50345035 }
@@ -5840,7 +5841,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
58405841 writeLine ( ) ;
58415842 write ( "}" ) ;
58425843 writeLine ( ) ;
5843- write ( `${ exportFunctionForFile } (exports);` )
5844+ write ( `${ exportFunctionForFile } (exports);` ) ;
58445845 decreaseIndent ( ) ;
58455846 writeLine ( ) ;
58465847 write ( "}" ) ;
@@ -6188,7 +6189,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
61886189 // exports_(reexports);
61896190 let reexportsVariableName = makeUniqueName ( "reexports" ) ;
61906191 writeLine ( ) ;
6191- write ( `var ${ reexportsVariableName } = {};` )
6192+ write ( `var ${ reexportsVariableName } = {};` ) ;
61926193 writeLine ( ) ;
61936194 for ( let e of ( < ExportDeclaration > importNode ) . exportClause . elements ) {
61946195 write ( `${ reexportsVariableName } ["` ) ;
@@ -6454,7 +6455,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
64546455 if ( isLineBreak ( c ) ) {
64556456 if ( firstNonWhitespace !== - 1 && ( lastNonWhitespace - firstNonWhitespace + 1 > 0 ) ) {
64566457 let part = text . substr ( firstNonWhitespace , lastNonWhitespace - firstNonWhitespace + 1 ) ;
6457- result = ( result ? result + '" + \' \ ' + "' : '' ) + part ;
6458+ result = ( result ? result + "\" + ' ' + \"" : "" ) + part ;
64586459 }
64596460 firstNonWhitespace = - 1 ;
64606461 }
@@ -6467,7 +6468,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
64676468 }
64686469 if ( firstNonWhitespace !== - 1 ) {
64696470 let part = text . substr ( firstNonWhitespace ) ;
6470- result = ( result ? result + '" + \' \ ' + "' : '' ) + part ;
6471+ result = ( result ? result + "\" + ' ' + \"" : "" ) + part ;
64716472 }
64726473
64736474 return result ;
@@ -6492,9 +6493,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
64926493 function emitJsxText ( node : JsxText ) {
64936494 switch ( compilerOptions . jsx ) {
64946495 case JsxEmit . React :
6495- write ( '"' ) ;
6496+ write ( "\"" ) ;
64966497 write ( trimReactWhitespace ( node ) ) ;
6497- write ( '"' ) ;
6498+ write ( "\"" ) ;
64986499 break ;
64996500
65006501 case JsxEmit . Preserve :
@@ -6509,9 +6510,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
65096510 switch ( compilerOptions . jsx ) {
65106511 case JsxEmit . Preserve :
65116512 default :
6512- write ( '{' ) ;
6513+ write ( "{" ) ;
65136514 emit ( node . expression ) ;
6514- write ( '}' ) ;
6515+ write ( "}" ) ;
65156516 break ;
65166517 case JsxEmit . React :
65176518 emit ( node . expression ) ;
0 commit comments