ddc ~master (2022-05-11T07:34:37.0755476)
Dub
Repo
Token
dmd
tokens
extern (
C
++)
struct
Token {
Token
*
next
;
Loc
loc
;
const
(
char
)*
ptr
;
TOK
value
;
const
(
char
)[]
blockComment
;
const
(
char
)[]
lineComment
;
union
__anonymous
;
int
isKeyword
();
void
setString
(const(char)* ptr, size_t length);
void
setString
(OutBuffer buf);
void
setString
();
const
(
char
)*
toChars
();
static
const
(
char
)*
toChars
(ubyte value);
static
string
toString
(ubyte value);
}
Members
Functions
isKeyword
int
isKeyword
()
Undocumented in source. Be warned that the author may not have intended to support it.
setString
void
setString
(const(char)* ptr, size_t length)
Set to contents of ptr[0..length]
setString
void
setString
(OutBuffer buf)
Set to contents of buf
setString
void
setString
()
Set to empty string
toChars
const
(
char
)*
toChars
()
Undocumented in source. Be warned that the author may not have intended to support it.
Static functions
toChars
const
(
char
)*
toChars
(ubyte value)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string
toString
(ubyte value)
Undocumented in source. Be warned that the author may not have intended to support it.
Unions
__anonymous
union
__anonymous
Undocumented in source.
Variables
blockComment
const
(
char
)[]
blockComment
;
Undocumented in source.
lineComment
const
(
char
)[]
lineComment
;
Undocumented in source.
loc
Loc
loc
;
Undocumented in source.
next
Token
*
next
;
Undocumented in source.
ptr
const
(
char
)*
ptr
;
Undocumented in source.
value
TOK
value
;
Undocumented in source.
Meta
Source
See Implementation
dmd
tokens
enums
TOK
structs
Token