SourceFileMethods

Extension methods of SourceFile

Source:
Quotes.scala
class Object
trait Matchable
class Any

Extensions

Deprecated extensions

extension (self: SourceFile)

Content of this source file

Content of this source file

Source:
Quotes.scala

Path to this source file. May be None for virtual files such as in the REPL.

Path to this source file. May be None for virtual files such as in the REPL.

Source:
Quotes.scala
def jpath: Path

Path to this source file. May be null for virtual files such as in the REPL.

Path to this source file. May be null for virtual files such as in the REPL.

Deprecated
Source:
Quotes.scala

Name of the source file

Name of the source file

Source:
Quotes.scala

Path of the source file.

Path of the source file.

It does not necessarily point to a path in the filesystem, it could be the path of a virtual file. Use getJPath to get paths to the filesystem.

Source:
Quotes.scala