File tree 1 file changed +1
-2
lines changed
compiler/src/dotty/tools/dotc/semanticdb
1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,6 @@ class ExtractSemanticDB private (phaseMode: ExtractSemanticDB.PhaseMode) extends
71
71
if (appendDiagnostics)
72
72
val warnings = ctx.reporter.allWarnings.groupBy(w => w.pos.source)
73
73
units.asJava.parallelStream().forEach { unit =>
74
- val unitCtx = ctx.fresh.setCompilationUnit(unit).withRootImports
75
74
warnings.get(unit.source).foreach { ws =>
76
75
ExtractSemanticDB .appendDiagnostics(unit.source, ws.map(_.toSemanticDiagnostic))
77
76
}
@@ -191,7 +190,7 @@ object ExtractSemanticDB:
191
190
private def relPath (source : SourceFile )(using ctx : Context ) =
192
191
SourceFile .relativePath(source, ctx.settings.sourceroot.value)
193
192
194
- private def semanticdbPath (source : SourceFile )(using ctx : Context ) =
193
+ private def semanticdbPath (source : SourceFile )(using Context ) =
195
194
absolutePath(semanticdbTarget.getOrElse(outputDirectory.jpath))
196
195
.resolve(" META-INF" )
197
196
.resolve(" semanticdb" )
You can’t perform that action at this time.
0 commit comments