@@ -976,7 +976,7 @@ export function tsPlugin(options?: {
976976
977977 tsParseModuleBlock ( ) : Node {
978978 const node = this . startNode ( ) ;
979- super . enterScope ( TS_SCOPE_OTHER ) ;
979+ this . enterScope ( TS_SCOPE_OTHER ) ;
980980 this . expect ( tt . braceL ) ;
981981 // Inside of a module block is considered "top-level", meaning it can have imports and exports.
982982 node . body = [ ] ;
@@ -1000,7 +1000,7 @@ export function tsPlugin(options?: {
10001000 this . unexpected ( ) ;
10011001 }
10021002 if ( this . match ( tt . braceL ) ) {
1003- super . enterScope ( TS_SCOPE_TS_MODULE ) ;
1003+ this . enterScope ( TS_SCOPE_TS_MODULE ) ;
10041004
10051005 node . body = this . tsParseModuleBlock ( ) ;
10061006
@@ -2509,7 +2509,7 @@ export function tsPlugin(options?: {
25092509 // `global { }` (with no `declare`) may appear inside an ambient module declaration.
25102510 // Would like to use tsParseAmbientExternalModuleDeclaration here, but already ran past "global".
25112511 if ( this . match ( tt . braceL ) ) {
2512- super . enterScope ( TS_SCOPE_TS_MODULE ) ;
2512+ this . enterScope ( TS_SCOPE_TS_MODULE ) ;
25132513 const mod = node ;
25142514 mod . global = true ;
25152515 mod . id = expr ;
@@ -2599,7 +2599,7 @@ export function tsPlugin(options?: {
25992599 this . tsParseModuleOrNamespaceDeclaration ( inner , true ) ;
26002600 node . body = inner ;
26012601 } else {
2602- super . enterScope ( TS_SCOPE_TS_MODULE ) ;
2602+ this . enterScope ( TS_SCOPE_TS_MODULE ) ;
26032603
26042604 node . body = this . tsParseModuleBlock ( ) ;
26052605
0 commit comments