@@ -346,7 +346,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
346
346
} ;
347
347
348
348
function isUniqueLocalName ( name : string , container : Node ) : boolean {
349
- for ( let node = container ; isNodeDescendentOf ( node , container ) ; node = node . nextContainer ) {
349
+ for ( let node = container ; isNodeDescendantOf ( node , container ) ; node = node . nextContainer ) {
350
350
if ( node . locals && hasProperty ( node . locals , name ) ) {
351
351
// We conservatively include alias symbols to cover cases where they're emitted as locals
352
352
if ( node . locals [ name ] . flags & ( SymbolFlags . Value | SymbolFlags . ExportValue | SymbolFlags . Alias ) ) {
@@ -1529,7 +1529,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
1529
1529
return ;
1530
1530
}
1531
1531
}
1532
- else if ( resolver . getNodeCheckFlags ( node ) & NodeCheckFlags . BodyScopedClassBinding ) {
1532
+ else if ( resolver . getNodeCheckFlags ( node ) & NodeCheckFlags . SelfReferenceInDecoratedClass ) {
1533
1533
// Due to the emit for class decorators, any reference to the class from inside of the class body
1534
1534
// must instead be rewritten to point to a temporary variable to avoid issues with the double-bind
1535
1535
// behavior of class names in ES6.
@@ -5203,7 +5203,7 @@ const _super = (function (geti, seti) {
5203
5203
// [Example 4]
5204
5204
//
5205
5205
5206
- if ( resolver . getNodeCheckFlags ( node ) & NodeCheckFlags . ClassWithBodyScopedClassBinding ) {
5206
+ if ( resolver . getNodeCheckFlags ( node ) & NodeCheckFlags . DecoratedClassWithSelfReference ) {
5207
5207
decoratedClassAlias = unescapeIdentifier ( makeUniqueName ( node . name ? node . name . text : "default" ) ) ;
5208
5208
decoratedClassAliases [ getNodeId ( node ) ] = decoratedClassAlias ;
5209
5209
write ( `let ${ decoratedClassAlias } ;` ) ;
0 commit comments