TokenIterator

An iterator that helps to deal with DLang tokens

Members

Functions

currentToken
auto currentToken()
opApply
int opApply(int delegate(const(Token)) dg)
readAttribute
DLangAttribute readAttribute()

Returns a Dlang attribute. You must call this method after the @ token was read.

readClass
DLangClass readClass()

Returns a Dlang class. You must call this method after the class token was read.

readNextBlock
auto readNextBlock()
Undocumented in source. Be warned that the author may not have intended to support it.
readUntilType
string readUntilType(string type)

Concatenate all the tokens until the first token of a certain type that will be ignored

skipNextBlock
auto ref skipNextBlock()
Undocumented in source. Be warned that the author may not have intended to support it.
skipOne
auto ref skipOne()

Skip one token

skipUntil
auto ref skipUntil(string text)

Skip until a token with a certain text is reached

skipUntilType
auto ref skipUntilType(string type)

Skip until a token with a certain type is reached

skipWsAndComments
auto ref skipWsAndComments()

Meta