class LegacyScanner extends AnyRef
- Alphabetic
- By Inheritance
- LegacyScanner
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from LegacyScanner toany2stringadd[LegacyScanner] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (LegacyScanner, B)
- Implicit
- This member is added by an implicit conversion from LegacyScanner toArrowAssoc[LegacyScanner] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val cbuf: collection.mutable.StringBuilder
A character buffer for literals
- def charLitOr(op: () => Unit): Unit
Parse character literal if current character is followed by \', or follow with given op and return a symbol literal token
- def checkNoLetter(): Unit
- def checkNoTrailingSeparator(): Unit
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val curr: LegacyTokenData
- def discardDocBuffer(): Unit
To prevent doc comments attached to expressions from leaking out of scope onto the next documentable entity, they are discarded upon passing a right brace, bracket, or parenthesis.
- def emitIdentifierDeprecationWarnings: Boolean
Determines whether this scanner should emit identifier deprecation warnings, e.g.
Determines whether this scanner should emit identifier deprecation warnings, e.g. when seeing
macro' orthen', which are planned to become keywords in future versions of Scala.- Attributes
- protected
- def ensuring(cond: (LegacyScanner) => Boolean, msg: => Any): LegacyScanner
- Implicit
- This member is added by an implicit conversion from LegacyScanner toEnsuring[LegacyScanner] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (LegacyScanner) => Boolean): LegacyScanner
- Implicit
- This member is added by an implicit conversion from LegacyScanner toEnsuring[LegacyScanner] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): LegacyScanner
- Implicit
- This member is added by an implicit conversion from LegacyScanner toEnsuring[LegacyScanner] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): LegacyScanner
- Implicit
- This member is added by an implicit conversion from LegacyScanner toEnsuring[LegacyScanner] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def fetchToken(): Unit
read next token, filling TokenData fields of Scanner.
read next token, filling TokenData fields of Scanner.
- Attributes
- protected
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def flushDoc(): Unit
- def foreach(f: (LegacyTokenData) => Unit): Unit
Initialize scanner; call f on each scanned token data
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from LegacyScanner toStringFormat[LegacyScanner] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getFraction(): Unit
read fractional part and exponent of floating point number if one is present.
read fractional part and exponent of floating point number if one is present.
- Attributes
- protected
- def getLitChar(): Unit
copy current character into cbuf, interpreting any escape sequences, and advance to next character.
copy current character into cbuf, interpreting any escape sequences, and advance to next character.
- Attributes
- protected
- def getNumber(): Unit
Read a number into strVal and set base
Read a number into strVal and set base
- Attributes
- protected
- def getUnquote(): Unit
- def getXml(): Unit
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def invalidEscape(): Unit
- Attributes
- protected
- def isAtEnd: Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val next: LegacyTokenData
- def nextToken(): Unit
Produce next token, filling curr TokenData fields of Scanner.
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val prev: LegacyTokenData
- def putChar(c: Char): Unit
append Unicode character to "cbuf" buffer
append Unicode character to "cbuf" buffer
- Attributes
- protected
- def putCommentChar(): Unit
- Attributes
- protected
- val reader: CharArrayReader
- val reporter: Reporter
- def resume(lastCode: LegacyToken): Unit
- var sepRegions: List[LegacyToken]
a stack of tokens which indicates whether line-ends can be statement separators also used for keeping track of nesting levels.
a stack of tokens which indicates whether line-ends can be statement separators also used for keeping track of nesting levels. We keep track of the closing symbol of a region. This can be RPAREN if region starts with '(' RBRACKET if region starts with '[' RBRACE if region starts with '{' ARROW if region starts with
case' STRINGLIT if region is a string interpolation expression starting with '${' (the STRINGLIT appears twice in succession on the stack iff the expression is a multiline string literal). - def skipBlockComment(): Unit
- def skipComment(): Boolean
Precondition: ch == '/' Returns true if a comment was skipped.
- def skipDocComment(): Unit
- final def skipNestedComments(): Unit
- Annotations
- @tailrec()
- def skipToken(): Offset
read next token and return last offset
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- LegacyScanner → AnyRef → Any
- val upcomingXmlLiteralParts: Map[Offset, (Offset, Boolean)]
A map of upcoming xml literal parts that are left to be returned in nextToken().
A map of upcoming xml literal parts that are left to be returned in nextToken().
The keys are offset start positions of an xml literal and the values are the respective offset end positions and a boolean indicating if the part is the last part.
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def →[B](y: B): (LegacyScanner, B)
- Implicit
- This member is added by an implicit conversion from LegacyScanner toArrowAssoc[LegacyScanner] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.