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
88
88
}
89
89
else
90
90
units.foreach { unit =>
91
+ val unitCtx = ctx.fresh.setCompilationUnit(unit).withRootImports
91
92
val outputDir =
92
93
ExtractSemanticDB .semanticdbPath(
93
94
unit.source,
94
- ExtractSemanticDB .outputDirectory(using ctx.fresh.setCompilationUnit(unit).withRootImports ),
95
+ ExtractSemanticDB .outputDirectory(using unitCtx ),
95
96
sourceRoot
96
97
)
97
98
val extractor = ExtractSemanticDB .Extractor ()
98
- extractor.extract(unit.tpdTree)
99
+ extractor.extract(unit.tpdTree)( using unitCtx)
99
100
ExtractSemanticDB .write(
100
101
unit.source,
101
102
extractor.occurrences.toList,
You can’t perform that action at this time.
0 commit comments