Scanners

dotty.tools.dotc.parsing.Scanners$
object Scanners

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Scanners.type

Members list

Type members

Classlikes

case class InBraces(outer: Region) extends Region

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Region
class Object
trait Matchable
class Any
Show all
case class InCase(outer: Region) extends Region

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Region
class Object
trait Matchable
class Any
Show all
case class InParens(prefix: Token, outer: Region) extends Region

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Region
class Object
trait Matchable
class Any
Show all
case class InString(multiLine: Boolean, outer: Region) extends Region

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Region
class Object
trait Matchable
class Any
Show all

Attributes

Companion
object
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object IndentWidth

Attributes

Companion
enum
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
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

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Region
class Object
trait Matchable
class Any
Show all
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

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class InBraces
class InCase
class InParens
class InString
class Indented
class Scanner(source: SourceFile, val startFrom: Offset, profile: Profile, allowIndent: Boolean)(using x$5: Context) extends ScannerCommon

Attributes

Supertypes
trait TokenData
class Object
trait Matchable
class Any
Show all
abstract class ScannerCommon(source: SourceFile)(using x$2: Context) extends CharArrayReader, TokenData

Attributes

Supertypes
trait TokenData
class Object
trait Matchable
class Any
Known subtypes
trait TokenData

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes

Types

type Offset = Int

Offset into source character array

Offset into source character array

Attributes

type Token = Int

Value members

Concrete methods

Concrete fields

An undefined offset

An undefined offset

Attributes