File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
internal/transformers/declarations Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,10 @@ func (s *SymbolTrackerImpl) handleSymbolAccessibilityError(symbolAccessibilityRe
173
173
// Add aliases back onto the possible imports list if they're not there so we can try them again with updated visibility info
174
174
if len (symbolAccessibilityResult .AliasesToMakeVisible ) > 0 {
175
175
for _ , ref := range symbolAccessibilityResult .AliasesToMakeVisible {
176
- s .state .lateMarkedStatements = core .AppendIfUnique (s .state .lateMarkedStatements , ref )
176
+ // Only queue statements from the current source file, mirroring TS's per-file late painting
177
+ if ast .GetSourceFileOfNode (ref ) == s .state .currentSourceFile {
178
+ s .state .lateMarkedStatements = core .AppendIfUnique (s .state .lateMarkedStatements , ref )
179
+ }
177
180
}
178
181
}
179
182
// TODO: Do all these accessibility checks inside/after the first pass in the checker when declarations are enabled, if possible
You can’t perform that action at this time.
0 commit comments