@@ -976,7 +976,7 @@ export function tsPlugin(options?: {
976
976
977
977
tsParseModuleBlock ( ) : Node {
978
978
const node = this . startNode ( ) ;
979
- super . enterScope ( TS_SCOPE_OTHER ) ;
979
+ this . enterScope ( TS_SCOPE_OTHER ) ;
980
980
this . expect ( tt . braceL ) ;
981
981
// Inside of a module block is considered "top-level", meaning it can have imports and exports.
982
982
node . body = [ ] ;
@@ -1000,7 +1000,7 @@ export function tsPlugin(options?: {
1000
1000
this . unexpected ( ) ;
1001
1001
}
1002
1002
if ( this . match ( tt . braceL ) ) {
1003
- super . enterScope ( TS_SCOPE_TS_MODULE ) ;
1003
+ this . enterScope ( TS_SCOPE_TS_MODULE ) ;
1004
1004
1005
1005
node . body = this . tsParseModuleBlock ( ) ;
1006
1006
@@ -2509,7 +2509,7 @@ export function tsPlugin(options?: {
2509
2509
// `global { }` (with no `declare`) may appear inside an ambient module declaration.
2510
2510
// Would like to use tsParseAmbientExternalModuleDeclaration here, but already ran past "global".
2511
2511
if ( this . match ( tt . braceL ) ) {
2512
- super . enterScope ( TS_SCOPE_TS_MODULE ) ;
2512
+ this . enterScope ( TS_SCOPE_TS_MODULE ) ;
2513
2513
const mod = node ;
2514
2514
mod . global = true ;
2515
2515
mod . id = expr ;
@@ -2599,7 +2599,7 @@ export function tsPlugin(options?: {
2599
2599
this . tsParseModuleOrNamespaceDeclaration ( inner , true ) ;
2600
2600
node . body = inner ;
2601
2601
} else {
2602
- super . enterScope ( TS_SCOPE_TS_MODULE ) ;
2602
+ this . enterScope ( TS_SCOPE_TS_MODULE ) ;
2603
2603
2604
2604
node . body = this . tsParseModuleBlock ( ) ;
2605
2605
0 commit comments