CodeSource

ammonite.util.Util.CodeSource
case class CodeSource(wrapperName: Name, flexiblePkgName: Seq[Name], pkgRoot: Seq[Name], path: Option[Path])

Information about where a particular block of code came from; path is optional because some code snippets are synthetic, which means any filename is entirely synthetic and $file imports do not work in them. However, there are many snippets of code, e.g. repl commands and such, which have a "fake" path because we want to allow $file imports relative to some path or working-directory

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def fileName: String
def filePathPrefix: Seq[String]
def fullName: Seq[Name]
def jvmPathPrefix: String
def pkgName: Seq[Name]
def printablePath: String

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product