Companion

object Companion

Functions

Link copied to clipboard

Constructs a SourceFile by reading the contents of a file.

fun from(path: String, reader: Reader): SourceFile

Constructs a SourceFile by consuming a reader.

fun from(path: String, contents: String): SourceFile

Constructs a SourceFile from a string.