@@ -1140,80 +1140,80 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
11401140 /// Emit an name/value pair for an attribute (e.g. "x: 3")
11411141 function emitJsxAttribute ( node : JsxAttribute ) {
11421142 emitAttributeName ( node . name ) ;
1143- write ( ': ' ) ;
1143+ write ( ": " ) ;
11441144 if ( node . initializer ) {
11451145 emit ( node . initializer ) ;
11461146 }
11471147 else {
1148- write ( ' true' ) ;
1148+ write ( " true" ) ;
11491149 }
11501150 }
11511151
11521152 function emitJsxElement ( openingNode : JsxOpeningLikeElement , children ?: JsxChild [ ] ) {
11531153 // Call React.createElement(tag, ...
11541154 emitLeadingComments ( openingNode ) ;
1155- write ( ' React.createElement(' ) ;
1155+ write ( " React.createElement(" ) ;
11561156 emitTagName ( openingNode . tagName ) ;
1157- write ( ', ' ) ;
1157+ write ( ", " ) ;
11581158
11591159 // Attribute list
11601160 if ( openingNode . attributes . length === 0 ) {
1161- // When there are no attributes, React wants ' null'
1162- write ( ' null' ) ;
1161+ // When there are no attributes, React wants " null"
1162+ write ( " null" ) ;
11631163 }
11641164 else {
11651165 // Either emit one big object literal (no spread attribs), or
11661166 // a call to React.__spread
11671167 let attrs = openingNode . attributes ;
11681168 if ( attrs . some ( attr => attr . kind === SyntaxKind . JsxSpreadAttribute ) ) {
1169- write ( ' React.__spread(' ) ;
1169+ write ( " React.__spread(" ) ;
11701170
11711171 let haveOpenedObjectLiteral = false ;
11721172 for ( let i = 0 ; i < attrs . length ; i ++ ) {
11731173 if ( attrs [ i ] . kind === SyntaxKind . JsxSpreadAttribute ) {
11741174 // If this is the first argument, we need to emit a {} as the first argument
11751175 if ( i === 0 ) {
1176- write ( ' {}, ' ) ;
1176+ write ( " {}, " ) ;
11771177 }
11781178
11791179 if ( haveOpenedObjectLiteral ) {
1180- write ( '}' ) ;
1180+ write ( "}" ) ;
11811181 haveOpenedObjectLiteral = false ;
11821182 }
11831183 if ( i > 0 ) {
1184- write ( ', ' ) ;
1184+ write ( ", " ) ;
11851185 }
11861186 emit ( ( < JsxSpreadAttribute > attrs [ i ] ) . expression ) ;
11871187 }
11881188 else {
11891189 Debug . assert ( attrs [ i ] . kind === SyntaxKind . JsxAttribute ) ;
11901190 if ( haveOpenedObjectLiteral ) {
1191- write ( ', ' ) ;
1191+ write ( ", " ) ;
11921192 }
11931193 else {
11941194 haveOpenedObjectLiteral = true ;
11951195 if ( i > 0 ) {
1196- write ( ', ' ) ;
1196+ write ( ", " ) ;
11971197 }
1198- write ( '{' ) ;
1198+ write ( "{" ) ;
11991199 }
12001200 emitJsxAttribute ( < JsxAttribute > attrs [ i ] ) ;
12011201 }
12021202 }
1203- if ( haveOpenedObjectLiteral ) write ( '}' ) ;
1203+ if ( haveOpenedObjectLiteral ) write ( "}" ) ;
12041204
1205- write ( ')' ) ; // closing paren to React.__spread(
1205+ write ( ")" ) ; // closing paren to React.__spread(
12061206 }
12071207 else {
12081208 // One object literal with all the attributes in them
1209- write ( '{' ) ;
1209+ write ( "{" ) ;
12101210 for ( var i = 0 ; i < attrs . length ; i ++ ) {
12111211 if ( i > 0 ) {
1212- write ( ', ' ) ;
1212+ write ( ", " ) ;
12131213 }
12141214 emitJsxAttribute ( < JsxAttribute > attrs [ i ] ) ;
12151215 }
1216- write ( '}' ) ;
1216+ write ( "}" ) ;
12171217 }
12181218 }
12191219
@@ -1235,15 +1235,15 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
12351235 }
12361236 }
12371237 else {
1238- write ( ', ' ) ;
1238+ write ( ", " ) ;
12391239 emit ( children [ i ] ) ;
12401240 }
12411241
12421242 }
12431243 }
12441244
12451245 // Closing paren
1246- write ( ')' ) ; // closes ' React.createElement('
1246+ write ( ")" ) ; // closes " React.createElement("
12471247 emitTrailingComments ( openingNode ) ;
12481248 }
12491249
@@ -1259,20 +1259,20 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
12591259 function jsxEmitPreserve ( node : JsxElement | JsxSelfClosingElement ) {
12601260 function emitJsxAttribute ( node : JsxAttribute ) {
12611261 emit ( node . name ) ;
1262- write ( '=' ) ;
1262+ write ( "=" ) ;
12631263 emit ( node . initializer ) ;
12641264 }
12651265
12661266 function emitJsxSpreadAttribute ( node : JsxSpreadAttribute ) {
1267- write ( ' {...' ) ;
1267+ write ( " {..." ) ;
12681268 emit ( node . expression ) ;
1269- write ( '}' ) ;
1269+ write ( "}" ) ;
12701270 }
12711271
12721272 function emitAttributes ( attribs : NodeArray < JsxAttribute | JsxSpreadAttribute > ) {
12731273 for ( let i = 0 , n = attribs . length ; i < n ; i ++ ) {
12741274 if ( i > 0 ) {
1275- write ( ' ' ) ;
1275+ write ( " " ) ;
12761276 }
12771277
12781278 if ( attribs [ i ] . kind === SyntaxKind . JsxSpreadAttribute ) {
@@ -1286,26 +1286,26 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
12861286 }
12871287
12881288 function emitJsxOpeningOrSelfClosingElement ( node : JsxOpeningElement | JsxSelfClosingElement ) {
1289- write ( '<' ) ;
1289+ write ( "<" ) ;
12901290 emit ( node . tagName ) ;
12911291 if ( node . attributes . length > 0 || ( node . kind === SyntaxKind . JsxSelfClosingElement ) ) {
1292- write ( ' ' ) ;
1292+ write ( " " ) ;
12931293 }
12941294
12951295 emitAttributes ( node . attributes ) ;
12961296
12971297 if ( node . kind === SyntaxKind . JsxSelfClosingElement ) {
1298- write ( '/>' ) ;
1298+ write ( "/>" ) ;
12991299 }
13001300 else {
1301- write ( '>' ) ;
1301+ write ( ">" ) ;
13021302 }
13031303 }
13041304
13051305 function emitJsxClosingElement ( node : JsxClosingElement ) {
1306- write ( '</' ) ;
1306+ write ( "</" ) ;
13071307 emit ( node . tagName ) ;
1308- write ( '>' ) ;
1308+ write ( ">" ) ;
13091309 }
13101310
13111311 function emitJsxElement ( node : JsxElement ) {
0 commit comments