All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mdoc.internal.markdown.ParsedSource.scala Maven / Gradle / Ivy

There is a newer version: 2.6.1
Show newest version
package mdoc.internal.markdown

import scala.meta.Position
import scala.meta.Tree
import scala.meta.Source
import scala.meta.inputs.Input
import mdoc.document.Section

case class ParsedSource(source: Tree, stats: List[Tree]) {
  def pos: Position = source.pos
}

object ParsedSource {
  def apply(source: Source): ParsedSource = ParsedSource(source, source.stats)
  def empty = ParsedSource(Source(Nil), Nil)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy