Scanners

object Scanners
class Object
trait Matchable
class Any

Type members

Classlikes

case class InBraces(outer: Region) extends Region
case class InCase(outer: Region) extends Region
case class InParens(prefix: Token, outer: Region) extends Region
case class InString(multiLine: Boolean, outer: Region) extends Region
Companion
object
object IndentWidth
Companion
class
case class Indented(width: IndentWidth, others: Set[IndentWidth], prefix: Token, outer: Region | Null) extends Region

A class describing an indentation region.

A class describing an indentation region.

Value Params
others

Other indendation widths > width of lines in the same region

prefix

The token before the initial of the region

width

The principal indendation width

abstract class Region

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

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 Scanner(source: SourceFile, val startFrom: Offset)(using x$3: Context) extends ScannerCommon
abstract class ScannerCommon(source: SourceFile)(using x$2: Context) extends CharArrayReader with TokenData
trait TokenData

Types

type Offset = Int

Offset into source character array

Offset into source character array

type Token = Int

Value members

Concrete methods

Concrete fields

An undefined offset

An undefined offset