diff options
author | Paul Phillips <paulp@improving.org> | 2012-11-06 16:57:13 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-11-06 16:57:13 -0800 |
commit | fc89074f50f278ee31313dd136f10bd046e137cc (patch) | |
tree | e7b04b831564e26126cbe962d01bf60da0453369 /src/compiler/scala/tools/nsc/typechecker/Namers.scala | |
parent | e51e9b5c5a357967f642262d88244dae550c91b2 (diff) | |
download | scala-fc89074f50f278ee31313dd136f10bd046e137cc.tar.gz scala-fc89074f50f278ee31313dd136f10bd046e137cc.tar.bz2 scala-fc89074f50f278ee31313dd136f10bd046e137cc.zip |
Deprecation patrol.
Threw in deprecation warning reduction in src/compiler.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Namers.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Namers.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Namers.scala b/src/compiler/scala/tools/nsc/typechecker/Namers.scala index 728eefc96e..3f5410eb45 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Namers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Namers.scala @@ -338,7 +338,7 @@ trait Namers extends MethodSynthesis { if (clazz.sourceFile != null && clazz.sourceFile != contextFile) debugwarn("!!! Source mismatch in " + clazz + ": " + clazz.sourceFile + " vs. " + contextFile) - clazz.sourceFile = contextFile + clazz.associatedFile = contextFile if (clazz.sourceFile != null) { assert(currentRun.canRedefine(clazz) || clazz.sourceFile == currentRun.symSource(clazz), clazz.sourceFile) currentRun.symSource(clazz) = clazz.sourceFile @@ -426,7 +426,7 @@ trait Namers extends MethodSynthesis { setPrivateWithin(tree, m.moduleClass) } if (m.owner.isPackageClass && !m.isPackage) { - m.moduleClass.sourceFile = contextFile + m.moduleClass.associatedFile = contextFile currentRun.symSource(m) = m.moduleClass.sourceFile registerTopLevelSym(m) } |