dparse.ast

This module defines an Abstract Syntax Tree for the D language

Members

Aliases

ForeachStatement
alias ForeachStatement = Foreach!false
StaticForeachDeclaration
alias StaticForeachDeclaration = Foreach!true

Classes

ASTVisitor
class ASTVisitor

Implements the Visitor Pattern for the various AST classes

AddExpression
class AddExpression
AliasAssign
class AliasAssign
AliasDeclaration
class AliasDeclaration
AliasInitializer
class AliasInitializer
AliasThisDeclaration
class AliasThisDeclaration
AlignAttribute
class AlignAttribute
AndAndExpression
class AndAndExpression
AndExpression
class AndExpression
AnonymousEnumDeclaration
class AnonymousEnumDeclaration
AnonymousEnumMember
class AnonymousEnumMember
ArgumentList
class ArgumentList
Arguments
class Arguments
ArrayInitializer
class ArrayInitializer
ArrayLiteral
class ArrayLiteral
ArrayMemberInitialization
class ArrayMemberInitialization
AsmAddExp
class AsmAddExp
AsmAndExp
class AsmAndExp
AsmBrExp
class AsmBrExp
AsmEqualExp
class AsmEqualExp
AsmExp
class AsmExp
AsmInstruction
class AsmInstruction
AsmLogAndExp
class AsmLogAndExp
AsmLogOrExp
class AsmLogOrExp
AsmMulExp
class AsmMulExp
AsmOrExp
class AsmOrExp
AsmPrimaryExp
class AsmPrimaryExp
AsmRelExp
class AsmRelExp
AsmShiftExp
class AsmShiftExp
AsmStatement
class AsmStatement
AsmTypePrefix
class AsmTypePrefix
AsmUnaExp
class AsmUnaExp
AsmXorExp
class AsmXorExp
AssertArguments
class AssertArguments
AssertExpression
class AssertExpression
AssignExpression
class AssignExpression
AssocArrayLiteral
class AssocArrayLiteral
AtAttribute
class AtAttribute
Attribute
class Attribute
AttributeDeclaration
class AttributeDeclaration
AutoDeclaration
class AutoDeclaration
AutoDeclarationPart
class AutoDeclarationPart
Undocumented in source.
BaseClass
class BaseClass
BaseClassList
class BaseClassList
BaseNode
class BaseNode
Undocumented in source.
BlockStatement
class BlockStatement
BreakStatement
class BreakStatement
CaseRangeStatement
class CaseRangeStatement
CaseStatement
class CaseStatement
CastExpression
class CastExpression
CastQualifier
class CastQualifier
Catch
class Catch
Catches
class Catches
ClassDeclaration
class ClassDeclaration
CmpExpression
class CmpExpression
CompileCondition
class CompileCondition
ConditionalDeclaration
class ConditionalDeclaration
ConditionalStatement
class ConditionalStatement
Constraint
class Constraint
Constructor
class Constructor
ContinueStatement
class ContinueStatement
DebugCondition
class DebugCondition
DebugSpecification
class DebugSpecification
Declaration
class Declaration
DeclarationOrStatement
class DeclarationOrStatement
DeclarationsAndStatements
class DeclarationsAndStatements
Declarator
class Declarator
DeclaratorIdentifierList
class DeclaratorIdentifierList
DefaultStatement
class DefaultStatement
DeleteExpression
class DeleteExpression
DeleteStatement
class DeleteStatement
Deprecated
class Deprecated
Destructor
class Destructor
DoStatement
class DoStatement
EnumBody
class EnumBody
EnumDeclaration
class EnumDeclaration
EnumMember
class EnumMember
EnumMemberAttribute
class EnumMemberAttribute
Undocumented in source.
EponymousTemplateDeclaration
class EponymousTemplateDeclaration
EqualExpression
class EqualExpression
Expression
class Expression
ExpressionNode
class ExpressionNode
Undocumented in source.
ExpressionStatement
class ExpressionStatement
FinalSwitchStatement
class FinalSwitchStatement
Finally
class Finally
ForStatement
class ForStatement
Foreach
class Foreach(bool declOnly)
ForeachType
class ForeachType
ForeachTypeList
class ForeachTypeList
FunctionAttribute
class FunctionAttribute
FunctionBody
class FunctionBody
FunctionCallExpression
class FunctionCallExpression
FunctionContract
class FunctionContract
FunctionDeclaration
class FunctionDeclaration
FunctionLiteralExpression
class FunctionLiteralExpression
GccAsmInstruction
class GccAsmInstruction
GccAsmOperand
class GccAsmOperand
GccAsmOperandList
class GccAsmOperandList
GotoStatement
class GotoStatement
IdentifierChain
class IdentifierChain
IdentifierOrTemplateChain
class IdentifierOrTemplateChain
IdentifierOrTemplateInstance
class IdentifierOrTemplateInstance
IdentityExpression
class IdentityExpression
IfStatement
class IfStatement
ImportBind
class ImportBind
ImportBindings
class ImportBindings
ImportDeclaration
class ImportDeclaration
ImportExpression
class ImportExpression
InContractExpression
class InContractExpression
InExpression
class InExpression
InOutContractExpression
class InOutContractExpression
InOutStatement
class InOutStatement
InStatement
class InStatement
Index
class Index
IndexExpression
class IndexExpression
Initialize
class Initialize
Initializer
class Initializer
InterfaceDeclaration
class InterfaceDeclaration
Invariant
class Invariant
IsExpression
class IsExpression
KeyValuePair
class KeyValuePair
KeyValuePairs
class KeyValuePairs
LabeledStatement
class LabeledStatement
LastCatch
class LastCatch
LinkageAttribute
class LinkageAttribute
MemberFunctionAttribute
class MemberFunctionAttribute
MissingFunctionBody
class MissingFunctionBody
MixinDeclaration
class MixinDeclaration
MixinExpression
class MixinExpression
MixinTemplateDeclaration
class MixinTemplateDeclaration
MixinTemplateName
class MixinTemplateName
Module
class Module
ModuleDeclaration
class ModuleDeclaration
MulExpression
class MulExpression
NamespaceList
class NamespaceList
NewAnonClassExpression
class NewAnonClassExpression
NewExpression
class NewExpression
NonVoidInitializer
class NonVoidInitializer
Operands
class Operands
OrExpression
class OrExpression
OrOrExpression
class OrOrExpression
OutContractExpression
class OutContractExpression
OutStatement
class OutStatement
Parameter
class Parameter
ParameterAttribute
class ParameterAttribute
Undocumented in source.
Parameters
class Parameters
Postblit
class Postblit
PowExpression
class PowExpression
PragmaDeclaration
class PragmaDeclaration
PragmaExpression
class PragmaExpression
PragmaStatement
class PragmaStatement
PrimaryExpression
class PrimaryExpression
Register
class Register
RelExpression
class RelExpression
ReturnStatement
class ReturnStatement
ScopeGuardStatement
class ScopeGuardStatement
SharedStaticConstructor
class SharedStaticConstructor
SharedStaticDestructor
class SharedStaticDestructor
ShiftExpression
class ShiftExpression
SingleImport
class SingleImport
SpecifiedFunctionBody
class SpecifiedFunctionBody
Statement
class Statement
StatementNoCaseNoDefault
class StatementNoCaseNoDefault
StaticAssertDeclaration
class StaticAssertDeclaration
StaticAssertStatement
class StaticAssertStatement
StaticConstructor
class StaticConstructor
StaticDestructor
class StaticDestructor
StaticForeachStatement
class StaticForeachStatement
StaticIfCondition
class StaticIfCondition
StorageClass
class StorageClass
StringLiteralList
class StringLiteralList
StructBody
class StructBody
StructDeclaration
class StructDeclaration
StructInitializer
class StructInitializer
StructMemberInitializer
class StructMemberInitializer
StructMemberInitializers
class StructMemberInitializers
SwitchStatement
class SwitchStatement
Symbol
class Symbol
SynchronizedStatement
class SynchronizedStatement
TemplateAliasParameter
class TemplateAliasParameter
TemplateArgument
class TemplateArgument
TemplateArgumentList
class TemplateArgumentList
TemplateArguments
class TemplateArguments
TemplateDeclaration
class TemplateDeclaration
TemplateInstance
class TemplateInstance
TemplateMixinExpression
class TemplateMixinExpression
TemplateParameter
class TemplateParameter
TemplateParameterList
class TemplateParameterList
TemplateParameters
class TemplateParameters
TemplateSingleArgument
class TemplateSingleArgument
TemplateThisParameter
class TemplateThisParameter
TemplateTupleParameter
class TemplateTupleParameter
TemplateTypeParameter
class TemplateTypeParameter
TemplateValueParameter
class TemplateValueParameter
TemplateValueParameterDefault
class TemplateValueParameterDefault
TernaryExpression
class TernaryExpression
ThrowStatement
class ThrowStatement
TraitsExpression
class TraitsExpression
TryStatement
class TryStatement
Type
class Type
Type2
class Type2
TypeIdentifierPart
class TypeIdentifierPart
TypeSpecialization
class TypeSpecialization
TypeSuffix
class TypeSuffix
TypeidExpression
class TypeidExpression
TypeofExpression
class TypeofExpression
UnaryExpression
class UnaryExpression
UnionDeclaration
class UnionDeclaration
Unittest
class Unittest
VariableDeclaration
class VariableDeclaration
Vector
class Vector
VersionCondition
class VersionCondition
VersionSpecification
class VersionSpecification
WhileStatement
class WhileStatement
WithStatement
class WithStatement
XorExpression
class XorExpression

Enums

DeclarationListStyle
enum DeclarationListStyle

Describes which syntax was used in a list of declarations in the containing AST node

Interfaces

ASTNode
interface ASTNode
Undocumented in source.

Mixin templates

BinaryExpressionBody
mixintemplate BinaryExpressionBody()
Undocumented in source.
OpEquals
mixintemplate OpEquals(bool print = false)
Undocumented in source.

Templates

generateOpEquals
template generateOpEquals(T)
Undocumented in source.
visitIfNotNull
template visitIfNotNull(fields...)
Undocumented in source.

Examples

// TODO

Meta

Authors

Brian Schott