class compiler::TokenVal
sys::Obj compiler::Loc compiler::TokenVal
TokenVal stores an instance of a Token at a specific location.
- equals
- hash
-
virtual override Int hash()
- isCallOpenParen
-
Bool isCallOpenParen()
Return if this token is a left opening paren, but only if on the same line:
Ok:
call(...)
Not ok:
call (...)
- isIndexOpenBracket
-
Bool isIndexOpenBracket()
Return if this token is a left opening bracket, but only if on the same line:
Ok:
expr[...]
Not ok:
expr [...]
- kind
-
Token kind
- make
- newline
-
Bool newline
- toCode
-
Str toCode()
Get this token as Fantom source code.
- toStr
-
virtual override Str toStr()
- val
-
Obj? val
- whitespace
-
Bool whitespace