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
Companion:
class
case class Indented(width: IndentWidth, prefix: Token, outer: Region | Null) extends Region

A class describing an indentation region.

A class describing an indentation region.

Value parameters:
prefix

The token before the initial of the region

width

The principal indendation width

abstract class Region(val closedBy: Token)

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, profile: Profile)(using x$4: 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