SourceFile

class SourceFile(filename: String, content: String, val language: Language)

Parameters

filename

The filename (not full path, but the extension is used for language-specific parsing).

content

The exact content of the file, unix or windows newlines will be preserved

Constructors

Link copied to clipboard
constructor(filename: String, content: String, language: Language)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
inner class ToBeLiteral

Represents a section of the sourcecode which is a .toBe(LITERAL) call. It might also be .toBe_TODO() or toBe LITERAL (infix notation).

Properties

Link copied to clipboard

Returns the content of the file, possibly modified by ToBeLiteral.setLiteralAndGetNewlineDelta.

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun replaceOnLine(lineOneIndexed: Int, find: String, replace: String)