Scanners

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

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

case class InBraces(outer: Region) extends Region

Attributes

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

Attributes

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

Attributes

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

Attributes

Graph
Supertypes
trait Product
trait Equals
class Region
class Object
trait Matchable
class Any

Attributes

Companion:
object
Graph
Supertypes
trait Enum
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
enum
Graph
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.

Attributes

prefix

The token before the initial of the region

width

The principal indendation width

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

Graph
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

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

Attributes

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

Attributes

Graph
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