From f2c351c8419a6b1fdeaa2c0a7047c8c25a16c7ce Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Tue, 9 Apr 2013 16:28:56 +0200 Subject: SI-7345 Rationalize overloads of Context#make Used default arguments and removed of variations only used in one place. I couldn't eliminate them all: one remaining overload avoids allocating a new context when the scope/owner/tree don't change, but moving this optimizatin to the primary overload of make breaks things. This is noted in a TODO comment. --- .../scala/tools/nsc/doc/model/ModelFactoryImplicitSupport.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/scaladoc') diff --git a/src/scaladoc/scala/tools/nsc/doc/model/ModelFactoryImplicitSupport.scala b/src/scaladoc/scala/tools/nsc/doc/model/ModelFactoryImplicitSupport.scala index 1f87f935f2..65b00d4673 100644 --- a/src/scaladoc/scala/tools/nsc/doc/model/ModelFactoryImplicitSupport.scala +++ b/src/scaladoc/scala/tools/nsc/doc/model/ModelFactoryImplicitSupport.scala @@ -228,7 +228,7 @@ trait ModelFactoryImplicitSupport { try { context.flushBuffer() /* any errors here should not prevent future findings */ // TODO: Not sure this is the right thing to do -- seems similar to what scalac should be doing - val context2 = context.make(context.unit, context.tree, sym.owner, context.scope, context.imports) + val context2 = context.make(owner = sym.owner) val search = inferImplicit(EmptyTree, tpe, false, false, context2, false) context.flushBuffer() /* any errors here should not prevent future findings */ -- cgit v1.2.3