Region

abstract class Region

A Region indicates what encloses the current token. It can be one of the following

InString a string interpolation InParens a pair of parentheses (...) or brackets [...] InBraces a pair of braces { ... } Indented a pair of ... tokens

class Object
trait Matchable
class Any
class InString
class InParens
class InBraces
class InCase
class Indented

Value members

Abstract methods

def outer: Region | Null

The region enclosing this one, or null for the outermost region

The region enclosing this one, or null for the outermost region

Concrete methods

The enclosing region, which is required to exist

The enclosing region, which is required to exist

The indentation width, Zero if not known

The indentation width, Zero if not known

Is this region the outermost region?

Is this region the outermost region?

def proposeKnownWidth(width: IndentWidth, lastToken: Token): Unit

Show open regions as list of lines with decreasing indentations

Show open regions as list of lines with decreasing indentations

Concrete fields

var knownWidth: IndentWidth | Null