On Tue, Feb 5, 2013 at 11:37 AM, Jason Zaugg <notifications@github.com>wrote:

> In src/compiler/scala/tools/nsc/interactive/Global.scala:
>
> > -          catch {
> > -            case ex: ControlThrowable => throw ex
> > -            case ex: Throwable =>
> > -              println("error in hyperlinking: " + ex)
> > -              ex.printStackTrace()
> > +  private[interactive] def forceDocComment(sym: Symbol, unit: RichCompilationUnit) {
> > +    // Either typer has been run and we don't find DocDef,
> > +    // or we force the targeted typecheck here.
> > +    // In both cases doc comment maps should be filled for the subject symbol.
> > +    val docTree =
> > +      unit.body find { t =>
> > +        t match {
> > +          case DocDef(_, defn) if defn.symbol eq sym => true
> > +          case _ => false
> > +        }
> > +      }
>
> More concisely:
>
>  find {
>   case DocDef(...) =>
>   case _ =>
>
> I thought your version supplies partial function, whereas find requires
total. Am I wrong?

>  —
> Reply to this email directly or view it on GitHub<https://github.com/scala/scala/pull/2065/files#r2888991>.
>
>