File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3449,6 +3449,9 @@ export class Compiler extends DiagnosticEmitter {
3449
3449
expr = this . module . unreachable ( ) ;
3450
3450
}
3451
3451
}
3452
+ // debug location is added here so the caller doesn't have to. means: compilation of an expression
3453
+ // must go through this function, with the respective per-kind functions not being used directly.
3454
+ if ( this . options . sourceMap ) this . addDebugLocation ( expr , expression . range ) ;
3452
3455
// ensure conversion and wrapping in case the respective function doesn't on its own
3453
3456
let currentType = this . currentType ;
3454
3457
let wrap = ( constraints & Constraints . MustWrap ) != 0 ;
@@ -3462,9 +3465,6 @@ export class Compiler extends DiagnosticEmitter {
3462
3465
}
3463
3466
}
3464
3467
if ( wrap ) expr = this . ensureSmallIntegerWrap ( expr , currentType ) ;
3465
- // debug location is added here so the caller doesn't have to. means: compilation of an expression
3466
- // must go through this function, with the respective per-kind functions not being used directly.
3467
- if ( this . options . sourceMap ) this . addDebugLocation ( expr , expression . range ) ;
3468
3468
return expr ;
3469
3469
}
3470
3470
You can’t perform that action at this time.
0 commit comments