Levels

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

Companion:
object
class Object
trait Matchable
class Any
object Levels.type

Value members

Concrete methods

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