TokensCommon

dotty.tools.dotc.parsing.TokensCommon
abstract class TokensCommon

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object JavaTokens
object Tokens

Members list

Type members

Types

type Token = Int
type TokenSet = BitSet

Value members

Abstract methods

def maxToken: Int

Concrete methods

def buildKeywordArray(keywords: TokenSet): (Int, Array[Int])
def enter(token: Int, str: String, debugStr: String): Unit
def isKeyword(token: Token): Boolean
def tokenRange(lo: Int, hi: Int): TokenSet

Abstract fields

Concrete fields

inline val ABSTRACT: 32
inline val AT: 83
inline val CATCH: 54
inline val CHARLIT: 3

literals

literals

Attributes

inline val CLASS: 45
inline val COLONop: 74

special keywords

special keywords

Attributes

inline val COMMA: 70

special symbols

special symbols

Attributes

inline val DECILIT: 5
inline val DO: 49
inline val DOT: 72
inline val DOUBLELIT: 9
inline val ELSE: 22
inline val EMPTY: 0

special tokens

special tokens

Attributes

inline val EOF: 2
inline val EQUALS: 75
inline val ERROR: 1
inline val EXPOLIT: 6
inline val EXTENDS: 41
inline val FALSE: 43
inline val FINAL: 33
inline val FINALLY: 55
inline val FLOATLIT: 8
inline val FOR: 21
inline val IDENTIFIER: 14

identifiers

identifiers

Attributes

inline val IF: 20

alphabetic keywords

alphabetic keywords

Attributes

inline val IMPORT: 46
inline val INDENT: 97
inline val INTLIT: 4
inline val LBRACE: 95
inline val LBRACKET: 93
inline val LONGLIT: 7
inline val LPAREN: 91

parentheses

parentheses

Attributes

inline val NEW: 25
inline val NULL: 24
inline val OUTDENT: 98
inline val OVERRIDE: 36
inline val PACKAGE: 47
inline val PRIVATE: 34
inline val PROTECTED: 35
inline val RBRACE: 96
inline val RBRACKET: 94
inline val RETURN: 57
inline val RPAREN: 92
inline val SEMI: 71
inline val STRINGLIT: 10
inline val STRINGPART: 11
inline val SUPER: 27
inline val THIS: 23
inline val THROW: 52
inline val TRUE: 42
inline val TRY: 53
inline val WHILE: 56
inline val firstParen: 91
inline val lastParen: 98