Fantom

 

class compiler::TokenVal

sys::Obj
  compiler::Loc
    compiler::TokenVal

Source

TokenVal stores an instance of a Token at a specific location.

equals

virtual override Bool equals(Obj? obj)

Source

hash

virtual override Int hash()

Source

isCallOpenParen

Bool isCallOpenParen()

Source

Return if this token is a left opening paren, but only if on the same line:

Ok:

call(...)

Not ok:

call
  (...)
isIndexOpenBracket

Bool isIndexOpenBracket()

Source

Return if this token is a left opening bracket, but only if on the same line:

Ok:

expr[...]

Not ok:

expr
  [...]
kind

Token kind

Source

make

new make(Token kind, Obj? val := null)

Source

newline

Bool newline

Source

toCode

Str toCode()

Source

Get this token as Fantom source code.

toStr

virtual override Str toStr()

Source

val

Obj? val

Source

whitespace

Bool whitespace

Source