dmd.statement

Defines AST nodes for statements.

Specification: Statements

Members

Classes

AsmStatement
class AsmStatement

https://dlang.org/spec/statement.html#asm

BreakStatement
class BreakStatement

https://dlang.org/spec/statement.html#break-statement

CaseRangeStatement
class CaseRangeStatement

https://dlang.org/spec/statement.html#CaseRangeStatement

CaseStatement
class CaseStatement

https://dlang.org/spec/statement.html#CaseStatement

Catch
class Catch

https://dlang.org/spec/statement.html#Catch

CompileStatement
class CompileStatement

https://dlang.org/spec/statement.html#mixin-statement

CompoundAsmStatement
class CompoundAsmStatement

a complete asm {} block

CompoundDeclarationStatement
class CompoundDeclarationStatement
CompoundStatement
class CompoundStatement
ConditionalStatement
class ConditionalStatement

https://dlang.org/spec/version.html#ConditionalStatement

ContinueStatement
class ContinueStatement

https://dlang.org/spec/statement.html#continue-statement

DebugStatement
class DebugStatement
DefaultStatement
class DefaultStatement

https://dlang.org/spec/statement.html#DefaultStatement

DoStatement
class DoStatement

https://dlang.org/spec/statement.html#do-statement

DtorExpStatement
class DtorExpStatement
ErrorStatement
class ErrorStatement

Any Statement that fails semantic() or has a component that is an ErrorExp or a TypeError should return an ErrorStatement from semantic().

ExpStatement
class ExpStatement

https://dlang.org/spec/statement.html#ExpressionStatement

ForStatement
class ForStatement

https://dlang.org/spec/statement.html#for-statement

ForeachRangeStatement
class ForeachRangeStatement

https://dlang.org/spec/statement.html#foreach-range-statement

ForeachStatement
class ForeachStatement

https://dlang.org/spec/statement.html#foreach-statement

ForwardingStatement
class ForwardingStatement

Statement whose symbol table contains foreach index variables in a local scope and forwards other members to the parent scope. This wraps a statement.

GccAsmStatement
class GccAsmStatement

https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html

Assembler instructions with D expression operands.

GotoCaseStatement
class GotoCaseStatement

https://dlang.org/spec/statement.html#GotoStatement

GotoDefaultStatement
class GotoDefaultStatement

https://dlang.org/spec/statement.html#GotoStatement

GotoStatement
class GotoStatement

https://dlang.org/spec/statement.html#goto-statement

IfStatement
class IfStatement

https://dlang.org/spec/statement.html#if-statement

ImportStatement
class ImportStatement

https://dlang.org/spec/module.html#ImportDeclaration

InlineAsmStatement
class InlineAsmStatement

https://dlang.org/spec/iasm.html

LabelDsymbol
class LabelDsymbol
LabelStatement
class LabelStatement

https://dlang.org/spec/statement.html#LabeledStatement

PeelStatement
class PeelStatement
PragmaStatement
class PragmaStatement

https://dlang.org/spec/statement.html#pragma-statement

ReturnStatement
class ReturnStatement

https://dlang.org/spec/statement.html#return-statement

ScopeGuardStatement
class ScopeGuardStatement

https://dlang.org/spec/statement.html#scope-guard-statement

ScopeStatement
class ScopeStatement
Statement
class Statement

Specification: http://dlang.org/spec/statement.html

StaticAssertStatement
class StaticAssertStatement

https://dlang.org/spec/version.html#StaticAssert

StaticForeachStatement
class StaticForeachStatement

https://dlang.org/spec/version.html#StaticForeachStatement

Static foreach statements, like: void main() { static foreach(i; 0 .. 10) { pragma(msg, i); } }

SwitchErrorStatement
class SwitchErrorStatement
SwitchStatement
class SwitchStatement

https://dlang.org/spec/statement.html#switch-statement

SynchronizedStatement
class SynchronizedStatement

https://dlang.org/spec/statement.html#SynchronizedStatement

ThrowStatement
class ThrowStatement

https://dlang.org/spec/statement.html#throw-statement

TryCatchStatement
class TryCatchStatement

https://dlang.org/spec/statement.html#try-statement

TryFinallyStatement
class TryFinallyStatement

https://dlang.org/spec/statement.html#try-statement

UnrolledLoopStatement
class UnrolledLoopStatement

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.

WhileStatement
class WhileStatement

https://dlang.org/spec/statement.html#while-statement

WithStatement
class WithStatement

https://dlang.org/spec/statement.html#with-statement

Enums

STMT
enum STMT

Identify Statement types with this enum rather than virtual functions.

Functions

getException
TypeIdentifier getException()
getThrowable
TypeIdentifier getThrowable()

Meta

Suggestion Box / Bug Report