File tree Expand file tree Collapse file tree 2 files changed +16
-5
lines changed
packages/typescript/src/transpiler Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @knuckles/typescript " : patch
3
+ ---
4
+
5
+ Fix mapping for if/ifnot bindings.
Original file line number Diff line number Diff line change @@ -367,11 +367,17 @@ class Renderer {
367
367
const negate = binding . name . value === "ifnot" ;
368
368
369
369
descendants = new Chunk ( )
370
- . append ( "if (" )
371
- . append ( negate ? "!(" : "" )
372
- . append ( binding . param . value , { blame : binding . param } )
373
- . append ( negate ? ")" : "" )
374
- . append ( ") {" )
370
+ . while (
371
+ ( chunk ) =>
372
+ chunk
373
+ . append ( "if (" )
374
+ . append ( negate ? "!(" : "" )
375
+ . append ( binding . param . value , { mirror : binding . param } )
376
+ . append ( negate ? ")" : "" )
377
+ . append ( ")" ) ,
378
+ { blame : binding } ,
379
+ )
380
+ . append ( "{" )
375
381
. newline ( )
376
382
. append ( descendants )
377
383
. newline ( )
You can’t perform that action at this time.
0 commit comments