DiagrammedExpr

DiagrammedExpr companion object that provides factory methods to create different sub types of DiagrammedExpr

DiagrammedExpr is used by code generated from DiagrammedAssertionsMacro, it needs to be public so that the generated code can be compiled. It is expected that ScalaTest users would ever need to use DiagrammedExpr directly.

Companion:
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def applyExpr[T](qualifier: DiagrammedExpr[_], args: List[DiagrammedExpr[_]], value: T, anchor: Int): DiagrammedExpr[T]

Create apply DiagrammedExpr that wraps Apply or TypeApply expression.

Create apply DiagrammedExpr that wraps Apply or TypeApply expression.

Value parameters:
anchor

the anchor of the expression

args

the arguments of the Apply or TypeApply expression

qualifier

the qualifier of the Apply or TypeApply expression

value

the expression value

Returns:

an apply DiagrammedExpr

def byNameExpr[T](expression: => T, anchor: Int): DiagrammedExpr[T]

Create by-name DiagrammedExpr that wraps by-name or Function expression. The created DiagrammedExpr will not be displayed in the diagram as value.

Create by-name DiagrammedExpr that wraps by-name or Function expression. The created DiagrammedExpr will not be displayed in the diagram as value.

Value parameters:
anchor

the anchor of the expression

expression

the by-name expression value

Returns:

a by-name DiagrammedExpr

def selectExpr[T](qualifier: DiagrammedExpr[_], value: T, anchor: Int): DiagrammedExpr[T]

Create select DiagrammedExpr that wraps Select expression.

Create select DiagrammedExpr that wraps Select expression.

Value parameters:
anchor

the anchor of the expression

qualifier

the qualifier of the Apply or TypeApply expression

value

the expression value

Returns:

a select DiagrammedExpr

def simpleExpr[T](expression: T, anchor: Int): DiagrammedExpr[T]

Create simple DiagrammedExpr that wraps expressions that is not Select, Apply or TypeApply.

Create simple DiagrammedExpr that wraps expressions that is not Select, Apply or TypeApply.

Value parameters:
anchor

the anchor of the expression

expression

the expression value

Returns:

a simple DiagrammedExpr