File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
compiler/src/dotty/tools/dotc/semanticdb Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -88,14 +88,15 @@ class ExtractSemanticDB private (phaseMode: ExtractSemanticDB.PhaseMode) extends
8888 }
8989 else
9090 units.foreach { unit =>
91+ val unitCtx = ctx.fresh.setCompilationUnit(unit).withRootImports
9192 val outputDir =
9293 ExtractSemanticDB .semanticdbPath(
9394 unit.source,
94- ExtractSemanticDB .outputDirectory(using ctx.fresh.setCompilationUnit(unit).withRootImports ),
95+ ExtractSemanticDB .outputDirectory(using unitCtx ),
9596 sourceRoot
9697 )
9798 val extractor = ExtractSemanticDB .Extractor ()
98- extractor.extract(unit.tpdTree)
99+ extractor.extract(unit.tpdTree)( using unitCtx)
99100 ExtractSemanticDB .write(
100101 unit.source,
101102 extractor.occurrences.toList,
You can’t perform that action at this time.
0 commit comments