dotty.tools.dotc.parsing.Scanners

ScannerCommon

Related Doc: package Scanners

abstract class ScannerCommon extends CharArrayReader with TokenData

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ScannerCommon
  2. TokenData
  3. CharArrayReader
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ScannerCommon(source: SourceFile)(implicit ctx: Context)

Type Members

  1. class CharArrayLookaheadReader extends CharArrayReader

    Definition Classes
    CharArrayReader

Abstract Value Members

  1. abstract def toToken(idx: Int): Token

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. var base: Int

    the base of a number

    the base of a number

    Definition Classes
    TokenData
  6. val buf: Array[Char]

    Definition Classes
    ScannerCommonCharArrayReader
  7. var ch: Char

    the last read character

    the last read character

    Definition Classes
    CharArrayReader
  8. var charOffset: Int

    The offset one past the last read character

    The offset one past the last read character

    Definition Classes
    CharArrayReader
  9. def charVal: Char

    Convert current strVal to char value

  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def copyFrom(td: TokenData): Unit

    Definition Classes
    TokenData
  12. def decodeUni: Boolean

    Switch whether unicode should be decoded

    Switch whether unicode should be decoded

    Attributes
    protected
    Definition Classes
    CharArrayReader
  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  15. var errOffset: Offset

    the last error offset

  16. def error(msg: String, off: Offset = offset): Unit

    Generate an error at the given offset

    Generate an error at the given offset

    Definition Classes
    ScannerCommonCharArrayReader
  17. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def finishNamed(idtoken: Token = IDENTIFIER, target: TokenData = this): Unit

    Clear buffer and set name and token

  19. def floatVal: Double

  20. def floatVal(negated: Boolean): Double

    Convert current strVal, base to double value

  21. def flushBuf(buf: StringBuilder): String

    Return buffer contents and clear

  22. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  23. def getc(): Char

    Definition Classes
    CharArrayReader
  24. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  25. def incompleteInputError(msg: String): Unit

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

  26. def intVal: Long

  27. def intVal(negated: Boolean): Long

    Convert current strVal, base to long value This is tricky because of max negative value.

  28. def isAtEnd: Boolean

    Definition Classes
    CharArrayReader
  29. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  30. def isUnicodeEscape: Boolean

    Is last character a unicode escape \\uxxxx?

    Is last character a unicode escape \\uxxxx?

    Definition Classes
    CharArrayReader
  31. var lastCharOffset: Int

    The offset before the last read character

    The offset before the last read character

    Definition Classes
    CharArrayReader
  32. var lastLineStartOffset: Int

    The start offset of the line before the current one

    The start offset of the line before the current one

    Definition Classes
    CharArrayReader
  33. var lastOffset: 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
  34. var lineStartOffset: Int

    The start offset of the current line

    The start offset of the current line

    Definition Classes
    CharArrayReader
  35. val litBuf: StringBuilder

    A character buffer for literals

  36. def lookaheadReader: CharArrayLookaheadReader

    A new reader that takes off at the current character position

    A new reader that takes off at the current character position

    Definition Classes
    CharArrayReader
  37. var name: TermName

    the name of an identifier

    the name of an identifier

    Definition Classes
    TokenData
  38. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  39. final def nextChar(): Unit

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

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

    Definition Classes
    CharArrayReader
  40. final def nextRawChar(): Unit

    Advance one character, leaving CR;LF pairs intact.

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

    Definition Classes
    CharArrayReader
  41. final def notify(): Unit

    Definition Classes
    AnyRef
  42. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  43. var offset: Offset

    the offset of the first character of the current token

    the offset of the first character of the current token

    Definition Classes
    TokenData
  44. def putChar(c: Char): Unit

    append Unicode character to "litBuf" buffer

    append Unicode character to "litBuf" buffer

    Attributes
    protected
  45. def setStrVal(): Unit

    Clear buffer and set string

  46. def startFrom: Int

    Attributes
    protected
    Definition Classes
    CharArrayReader
  47. var strVal: String

    the string value of a literal

    the string value of a literal

    Definition Classes
    TokenData
  48. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  49. def toString(): String

    Definition Classes
    AnyRef → Any
  50. var token: Token

    the next token

    the next token

    Definition Classes
    TokenData
  51. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from TokenData

Inherited from CharArrayReader

Inherited from AnyRef

Inherited from Any

Ungrouped