File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
swc_ecma_transforms_proposal/tests/decorators/issue-8629
swc_ecma_transforms_typescript/src Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 1- // main.ts
21var _computedKey ;
32_computedKey = Symbol . dispose ;
3+ // main.ts
44export class Disposable {
55 [ _computedKey ] ( ) {
66 console . log ( 'dispose' ) ;
77 }
88}
9- using _disposable = new Disposable ( )
9+ using _disposable = new Disposable ( ) ;
1010console . log ( 'ok' ) ;
Original file line number Diff line number Diff line change @@ -228,12 +228,9 @@ where
228228 }
229229
230230 if !self . config . verbatim_module_syntax {
231- let span = if n. shebang . is_some ( ) {
232- n. span
233- . with_lo ( n. body . first ( ) . map ( |s| s. span_lo ( ) ) . unwrap_or ( n. span . lo ) )
234- } else {
235- n. span
236- } ;
231+ let span = n
232+ . span
233+ . with_lo ( n. body . first ( ) . map ( |s| s. span_lo ( ) ) . unwrap_or ( n. span . lo ) ) ;
237234
238235 let JsxDirectives {
239236 pragma,
You can’t perform that action at this time.
0 commit comments