Skip to content

Commit cd902ac

Browse files
committed
Revert partially changes made in 21186 - these should not be included in the LTS becouse chnges to ExtractDependencies were not yet backported. Keep sbt tests
1 parent 8e7690b commit cd902ac

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Diff for: compiler/src/dotty/tools/backend/jvm/CodeGen.scala

+1-5
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,7 @@ class CodeGen(val int: DottyBackendInterface, val primitives: DottyPrimitives)(
135135
ctx.withIncCallback: cb =>
136136
if isLocal then
137137
cb.generatedLocalClass(sourceFile, clsFile.jpath)
138-
else if !cb.enabled() then
139-
// callback is not enabled, so nonLocalClasses were not reported in ExtractAPI
140-
val fullClassName = atPhase(sbtExtractDependenciesPhase) {
141-
ExtractDependencies.classNameAsString(claszSymbol)
142-
}
138+
else
143139
cb.generatedNonLocalClass(sourceFile, clsFile.jpath, className, fullClassName)
144140
}
145141
}

0 commit comments

Comments
 (0)