Skip to content

Commit d7a3e0c

Browse files
committed
add clarifying comment
1 parent 9649ed0 commit d7a3e0c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/compiler/binder.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3949,6 +3949,7 @@ export function getContainerFlags(node: Node): ContainerFlags {
39493949
return ContainerFlags.IsContainer | ContainerFlags.IsControlFlowContainer | ContainerFlags.HasLocals | ContainerFlags.IsFunctionLike;
39503950

39513951
case SyntaxKind.JSDocImportTag:
3952+
// treat as a container to prevent using an enclosing effective host, ensuring import bindings are scoped correctly
39523953
return ContainerFlags.IsContainer | ContainerFlags.IsControlFlowContainer | ContainerFlags.HasLocals;
39533954

39543955
case SyntaxKind.FunctionExpression:

0 commit comments

Comments
 (0)