diff options
author | Sean McDirmid <sean.mcdirmid@gmail.com> | 2006-03-10 17:25:21 +0000 |
---|---|---|
committer | Sean McDirmid <sean.mcdirmid@gmail.com> | 2006-03-10 17:25:21 +0000 |
commit | fb7e30141fd20aa0403f83e949831e51964a2ed8 (patch) | |
tree | 44d23e9e84bf63c3bf38f1f23e61484c0e205d5b /src | |
parent | d22d800a3d387689f03c400cf6baf617c5373dcf (diff) | |
download | scala-fb7e30141fd20aa0403f83e949831e51964a2ed8.tar.gz scala-fb7e30141fd20aa0403f83e949831e51964a2ed8.tar.bz2 scala-fb7e30141fd20aa0403f83e949831e51964a2ed8.zip |
Fixed bug where scaladoc chokes on finding a UR...
Fixed bug where scaladoc chokes on finding a URL for <refinement>
(whatever that means).
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/doc/DocGenerator.scala | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/doc/DocGenerator.scala b/src/compiler/scala/tools/nsc/doc/DocGenerator.scala index 9a4f3d0ccd..c4871c0f58 100644 --- a/src/compiler/scala/tools/nsc/doc/DocGenerator.scala +++ b/src/compiler/scala/tools/nsc/doc/DocGenerator.scala @@ -44,7 +44,7 @@ abstract class DocGenerator extends Models { def title : String; def save(nodes : NodeSeq) = { val path0 = outdir + "/" + path + ".html"; - //System.err.println("Writing to " + path0); + System.err.println("Writing to " + path0); val file = new File(path0); val parent = file.getParentFile(); if (!parent.exists()) parent.mkdirs(); @@ -53,9 +53,13 @@ abstract class DocGenerator extends Models { writer.write(str, 0, str.length()); writer.close(); } - def urlFor(sym : Symbol, target : String) : NodeSeq = { + def urlFor(sym : Symbol, target : String) : NodeSeq = try { if (sym.sourceFile == null) Text(sym.fullNameString('.')); else aref(urlFor(sym), target, sym.nameString); + } catch { + case e : Error => + System.err.println("SYM=" + sym); + Text(sym.toString()); } |