ParsedComment

dotty.tools.dotc.util.ParsedComment
See theParsedComment companion object
class ParsedComment(val comment: Comment)

A parsed doc comment.

Attributes

comment

The doc comment to parse

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def paramDoc(name: TermName): Option[String]

The @param section corresponding to name.

The @param section corresponding to name.

Attributes

name

The parameter name whose documentation to extract.

Returns:

The formatted documentation corresponding to name.

def renderAsMarkdown(using Context): String

Renders this comment as markdown.

Renders this comment as markdown.

The different sections are formatted according to the mapping in knownTags.

Attributes

Concrete fields

val content: String

The content of this comment, after expansion if possible.

The content of this comment, after expansion if possible.

Attributes

lazy val mainDoc: String

The "main" documentation for this comment. That is, the comment before any section starts.

The "main" documentation for this comment. That is, the comment before any section starts.

Attributes