diff options
Diffstat (limited to 'dottydoc/jvm/src/dotty/tools/dottydoc/model/comment/CommentExpander.scala')
-rw-r--r-- | dottydoc/jvm/src/dotty/tools/dottydoc/model/comment/CommentExpander.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dottydoc/jvm/src/dotty/tools/dottydoc/model/comment/CommentExpander.scala b/dottydoc/jvm/src/dotty/tools/dottydoc/model/comment/CommentExpander.scala index f90e95f33..b5f6b903a 100644 --- a/dottydoc/jvm/src/dotty/tools/dottydoc/model/comment/CommentExpander.scala +++ b/dottydoc/jvm/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.base.docstring(sym).map(c => template(c.chrs)).getOrElse("") + if (docStr.length == 0) ctx.docbase.docstring(sym).map(c => template(c.chrs)).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.base.docstring(sym).map(_.chrs).getOrElse("") + val raw = ctx.docbase.docstring(sym).map(_.chrs).getOrElse("") defs(sym) ++= defines(raw).map { str => { val start = skipWhitespace(str, "@define".length) @@ -328,7 +328,7 @@ trait CommentExpander { * the position of the doc comment of the overridden version is returned instead. */ def docCommentPos(sym: Symbol)(implicit ctx: Context): Position = - ctx.base.docstring(sym).map(_.pos).getOrElse(NoPosition) + ctx.docbase.docstring(sym).map(_.pos).getOrElse(NoPosition) /** A version which doesn't consider self types, as a temporary measure: * an infinite loop has broken out between superComment and cookedDocComment |