aboutsummaryrefslogtreecommitdiff
path: root/dottydoc
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2016-08-24 17:23:32 +0200
committerFelix Mulder <felix.mulder@gmail.com>2016-10-06 17:08:00 +0200
commit30d8135430614573549974e9a6013e324b3d6f8a (patch)
tree1cd915ba461a14b817eb4b019e0fd12628dea831 /dottydoc
parent77dc769899a37b8f414befa6468d62413b1655fc (diff)
downloaddotty-30d8135430614573549974e9a6013e324b3d6f8a.tar.gz
dotty-30d8135430614573549974e9a6013e324b3d6f8a.tar.bz2
dotty-30d8135430614573549974e9a6013e324b3d6f8a.zip
Add `Comments` object instead of `Scanners.Comment` case class
Diffstat (limited to 'dottydoc')
-rw-r--r--dottydoc/src/dotty/tools/dottydoc/model/comment/CommentExpander.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/dottydoc/src/dotty/tools/dottydoc/model/comment/CommentExpander.scala b/dottydoc/src/dotty/tools/dottydoc/model/comment/CommentExpander.scala
index 32a0d8128..7e213c2f3 100644
--- a/dottydoc/src/dotty/tools/dottydoc/model/comment/CommentExpander.scala
+++ b/dottydoc/src/dotty/tools/dottydoc/model/comment/CommentExpander.scala
@@ -77,7 +77,7 @@ trait CommentExpander {
*/
def cookedDocComment(sym: Symbol, docStr: String = "")(implicit ctx: Context): String = cookedDocComments.getOrElseUpdate(sym, {
var ownComment =
- if (docStr.length == 0) ctx.docbase.docstring(sym).map(c => template(c.chrs)).getOrElse("")
+ if (docStr.length == 0) ctx.docbase.docstring(sym).map(c => template(c.raw)).getOrElse("")
else template(docStr)
ownComment = replaceInheritDocToInheritdoc(ownComment)
@@ -287,7 +287,7 @@ trait CommentExpander {
def defineVariables(sym: Symbol)(implicit ctx: Context) = {
val Trim = "(?s)^[\\s&&[^\n\r]]*(.*?)\\s*$".r
- val raw = ctx.docbase.docstring(sym).map(_.chrs).getOrElse("")
+ val raw = ctx.docbase.docstring(sym).map(_.raw).getOrElse("")
defs(sym) ++= defines(raw).map {
str => {
val start = skipWhitespace(str, "@define".length)