@@ -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 ) ;
@@ -1249,9 +1249,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
12491249 if ( children [ i ] . kind === SyntaxKind . JsxText ) {
12501250 let text = getTextToEmit ( < JsxText > children [ i ] ) ;
12511251 if ( text !== undefined ) {
1252- write ( ', "' ) ;
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 ) {
@@ -6440,7 +6440,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
64406440 if ( isLineBreak ( c ) ) {
64416441 if ( firstNonWhitespace !== - 1 && ( lastNonWhitespace - firstNonWhitespace + 1 > 0 ) ) {
64426442 let part = text . substr ( firstNonWhitespace , lastNonWhitespace - firstNonWhitespace + 1 ) ;
6443- result = ( result ? result + '" + \' \ ' + "' : '' ) + part ;
6443+ result = ( result ? result + "\" + ' ' + \"" : "" ) + part ;
64446444 }
64456445 firstNonWhitespace = - 1 ;
64466446 }
@@ -6453,7 +6453,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
64536453 }
64546454 if ( firstNonWhitespace !== - 1 ) {
64556455 let part = text . substr ( firstNonWhitespace ) ;
6456- result = ( result ? result + '" + \' \ ' + "' : '' ) + part ;
6456+ result = ( result ? result + "\" + ' ' + \"" : "" ) + part ;
64576457 }
64586458
64596459 return result ;
@@ -6478,9 +6478,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
64786478 function emitJsxText ( node : JsxText ) {
64796479 switch ( compilerOptions . jsx ) {
64806480 case JsxEmit . React :
6481- write ( '"' ) ;
6481+ write ( "\"" ) ;
64826482 write ( trimReactWhitespace ( node ) ) ;
6483- write ( '"' ) ;
6483+ write ( "\"" ) ;
64846484 break ;
64856485
64866486 case JsxEmit . Preserve :
@@ -6495,9 +6495,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
64956495 switch ( compilerOptions . jsx ) {
64966496 case JsxEmit . Preserve :
64976497 default :
6498- write ( '{' ) ;
6498+ write ( "{" ) ;
64996499 emit ( node . expression ) ;
6500- write ( '}' ) ;
6500+ write ( "}" ) ;
65016501 break ;
65026502 case JsxEmit . React :
65036503 emit ( node . expression ) ;
0 commit comments