File tree Expand file tree Collapse file tree 3 files changed +24
-0
lines changed
swc_ecma_transforms_typescript/tests/fixture/issue-8124 Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ namespace Foo {
2
+ export var a = 1 ;
3
+ for ( var a ; a < 5 ; a ++ ) { }
4
+ }
5
+
6
+ namespace Bar {
7
+ export var b = 2 ;
8
+ var b = 3 ;
9
+ }
Original file line number Diff line number Diff line change
1
+ var Foo ;
2
+ ( function ( Foo ) {
3
+ Foo . a = 1 ;
4
+ for ( var a ; Foo . a < 5 ; Foo . a ++ ) { }
5
+ } ) ( Foo || ( Foo = { } ) ) ;
6
+ var Bar ;
7
+ ( function ( Bar ) {
8
+ Bar . b = 2 ;
9
+ var b = 3 ;
10
+ } ) ( Bar || ( Bar = { } ) ) ;
Original file line number Diff line number Diff line change @@ -3062,6 +3062,11 @@ where
3062
3062
}
3063
3063
}
3064
3064
3065
+ fn visit_mut_var_declarator ( & mut self , n : & mut VarDeclarator ) {
3066
+ // skip var declarator name
3067
+ n. init . visit_mut_with ( self ) ;
3068
+ }
3069
+
3065
3070
fn visit_mut_pat ( & mut self , n : & mut Pat ) {
3066
3071
match n {
3067
3072
Pat :: Ident ( BindingIdent { id, .. } ) => {
You can’t perform that action at this time.
0 commit comments