Snippet

case class Snippet[T](code: () => T, codeExpression: Option[String], params: SnippetParams[T])

Captured snippet of code with: a value of type T, a string representing the expression, captured by a macro, some evaluation and display parameters

Companion:
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def mustBeVerified: Boolean
def show(expression: String): String

show the snippet either taking the expression captured by the macro or another expression passed by the caller (for example in an interpolated s2 string when -Yrangepos is disabled)

show the snippet either taking the expression captured by the macro or another expression passed by the caller (for example in an interpolated s2 string when -Yrangepos is disabled)

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product

Concrete fields

lazy val execute: T
lazy val result: String
lazy val showResult: String