File tree Expand file tree Collapse file tree 4 files changed +683
-6
lines changed
compiler/src/dotty/tools/dotc/core
src-non-bootstrapped/scala Expand file tree Collapse file tree 4 files changed +683
-6
lines changed Original file line number Diff line number Diff line change @@ -1445,15 +1445,13 @@ class Definitions {
14451445 * objects with the same name.
14461446 */
14471447 @ tu lazy val StdLibPatchesPackage : TermSymbol = requiredPackage(" scala.runtime.stdLibPatches" )
1448- @ tu private lazy val ScalaPredefModuleClassPatch : Symbol = getModuleIfDefined(" scala.runtime.stdLibPatches.Predef" ).moduleClass
14491448 @ tu private lazy val LanguageModuleClassPatch : Symbol = getModuleIfDefined(" scala.runtime.stdLibPatches.language" ).moduleClass
14501449
14511450 /** If `sym` is a patched library class, the source file of its patch class,
14521451 * otherwise `NoSource`
14531452 */
14541453 def patchSource (sym : Symbol )(using Context ): SourceFile =
1455- if sym == ScalaPredefModuleClass then ScalaPredefModuleClassPatch .source
1456- else if sym == LanguageModuleClass then LanguageModuleClassPatch .source
1454+ if sym == LanguageModuleClass then LanguageModuleClassPatch .source
14571455 else NoSource
14581456
14591457 /** A finalizer that patches standard library classes.
@@ -1537,9 +1535,7 @@ class Definitions {
15371535 denot.sourceModule.info = denot.typeRef // we run into a cyclic reference when patching if this line is omitted
15381536 patch2(denot, patchCls)
15391537
1540- if denot.name == tpnme.Predef .moduleClassName && denot.symbol == ScalaPredefModuleClass then
1541- patchWith(ScalaPredefModuleClassPatch )
1542- else if denot.name == tpnme.language.moduleClassName && denot.symbol == LanguageModuleClass then
1538+ if denot.name == tpnme.language.moduleClassName && denot.symbol == LanguageModuleClass then
15431539 patchWith(LanguageModuleClassPatch )
15441540 end patchStdLibClass
15451541
File renamed without changes.
You can’t perform that action at this time.
0 commit comments