Tokens

dotty.tools.dotc.parsing.Tokens$
object Tokens extends TokensCommon

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Tokens.type

Members list

Concise view

Type members

Inherited types

type Token = Int

Attributes

Inherited from:
TokensCommon

Attributes

Inherited from:
TokensCommon

Value members

Concrete methods

def isIdentifier(token: Int): Boolean
final def maxToken: Int
def showToken(token: Int): String

Inherited methods

def buildKeywordArray(keywords: TokenSet): (Int, Array[Int])

Attributes

Inherited from:
TokensCommon
def enter(token: Int, str: String, debugStr: String): Unit

Attributes

Inherited from:
TokensCommon
def isKeyword(token: Token): Boolean

Attributes

Inherited from:
TokensCommon
def tokenRange(lo: Int, hi: Int): TokenSet

Attributes

Inherited from:
TokensCommon

Concrete fields

inline val ARROW: 77
inline val BACKQUOTED_IDENT: 15
inline val CASE: 28
inline val CASECLASS: 29
inline val CASEOBJECT: 30
inline val COLONeol: 89
inline val COLONfollow: 88
inline val CTXARROW: 86
inline val DEF: 39
inline val END: 66
inline val ENUM: 62
inline val EXPORT: 64
inline val FORSOME: 61
inline val GIVEN: 63
inline val HASH: 82
inline val IMPLICIT: 37
inline val INTERPOLATIONID: 12
inline val LARROW: 76
inline val LAZY: 59
inline val MACRO: 65
inline val MATCH: 58
inline val NEWLINE: 78

special symbols

special symbols

Attributes

inline val NEWLINES: 79
inline val OBJECT: 44
inline val QUOTE: 87
inline val QUOTEID: 13
inline val SEALED: 51
inline val SELFARROW: 90
inline val SUBTYPE: 80
inline val SUPERTYPE: 81
inline val THEN: 60
inline val TLARROW: 85
inline val TRAIT: 50
inline val TYPE: 40
inline val USCORE: 73

special keywords

special keywords

Attributes

inline val VAL: 31
inline val VAR: 38
inline val VIEWBOUND: 84
inline val WITH: 26

alphabetic keywords

alphabetic keywords

Attributes

inline val XMLSTART: 99

XML mode

XML mode

Attributes

inline val YIELD: 48
final val allTokens: TokenSet
final val keywords: TokenSet
inline val minToken: 0

Is token only legal as start of statement (eof also included)?

Is token only legal as start of statement (eof also included)?

Attributes

Faced with the choice between a type and a formal parameter, the following tokens determine it's a formal parameter.

Faced with the choice between a type and a formal parameter, the following tokens determine it's a formal parameter.

Attributes

Tokens that stop a lookahead scan search for a <-, then, or do. Used for disambiguating between old and new syntax.

Tokens that stop a lookahead scan search for a <-, then, or do. Used for disambiguating between old and new syntax.

Attributes

Inherited fields

inline val ABSTRACT: 32

Attributes

Inherited from:
TokensCommon
inline val AT: 83

Attributes

Inherited from:
TokensCommon
inline val CATCH: 54

Attributes

Inherited from:
TokensCommon
inline val CHARLIT: 3

literals

literals

Attributes

Inherited from:
TokensCommon
inline val CLASS: 45

Attributes

Inherited from:
TokensCommon
inline val COLONop: 74

special keywords

special keywords

Attributes

Inherited from:
TokensCommon
inline val COMMA: 70

special symbols

special symbols

Attributes

Inherited from:
TokensCommon
inline val DECILIT: 5

Attributes

Inherited from:
TokensCommon
inline val DO: 49

Attributes

Inherited from:
TokensCommon
inline val DOT: 72

Attributes

Inherited from:
TokensCommon
inline val DOUBLELIT: 9

Attributes

Inherited from:
TokensCommon
inline val ELSE: 22

Attributes

Inherited from:
TokensCommon
inline val EMPTY: 0

special tokens

special tokens

Attributes

Inherited from:
TokensCommon
inline val EOF: 2

Attributes

Inherited from:
TokensCommon
inline val EQUALS: 75

Attributes

Inherited from:
TokensCommon
inline val ERROR: 1

Attributes

Inherited from:
TokensCommon
inline val EXPOLIT: 6

Attributes

Inherited from:
TokensCommon
inline val EXTENDS: 41

Attributes

Inherited from:
TokensCommon
inline val FALSE: 43

Attributes

Inherited from:
TokensCommon
inline val FINAL: 33

Attributes

Inherited from:
TokensCommon
inline val FINALLY: 55

Attributes

Inherited from:
TokensCommon
inline val FLOATLIT: 8

Attributes

Inherited from:
TokensCommon
inline val FOR: 21

Attributes

Inherited from:
TokensCommon
inline val IDENTIFIER: 14

identifiers

identifiers

Attributes

Inherited from:
TokensCommon
inline val IF: 20

alphabetic keywords

alphabetic keywords

Attributes

Inherited from:
TokensCommon
inline val IMPORT: 46

Attributes

Inherited from:
TokensCommon
inline val INDENT: 97

Attributes

Inherited from:
TokensCommon
inline val INTLIT: 4

Attributes

Inherited from:
TokensCommon
inline val LBRACE: 95

Attributes

Inherited from:
TokensCommon
inline val LBRACKET: 93

Attributes

Inherited from:
TokensCommon
inline val LONGLIT: 7

Attributes

Inherited from:
TokensCommon
inline val LPAREN: 91

parentheses

parentheses

Attributes

Inherited from:
TokensCommon
inline val NEW: 25

Attributes

Inherited from:
TokensCommon
inline val NULL: 24

Attributes

Inherited from:
TokensCommon
inline val OUTDENT: 98

Attributes

Inherited from:
TokensCommon
inline val OVERRIDE: 36

Attributes

Inherited from:
TokensCommon
inline val PACKAGE: 47

Attributes

Inherited from:
TokensCommon
inline val PRIVATE: 34

Attributes

Inherited from:
TokensCommon
inline val PROTECTED: 35

Attributes

Inherited from:
TokensCommon
inline val RBRACE: 96

Attributes

Inherited from:
TokensCommon
inline val RBRACKET: 94

Attributes

Inherited from:
TokensCommon
inline val RETURN: 57

Attributes

Inherited from:
TokensCommon
inline val RPAREN: 92

Attributes

Inherited from:
TokensCommon
inline val SEMI: 71

Attributes

Inherited from:
TokensCommon
inline val STRINGLIT: 10

Attributes

Inherited from:
TokensCommon
inline val STRINGPART: 11

Attributes

Inherited from:
TokensCommon
inline val SUPER: 27

Attributes

Inherited from:
TokensCommon
inline val THIS: 23

Attributes

Inherited from:
TokensCommon
inline val THROW: 52

Attributes

Inherited from:
TokensCommon
inline val TRUE: 42

Attributes

Inherited from:
TokensCommon
inline val TRY: 53

Attributes

Inherited from:
TokensCommon
inline val WHILE: 56

Attributes

Inherited from:
TokensCommon

Attributes

Inherited from:
TokensCommon
inline val firstParen: 91

Attributes

Inherited from:
TokensCommon
inline val lastParen: 98

Attributes

Inherited from:
TokensCommon

Attributes

Inherited from:
TokensCommon