- loc
Loc loc;
Undocumented in source.
- syntaxCopy
Statement syntaxCopy()
Undocumented in source. Be warned that the author may not have intended to support it.
- print
void print()
Undocumented in source. Be warned that the author may not have intended to support it.
- toChars
const(char)* toChars()
Undocumented in source. Be warned that the author may not have intended to support it.
- error
void error(const(char)* format, ...)
Undocumented in source. Be warned that the author may not have intended to support it.
- warning
void warning(const(char)* format, ...)
Undocumented in source. Be warned that the author may not have intended to support it.
- deprecation
void deprecation(const(char)* format, ...)
Undocumented in source. Be warned that the author may not have intended to support it.
- getRelatedLabeled
Statement getRelatedLabeled()
Undocumented in source. Be warned that the author may not have intended to support it.
- hasBreak
bool hasBreak()
Undocumented in source. Be warned that the author may not have intended to support it.
- hasContinue
bool hasContinue()
Undocumented in source. Be warned that the author may not have intended to support it.
- usesEH
bool usesEH()
Undocumented in source. Be warned that the author may not have intended to support it.
- blockExit
int blockExit(FuncDeclaration func, bool mustNotThrow)
Undocumented in source. Be warned that the author may not have intended to support it.
- comeFrom
bool comeFrom()
Undocumented in source. Be warned that the author may not have intended to support it.
- hasCode
bool hasCode()
Undocumented in source. Be warned that the author may not have intended to support it.
- scopeCode
Statement scopeCode(Scope* sc, Statement* sentry, Statement* sexception, Statement* sfinally)
If this statement has code that needs to run in a finally clause
at the end of the current scope, return that code in the form of
a Statement.
Output:
*sentry code executed upon entry to the scope
*sexception code executed upon exit from the scope via exception
*sfinally code executed in finally block
- flatten
Statements* flatten(Scope* sc)
Flatten out the scope by presenting the statement
as an array of statements.
Returns NULL if no flattening necessary.
- last
inout(Statement) last()
Undocumented in source. Be warned that the author may not have intended to support it.
- isErrorStatement
ErrorStatement isErrorStatement()
Undocumented in source. Be warned that the author may not have intended to support it.
- isScopeStatement
inout(ScopeStatement) isScopeStatement()
Undocumented in source. Be warned that the author may not have intended to support it.
- isExpStatement
ExpStatement isExpStatement()
Undocumented in source. Be warned that the author may not have intended to support it.
- isCompoundStatement
inout(CompoundStatement) isCompoundStatement()
Undocumented in source. Be warned that the author may not have intended to support it.
- isReturnStatement
inout(ReturnStatement) isReturnStatement()
Undocumented in source. Be warned that the author may not have intended to support it.
- isIfStatement
IfStatement isIfStatement()
Undocumented in source. Be warned that the author may not have intended to support it.
- isCaseStatement
CaseStatement isCaseStatement()
Undocumented in source. Be warned that the author may not have intended to support it.
- isDefaultStatement
DefaultStatement isDefaultStatement()
Undocumented in source. Be warned that the author may not have intended to support it.
- isLabelStatement
LabelStatement isLabelStatement()
Undocumented in source. Be warned that the author may not have intended to support it.
- isGotoDefaultStatement
GotoDefaultStatement isGotoDefaultStatement()
Undocumented in source. Be warned that the author may not have intended to support it.
- isGotoCaseStatement
GotoCaseStatement isGotoCaseStatement()
Undocumented in source. Be warned that the author may not have intended to support it.
- isBreakStatement
inout(BreakStatement) isBreakStatement()
Undocumented in source. Be warned that the author may not have intended to support it.
- isDtorExpStatement
DtorExpStatement isDtorExpStatement()
Undocumented in source. Be warned that the author may not have intended to support it.
- accept
void accept(Visitor v)
Undocumented in source. Be warned that the author may not have intended to support it.
The purpose of this is so that continue will go to the next of the statements, and break will go to the end of the statements.