Struct TokenIterator

An iterator that helps to deal with DLang tokens

struct TokenIterator ;

Methods

NameDescription
currentToken ()
opApply (dg)
readAttribute () Returns a Dlang attribute. You must call this method after the @ token was read.
readClass () Returns a Dlang class. You must call this method after the class token was read.
readUntilType (type) Concatenate all the tokens until the first token of a certain type that will be ignored
skipOne () Skip one token
skipUntil (text) Skip until a token with a certain text is reached
skipUntilType (type) Skip until a token with a certain type is reached
skipWsAndComments ()