Offset into source character array
Offset into source character array
This is now an abstract class, only to work around the optimizer: methods in traits are never inlined.
This is now an abstract class, only to work around the optimizer: methods in traits are never inlined.
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).
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).
A scanner for a given source file not necessarily attached to a compilation unit.
A scanner for a given source file not necessarily attached to a compilation unit. Useful for looking inside source files that aren not currently compiled to see what's there
A scanner over a given compilation unit
A scanner over a given compilation unit
Returns the string representation of given token.
Returns the string representation of given token.
Performs the following context-free rewritings:
- Places all pattern variables in Bind nodes. In a pattern, for identifiers
x:x => x @ _ x:T => x @ (_ : T)val x = e ==> val x = e val x: T = e ==> val x: T = eif there are no variables in pattern
val p = e ==> e match (case p => ())if there is exactly one variable in pattern
val x_1 = e match (case p => (x_1))if there is more than one variable in pattern
val p = e ==> private synthetic val t$ = e match (case p => (x_1, ..., x_N)) val x_1 = t$._1 ... val x_N = t$._N- Removes function types as follows:
(argtpes) => restpe ==> scala.Function_n[argtpes, restpe]- Wraps naked case definitions in a match as follows:
{ cases } ==> (x => x.match {cases}), except when already argument to match