LookaheadScanner

dotty.tools.dotc.parsing.JavaScanners.JavaScanner.LookaheadScanner

Attributes

Graph
Supertypes
class JavaScanner
trait TokenData
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited classlikes

Attributes

Inherited from:
CharArrayReader
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
JavaScanner
Supertypes
class JavaScanner
trait TokenData
class Object
trait Matchable
class Any
Show all

Value members

Inherited methods

Attributes

Inherited from:
ScannerCommon
def copyFrom(td: TokenData): Unit

Attributes

Inherited from:
TokenData
override def decodeUni: Boolean

Switch whether unicode should be decoded

Switch whether unicode should be decoded

Attributes

Definition Classes
Inherited from:
JavaScanner
def error(msg: Message, off: Offset): Unit

Generate an error at the given offset

Generate an error at the given offset

Attributes

Inherited from:
ScannerCommon
protected def error(msg: String, off: Offset): Unit

Implements CharArrayReader's error method

Implements CharArrayReader's error method

Attributes

Inherited from:
ScannerCommon
def errorButContinue(msg: Message, off: Offset): Unit

Attributes

Inherited from:
ScannerCommon
inline def finishNamed(): Unit

Finish an IDENTIFIER with this.name.

Finish an IDENTIFIER with this.name.

Attributes

Inherited from:
ScannerCommon
def finishNamedToken(idtoken: Token, target: TokenData): Unit

Clear buffer and set name and token. If target is different from this, don't treat identifiers as end tokens.

Clear buffer and set name and token. If target is different from this, don't treat identifiers as end tokens.

Attributes

Inherited from:
ScannerCommon
def floatVal(negated: Boolean): Double

convert name, base to double value

convert name, base to double value

Attributes

Inherited from:
JavaScanner
def getc(): Char

Attributes

Inherited from:
CharArrayReader
def getlitch(scanOnly: Boolean, inTextBlock: Boolean): Unit

Read next character in character or string literal.

Read next character in character or string literal.

Value parameters

inTextBlock

is this for a text block?

scanOnly

skip emitting errors or adding to the literal buffer

Attributes

Inherited from:
JavaScanner

signal an error where the input ended in the middle of a token

signal an error where the input ended in the middle of a token

Attributes

Inherited from:
ScannerCommon
protected def initialCharBufferSize: Int

Attributes

Inherited from:
ScannerCommon
def intVal(negated: Boolean): Long

convert name to long value

convert name to long value

Attributes

Inherited from:
JavaScanner

Is current token first one after a newline?

Is current token first one after a newline?

Attributes

Inherited from:
TokenData

Attributes

Inherited from:
TokenData

Attributes

Inherited from:
CharArrayReader

Attributes

Inherited from:
TokenData
def isIdent(name: Name): Boolean

Attributes

Inherited from:
TokenData

Attributes

Inherited from:
TokenData

Attributes

Inherited from:
TokenData

Attributes

Inherited from:
TokenData

Attributes

Inherited from:
TokenData

Attributes

Inherited from:
ScannerCommon

Attributes

Inherited from:
TokenData

Attributes

Inherited from:
TokenData

Is last character a unicode escape \uxxxx?

Is last character a unicode escape \uxxxx?

Attributes

Inherited from:
CharArrayReader
def lookAhead(): Unit

Attributes

Inherited from:
JavaScanner

Attributes

Inherited from:
CharArrayReader

A new reader that takes off at the current character position

A new reader that takes off at the current character position

Attributes

Inherited from:
CharArrayReader

Attributes

Inherited from:
JavaScanner
final def nextChar(): Unit

Advance one character; reducing CR;LF pairs to just LF

Advance one character; reducing CR;LF pairs to just LF

Attributes

Inherited from:
CharArrayReader
final def nextRawChar(): Unit

Advance one character, leaving CR;LF pairs intact. This is for use in multi-line strings, so there are no "potential line ends" here.

Advance one character, leaving CR;LF pairs intact. This is for use in multi-line strings, so there are no "potential line ends" here.

Attributes

Inherited from:
CharArrayReader
def nextToken(): Unit

Attributes

Inherited from:
JavaScanner
protected def putChar(c: Char): Unit

append Unicode character to "litBuf" buffer

append Unicode character to "litBuf" buffer

Attributes

Inherited from:
ScannerCommon

Attributes

Inherited from:
ScannerCommon
def reset(): Unit

Attributes

Inherited from:
JavaScanner
def setStrVal(): Unit

Clear buffer and set string

Clear buffer and set string

Attributes

Inherited from:
ScannerCommon

Attributes

Inherited from:
ScannerCommon
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
JavaScanner -> Any
Inherited from:
JavaScanner
def toToken(name: SimpleName): Token

The token for given name. Either IDENTIFIER or a keyword.

The token for given name. Either IDENTIFIER or a keyword.

Attributes

Inherited from:
JavaScanner

Inherited fields

var base: Int

the base of a number

the base of a number

Attributes

Inherited from:
TokenData
val buf: Array[Char]

Attributes

Inherited from:
ScannerCommon
var ch: Char

the last read character

the last read character

Attributes

Inherited from:
CharArrayReader

The offset one past the last read character

The offset one past the last read character

Attributes

Inherited from:
CharArrayReader

the last error offset

the last error offset

Attributes

Inherited from:
ScannerCommon

The offset before the last read character

The offset before the last read character

Attributes

Inherited from:
CharArrayReader

the offset of the character following the token preceding this one

the offset of the character following the token preceding this one

Attributes

Inherited from:
TokenData

the offset of the newline immediately preceding the token, or -1 if token is not preceded by a newline.

the offset of the newline immediately preceding the token, or -1 if token is not preceded by a newline.

Attributes

Inherited from:
TokenData

The start offset of the current line

The start offset of the current line

Attributes

Inherited from:
CharArrayReader
protected val litBuf: CharBuffer

A character buffer for literals

A character buffer for literals

Attributes

Inherited from:
ScannerCommon

the name of an identifier

the name of an identifier

Attributes

Inherited from:
TokenData

we need one token lookahead

we need one token lookahead

Attributes

Inherited from:
JavaScanner
var offset: Offset

the offset of the first character of the current token

the offset of the first character of the current token

Attributes

Inherited from:
TokenData

Attributes

Inherited from:
JavaScanner
override val startFrom: Offset

Attributes

Inherited from:
JavaScanner
var strVal: String

the string value of a literal

the string value of a literal

Attributes

Inherited from:
TokenData
var token: Token

the next token

the next token

Attributes

Inherited from:
TokenData