SourceFile

object SourceFile
Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(file: AbstractFile, codec: Codec): SourceFile
def isScript(file: AbstractFile, content: Array[Char]): Boolean

Return true if file is a script: if filename extension is not .scala and has a script header.

Return true if file is a script: if filename extension is not .scala and has a script header.

def relativePath(source: SourceFile, reference: String): String

Returns the relative path of source within the reference path

Returns the relative path of source within the reference path

It returns the absolute path of source if it is not contained in reference.

def virtual(name: String, content: String, maybeIncomplete: Boolean): SourceFile

Implicits

Implicits

implicit def fromContext(using Context): SourceFile