dparse.ast

This module defines an Abstract Syntax Tree for the D language

Members

Classes

ASTVisitor
class ASTVisitor

Implements the Visitor Pattern for the various AST classes

AddExpression
class AddExpression
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
AssertExpression
class AssertExpression
AssignExpression
class AssignExpression
AssocArrayLiteral
class AssocArrayLiteral
AtAttribute
class AtAttribute
Attribute
class Attribute
AttributeDeclaration
class AttributeDeclaration
AutoDeclaration
class AutoDeclaration
BaseClass
class BaseClass
BaseClassList
class BaseClassList
BlockStatement
class BlockStatement
BodyStatement
class BodyStatement
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
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
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
ForeachStatement
class ForeachStatement
ForeachType
class ForeachType
ForeachTypeList
class ForeachTypeList
FunctionAttribute
class FunctionAttribute
FunctionBody
class FunctionBody
FunctionCallExpression
class FunctionCallExpression
FunctionDeclaration
class FunctionDeclaration
FunctionLiteralExpression
class FunctionLiteralExpression
GotoStatement
class GotoStatement
IdentifierChain
class IdentifierChain
IdentifierList
class IdentifierList
IdentifierOrTemplateChain
class IdentifierOrTemplateChain
IdentifierOrTemplateInstance
class IdentifierOrTemplateInstance
IdentityExpression
class IdentityExpression
IfStatement
class IfStatement
ImportBind
class ImportBind
ImportBindings
class ImportBindings
ImportDeclaration
class ImportDeclaration
ImportExpression
class ImportExpression
InExpression
class InExpression
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
LambdaExpression
class LambdaExpression
LastCatch
class LastCatch
LinkageAttribute
class LinkageAttribute
MemberFunctionAttribute
class MemberFunctionAttribute
MixinDeclaration
class MixinDeclaration
MixinExpression
class MixinExpression
MixinTemplateDeclaration
class MixinTemplateDeclaration
MixinTemplateName
class MixinTemplateName
Module
class Module
ModuleDeclaration
class ModuleDeclaration
MulExpression
class MulExpression
NewAnonClassExpression
class NewAnonClassExpression
NewExpression
class NewExpression
NonVoidInitializer
class NonVoidInitializer
Operands
class Operands
OrExpression
class OrExpression
OrOrExpression
class OrOrExpression
OutStatement
class OutStatement
Parameter
class Parameter
Parameters
class Parameters
Postblit
class Postblit
PowExpression
class PowExpression
PragmaDeclaration
class PragmaDeclaration
PragmaExpression
class PragmaExpression
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
Statement
class Statement
StatementNoCaseNoDefault
class StatementNoCaseNoDefault
StaticAssertDeclaration
class StaticAssertDeclaration
StaticAssertStatement
class StaticAssertStatement
StaticConstructor
class StaticConstructor
StaticDestructor
class StaticDestructor
StaticForeachDeclaration
class StaticForeachDeclaration
Undocumented in source.
StaticForeachStatement
class StaticForeachStatement
Undocumented in source.
StaticIfCondition
class StaticIfCondition
StorageClass
class StorageClass
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
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

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