IndentStack

Stack for managing indent levels.

Members

Functions

dump
void dump(size_t pos, string file, uint line)

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

indentLevel
int indentLevel()
Undocumented in source. Be warned that the author may not have intended to support it.
indentToMostRecent
int indentToMostRecent(IdType item)

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

length
int length()
Undocumented in source. Be warned that the author may not have intended to support it.
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.

push
void push(IdType item, Details detail)

Pushes the given indent type on to the stack.

top
IdType top()
Undocumented in source. Be warned that the author may not have intended to support it.
topAre
bool topAre(IdType[] types)
Undocumented in source. Be warned that the author may not have intended to support it.
topDetails
Details topDetails()
Undocumented in source. Be warned that the author may not have intended to support it.
topIs
bool topIs(IdType type)
topIsOneOf
bool topIsOneOf(IdType[] types)
topIsTemp
bool topIsTemp()
topIsTemp
bool topIsTemp(IdType item)
topIsWrap
bool topIsWrap()
topIsWrap
bool topIsWrap(IdType item)
wrapIndents
int wrapIndents()
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

Details
struct Details
Undocumented in source.

Meta