File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -176,7 +176,6 @@ import {
176176 isInTopLevelContext ,
177177 isJSDocConstructSignature ,
178178 isJSDocEnumTag ,
179- isJSDocImportTag ,
180179 isJSDocTemplateTag ,
181180 isJSDocTypeAlias ,
182181 isJSDocTypeAssertion ,
@@ -1109,13 +1108,8 @@ function createBinder(): (file: SourceFile, options: CompilerOptions) => void {
11091108 if ( canHaveFlowNode ( node ) && node . flowNode ) {
11101109 node . flowNode = undefined ;
11111110 }
1112- if ( isJSDocImportTag ( node ) ) {
1113- bindJSDocImportTag ( node ) ;
1114- }
1115- else {
1116- bindEachChild ( node ) ;
1117- bindJSDoc ( node ) ;
1118- }
1111+ bindEachChild ( node ) ;
1112+ bindJSDoc ( node ) ;
11191113 inAssignmentPattern = saveInAssignmentPattern ;
11201114 return ;
11211115 }
@@ -3954,6 +3948,9 @@ export function getContainerFlags(node: Node): ContainerFlags {
39543948 case SyntaxKind . ClassStaticBlockDeclaration :
39553949 return ContainerFlags . IsContainer | ContainerFlags . IsControlFlowContainer | ContainerFlags . HasLocals | ContainerFlags . IsFunctionLike ;
39563950
3951+ case SyntaxKind . JSDocImportTag :
3952+ return ContainerFlags . IsContainer | ContainerFlags . IsControlFlowContainer | ContainerFlags . HasLocals ;
3953+
39573954 case SyntaxKind . FunctionExpression :
39583955 case SyntaxKind . ArrowFunction :
39593956 return ContainerFlags . IsContainer | ContainerFlags . IsControlFlowContainer | ContainerFlags . HasLocals | ContainerFlags . IsFunctionLike | ContainerFlags . IsFunctionExpression ;
You can’t perform that action at this time.
0 commit comments