@@ -346,7 +346,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
346346 } ;
347347
348348 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 ) {
350350 if ( node . locals && hasProperty ( node . locals , name ) ) {
351351 // We conservatively include alias symbols to cover cases where they're emitted as locals
352352 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
15291529 return ;
15301530 }
15311531 }
1532- else if ( resolver . getNodeCheckFlags ( node ) & NodeCheckFlags . BodyScopedClassBinding ) {
1532+ else if ( resolver . getNodeCheckFlags ( node ) & NodeCheckFlags . SelfReferenceInDecoratedClass ) {
15331533 // Due to the emit for class decorators, any reference to the class from inside of the class body
15341534 // must instead be rewritten to point to a temporary variable to avoid issues with the double-bind
15351535 // behavior of class names in ES6.
@@ -5203,7 +5203,7 @@ const _super = (function (geti, seti) {
52035203 // [Example 4]
52045204 //
52055205
5206- if ( resolver . getNodeCheckFlags ( node ) & NodeCheckFlags . ClassWithBodyScopedClassBinding ) {
5206+ if ( resolver . getNodeCheckFlags ( node ) & NodeCheckFlags . DecoratedClassWithSelfReference ) {
52075207 decoratedClassAlias = unescapeIdentifier ( makeUniqueName ( node . name ? node . name . text : "default" ) ) ;
52085208 decoratedClassAliases [ getNodeId ( node ) ] = decoratedClassAlias ;
52095209 write ( `let ${ decoratedClassAlias } ;` ) ;
0 commit comments