diff options
author | Paul Phillips <paulp@improving.org> | 2013-04-24 12:51:13 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-04-24 12:51:13 -0700 |
commit | 62b6bdc088db2e3607814dfd2f83714bec97b935 (patch) | |
tree | 0376965e18d6cd5d61cd14544323897dc1390e23 /src/compiler/scala/tools/nsc/typechecker/Namers.scala | |
parent | cdffcf8962c9fa606c027fcb5a50a4273976a576 (diff) | |
parent | 10845adebe741fc2bb5bce70df0a8da7788aa722 (diff) | |
download | scala-62b6bdc088db2e3607814dfd2f83714bec97b935.tar.gz scala-62b6bdc088db2e3607814dfd2f83714bec97b935.tar.bz2 scala-62b6bdc088db2e3607814dfd2f83714bec97b935.zip |
Merge branch 'master' into pr/warning-cleanup
Conflicts:
src/compiler/scala/tools/nsc/typechecker/Contexts.scala
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Namers.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Namers.scala | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Namers.scala b/src/compiler/scala/tools/nsc/typechecker/Namers.scala index f84a758281..541d60c16d 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Namers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Namers.scala @@ -48,7 +48,6 @@ trait Namers extends MethodSynthesis { private class NormalNamer(context: Context) extends Namer(context) def newNamer(context: Context): Namer = new NormalNamer(context) - def newNamerFor(context: Context, tree: Tree): Namer = newNamer(context.makeNewScope(tree, tree.symbol)) abstract class Namer(val context: Context) extends MethodSynth with NamerContextErrors { thisNamer => // overridden by the presentation compiler @@ -255,7 +254,7 @@ trait Namers extends MethodSynthesis { case DocDef(_, defn) => enterSym(defn) case tree @ Import(_, _) => assignSymbol(tree) - returnContext = context.makeNewImport(tree) + returnContext = context.make(tree) case _ => } returnContext @@ -1630,7 +1629,7 @@ trait Namers extends MethodSynthesis { // @M an abstract type's type parameters are entered. // TODO: change to isTypeMember ? if (defnSym.isAbstractType) - newNamerFor(ctx, tree) enterSyms tparams //@M + newNamer(ctx.makeNewScope(tree, tree.symbol)) enterSyms tparams //@M restp complete sym } } |