SourceFileMethods

scala.quoted.Quotes.reflectModule.SourceFileMethods

Extension methods of SourceFile.

Attributes

Source
Quotes.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Extensions

Deprecated extensions

extension (self: Quotes.this.reflectModule.this.SourceFile)

Content of this source file.

Content of this source file.

Attributes

Source
Quotes.scala

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

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

Attributes

Deprecated
[Since version 3.9.0] This will return `None` for files that are not on disk, such as in an IDE or in the REPL.
Source
Quotes.scala
def jpath: Path

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

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

Attributes

Deprecated
[Since version 3.9.0] This will return `null` for files that are not on disk, such as in an IDE or in the REPL.
Source
Quotes.scala
def name: String

Name of the source file.

Name of the source file.

Attributes

Source
Quotes.scala
def path: String

Path of the source file, if the file exists on disk. Otherwise, the path will be for a virtual file.

Path of the source file, if the file exists on disk. Otherwise, the path will be for a virtual file.

Attributes

Source
Quotes.scala