KlipContext

data class KlipContext(path: String, key: String, update: Boolean)

A container to pass in compiler-plugin data

Parameters

path

file path to retrieve and save klip for the given context

key

key to write the klip under in the file at path

update

whether the klip should be overridden instead of asserted

Constructors

KlipContext
Link copied to clipboard
common
fun KlipContext(path: String, key: String, update: Boolean)

Properties

key
Link copied to clipboard
common
val key: String
path
Link copied to clipboard
common
val path: String
update
Link copied to clipboard
common
val update: Boolean

Extensions

validate
Link copied to clipboard
common
fun KlipContext?.validate()

Utility function to verify compiler-injected arguments