scala.meta.contrib.implicits.CommentExtensions.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scalameta_native0.5_2.13 Show documentation
Show all versions of scalameta_native0.5_2.13 Show documentation
Scalameta umbrella module that includes all public APIs
package scala.meta.contrib.implicits
import scala.meta.contrib.CommentOps
import scala.meta.contrib.DocToken
import scala.meta.tokens.Token.Comment
trait CommentExtensions {
implicit class XtensionCommentOps(c: Comment) {
@inline
def isScaladoc: Boolean = CommentOps.isScaladoc(c)
@inline
def content: Option[String] = CommentOps.content(c)
@inline
def docTokens: Option[List[DocToken]] = CommentOps.docTokens(c)
}
}
object CommentExtensions extends CommentExtensions
© 2015 - 2025 Weber Informatics LLC | Privacy Policy