Levels

org.specs2.specification.process.Levels
See theLevels companion object
trait Levels

Compute the "level" of each fragment to be able to represent the whole specification as a tree.

In mutable specifications text fragments add one level to the following fragments, Otherwise should and can blocks create Start/End fragments indicating that the level should go up then down

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Levels.type

Members list

Value members

Concrete methods

def fold(fragment: Fragment, level: Level): Level
def levelsToTreeLoc(mapper: Mapper): ((Fragment, Int)) => TreeLoc[Fragment]