File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
compiler/src/dotty/tools/dotc/semanticdb Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ class ExtractSemanticDB private (phaseMode: ExtractSemanticDB.PhaseMode) extends
71
71
val outputDir =
72
72
ExtractSemanticDB .semanticdbPath(
73
73
unit.source,
74
- ExtractSemanticDB .outputDirectory (using unitCtx),
74
+ ExtractSemanticDB .semanticdbOutDir (using unitCtx),
75
75
sourceRoot
76
76
)
77
77
(outputDir, ws.map(_.toSemanticDiagnostic))
@@ -86,7 +86,7 @@ class ExtractSemanticDB private (phaseMode: ExtractSemanticDB.PhaseMode) extends
86
86
val outputDir =
87
87
ExtractSemanticDB .semanticdbPath(
88
88
unit.source,
89
- ExtractSemanticDB .outputDirectory (using unitCtx),
89
+ ExtractSemanticDB .semanticdbOutDir (using unitCtx),
90
90
sourceRoot
91
91
)
92
92
val extractor = ExtractSemanticDB .Extractor ()
@@ -128,8 +128,13 @@ object ExtractSemanticDB:
128
128
.filterNot(_.isEmpty)
129
129
.map(Paths .get(_))
130
130
131
- private def outputDirectory (using Context ): Path =
132
- semanticdbTarget.getOrElse(ctx.settings.outputDir.value.jpath)
131
+ /** Destination for generated classfiles */
132
+ private def outputDirectory (using Context ): AbstractFile =
133
+ ctx.settings.outputDir.value
134
+
135
+ /** Output directory for SemanticDB files */
136
+ private def semanticdbOutDir (using Context ): Path =
137
+ semanticdbTarget.getOrElse(outputDirectory.jpath)
133
138
134
139
private def absolutePath (path : Path ): Path = path.toAbsolutePath.normalize
135
140
You can’t perform that action at this time.
0 commit comments