@@ -998,11 +998,12 @@ function createBinder(): (file: SourceFile, options: CompilerOptions) => void {
998
998
const saveExceptionTarget = currentExceptionTarget ;
999
999
const saveActiveLabelList = activeLabelList ;
1000
1000
const saveHasExplicitReturn = hasExplicitReturn ;
1001
- const isImmediatelyInvoked = ( containerFlags & ContainerFlags . IsFunctionExpression &&
1001
+ const isImmediatelyInvoked = (
1002
+ containerFlags & ContainerFlags . IsFunctionExpression &&
1002
1003
! hasSyntacticModifier ( node , ModifierFlags . Async ) &&
1003
1004
! ( node as FunctionLikeDeclaration ) . asteriskToken &&
1004
- ! ! getImmediatelyInvokedFunctionExpression ( node ) ) ||
1005
- node . kind === SyntaxKind . ClassStaticBlockDeclaration ;
1005
+ ! ! getImmediatelyInvokedFunctionExpression ( node )
1006
+ ) || node . kind === SyntaxKind . ClassStaticBlockDeclaration ;
1006
1007
// A non-async, non-generator IIFE is considered part of the containing control flow. Return statements behave
1007
1008
// similarly to break statements that exit to a label just past the statement body.
1008
1009
if ( ! isImmediatelyInvoked ) {
@@ -2298,7 +2299,11 @@ function createBinder(): (file: SourceFile, options: CompilerOptions) => void {
2298
2299
function declareModuleSymbol ( node : ModuleDeclaration ) : ModuleInstanceState {
2299
2300
const state = getModuleInstanceState ( node ) ;
2300
2301
const instantiated = state !== ModuleInstanceState . NonInstantiated ;
2301
- declareSymbolAndAddToSymbolTable ( node , instantiated ? SymbolFlags . ValueModule : SymbolFlags . NamespaceModule , instantiated ? SymbolFlags . ValueModuleExcludes : SymbolFlags . NamespaceModuleExcludes ) ;
2302
+ declareSymbolAndAddToSymbolTable (
2303
+ node ,
2304
+ instantiated ? SymbolFlags . ValueModule : SymbolFlags . NamespaceModule ,
2305
+ instantiated ? SymbolFlags . ValueModuleExcludes : SymbolFlags . NamespaceModuleExcludes ,
2306
+ ) ;
2302
2307
return state ;
2303
2308
}
2304
2309
0 commit comments