trait ScannerData extends TokenData with CharArrayReaderData
An interface to most of mutable data in Scanner defined in TokenData and CharArrayReader (+ next, prev fields) with copyFrom functionality to backup/restore data (used by quasiquotes' lookingAhead).
- Source
- Scanners.scala
- Alphabetic
- By Inheritance
- ScannerData
- CharArrayReaderData
- TokenData
- CommonTokenData
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Value Members
-
val
base: Int
the base of a number
the base of a number
- Definition Classes
- TokenData
-
val
ch: Char
the last read character
the last read character
- Definition Classes
- CharArrayReaderData
-
val
charOffset: Int
The offset one past the last read character
The offset one past the last read character
- Definition Classes
- CharArrayReaderData
- def copyFrom(sd: ScannerData): ScannerData.this.type
-
def
copyFrom(cd: CharArrayReaderData): ScannerData.this.type
- Definition Classes
- CharArrayReaderData
-
def
copyFrom(td: TokenData): ScannerData.this.type
- Definition Classes
- TokenData
-
val
lastLineStartOffset: Int
The start offset of the line before the current one
The start offset of the line before the current one
- Definition Classes
- CharArrayReaderData
-
val
lastOffset: Scanners.Offset
the offset of the character following the token preceding this one
the offset of the character following the token preceding this one
- Definition Classes
- TokenData
-
val
lineStartOffset: Int
The start offset of the current line
The start offset of the current line
- Definition Classes
- CharArrayReaderData
-
val
name: Global.TermName
the name of an identifier
the name of an identifier
- Definition Classes
- TokenData → CommonTokenData
-
val
next: TokenData
we need one token lookahead and one token history
-
val
offset: Scanners.Offset
the offset of the first character of the current token
the offset of the first character of the current token
- Definition Classes
- TokenData
- val prev: TokenData
-
val
strVal: String
the string value of a literal
the string value of a literal
- Definition Classes
- TokenData
-
val
token: Scanners.Token
the next token
the next token
- Definition Classes
- TokenData → CommonTokenData
The Scala compiler and reflection APIs.