IndentStack

Stack for managing indent levels.

Members

Functions

dump
void dump(string file = __FILE__, uint line = __LINE__)

Dumps the current state of the indentation stack to stderr. Used for debugging.

indentToMostRecent
int indentToMostRecent(IdType item)

Get the indent size at the most recent occurrence of the given indent type

pop
void pop()

Pops the top indent from the stack.

popTempIndents
void popTempIndents()

Pops all temporary indents from the top of the stack.

popWrapIndents
void popWrapIndents()

Pops all wrapping indents from the top of the stack.

push
void push(IdType item)

Pushes the given indent type on to the stack.

topIs
bool topIs(IdType type)
topIsOneOf
bool topIsOneOf(IdType[] types...)
topIsTemp
bool topIsTemp()
topIsWrap
bool topIsWrap()

Meta