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
173173 // Add aliases back onto the possible imports list if they're not there so we can try them again with updated visibility info
174174 if len (symbolAccessibilityResult .AliasesToMakeVisible ) > 0 {
175175 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+ }
177180 }
178181 }
179182 // 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