diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-04-09 16:28:56 +0200 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-04-21 12:56:04 +0200 |
commit | f2c351c8419a6b1fdeaa2c0a7047c8c25a16c7ce (patch) | |
tree | 5de4b6024c120e14f6170ec32fdb892cfe957cae /src/scaladoc | |
parent | e658b63b40d21a3420eb978fecd220f2b11356dd (diff) | |
download | scala-f2c351c8419a6b1fdeaa2c0a7047c8c25a16c7ce.tar.gz scala-f2c351c8419a6b1fdeaa2c0a7047c8c25a16c7ce.tar.bz2 scala-f2c351c8419a6b1fdeaa2c0a7047c8c25a16c7ce.zip |
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.
Diffstat (limited to 'src/scaladoc')
-rw-r--r-- | src/scaladoc/scala/tools/nsc/doc/model/ModelFactoryImplicitSupport.scala | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |