Formatter

class Formatter (
Sink
) {}

Constructors

this
this(Sink sink, bool useTabs, IndentStyle style, uint indentWidth)

Members

Enums

What
enum What
Undocumented in source.

Functions

endBlock
void endBlock()
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(XorExpression xorExpression)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(WithStatement stmt)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(WhileStatement stmt)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(VersionSpecification ver, Attribute[] attrs)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(VersionCondition versionCondition)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(Vector vector)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(VariableDeclaration decl, Attribute[] attrs)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(Unittest unittest_, Attribute[] attrs)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(UnionDeclaration decl, Attribute[] attrs)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(UnaryExpression unary)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(TypeofExpression typeofExpr)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(TypeidExpression idExpr)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(TypeSuffix typeSuffix)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(TypeSpecialization typeSpecialization)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(Type2 type2)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(Type type)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(TryStatement tryStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(TraitsExpression traitExpr)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(Token token)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(ThrowStatement throwStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(TernaryExpression expr)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(TemplateValueParameterDefault templateValueParameterDefault)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(TemplateValueParameter templateValueParameter)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(TemplateTypeParameter templateTypeParameter)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(TemplateTupleParameter templateTupleParameter)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(TemplateThisParameter templateThisParameter)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(TemplateSingleArgument templateSingleArgument)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(TemplateParameters templateParameters)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(TemplateParameterList templateParameterList)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(TemplateParameter templateParameter)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(TemplateMixinExpression templateMixinExpression)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(TemplateInstance templateInstance)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(TemplateDeclaration templateDeclaration, Attribute[] attrs)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(TemplateArguments templateArguments)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(TemplateArgumentList templateArgumentList, bool parens)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(TemplateArgument templateArgument)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(TemplateAliasParameter templateAliasParameter)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(SynchronizedStatement synchronizedStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(Symbol symbol)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(SwitchStatement switchStatement, bool isFinal)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(StructMemberInitializers structMemberInitializers)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(StructMemberInitializer structMemberInitializer)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(StructInitializer structInitializer)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(StructDeclaration decl, Attribute[] attrs)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(StructBody structBody)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(StorageClass storageClass)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(StaticIfCondition staticIfCondition)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(StaticDestructor staticDestructor, Attribute[] attrs)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(StaticConstructor staticConstructor, Attribute[] attrs)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(StaticAssertStatement staticAssertStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(StaticAssertDeclaration staticAssertDeclaration, Attribute[] attrs)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(StatementNoCaseNoDefault statementNoCaseNoDefault)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(Statement statement)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(SingleImport singleImport)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(ShiftExpression shiftExpression)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(SharedStaticDestructor sharedStaticDestructor, Attribute[] attrs)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(SharedStaticConstructor sharedStaticConstructor, Attribute[] attrs)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(ScopeGuardStatement scopeGuardStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(ReturnStatement returnStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(RelExpression relExpression)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(Register register)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(PrimaryExpression primaryExpression)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(PragmaExpression pragmaExpression)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(PragmaDeclaration pragmaDeclaration, Attribute[] attrs)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(PowExpression powExpression)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(Postblit postblit, Attribute[] attrs)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(Parameters parameters)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(Parameter parameter)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(OutStatement stmnt)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(OrOrExpression orOrExpression)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(OrExpression orExpression)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(Operands operands)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(NonVoidInitializer nonVoidInitializer)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(NewExpression newExpression)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(NewAnonClassExpression newAnonClassExpression)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(MulExpression mulExpression)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(ModuleDeclaration moduleDeclaration)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(Module module_)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(MixinTemplateName mixinTemplateName)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(MixinExpression mixinExpression)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(MixinDeclaration mixinDeclaration, Attribute[] attrs)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(MemberFunctionAttribute memberFunctionAttribute)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(LinkageAttribute linkageAttribute)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(LastCatch lastCatch)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(LambdaExpression lambdaExpression)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(LabeledStatement stmt)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(KeyValuePairs keyValuePairs)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(KeyValuePair keyValuePair)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(IsExpression isExpression)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(Invariant invariant_, Attribute[] attrs)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(InterfaceDeclaration interfaceDeclaration, Attribute[] attrs)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(Initializer initializer)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(Initialize initialize)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(InStatement inStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(InExpression inExpression)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(IndexExpression indexExpression)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(MixinTemplateDeclaration mixinTemplateDeclaration, Attribute[] attrs)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(AddExpression addExpression)
format
void format(AliasDeclaration aliasDeclaration, Attribute[] attrs)
format
void format(AliasInitializer aliasInitializer)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(AliasThisDeclaration decl, Attribute[] attrs)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(AlignAttribute alignAttribute)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(AndAndExpression andAndExpression)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(AndExpression andExpression)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(ArgumentList argumentList)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(Arguments arguments)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(ArrayInitializer arrayInitializer)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(ArrayLiteral arrayLiteral)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(ArrayMemberInitialization arrayMemberInitialization)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(AsmAddExp asmAddExp)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(AsmAndExp asmAndExp)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(AsmBrExp asmBrExp)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(AsmEqualExp asmEqualExp)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(AsmExp asmExp)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(AsmInstruction asmInstruction)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(AsmLogAndExp asmLogAndExp)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(AsmLogOrExp asmLogOrExp)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(AsmMulExp asmMulExp)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(AsmOrExp asmOrExp)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(AsmPrimaryExp asmPrimaryExp)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(AsmRelExp asmRelExp)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(AsmShiftExp asmShiftExp)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(AsmStatement asmStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(AsmTypePrefix asmTypePrefix)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(AsmUnaExp asmUnaExp)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(AsmXorExp asmXorExp)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(AssertExpression assertExpression)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(AssignExpression assignExpression)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(Index index)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(AtAttribute atAttribute)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(Attribute att)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(AttributeDeclaration decl, Attribute[] attrs)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(AutoDeclaration decl)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(BlockStatement blockStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(BodyStatement bodyStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(BreakStatement breakStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(BaseClass baseClass)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(BaseClassList baseClassList)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(CaseRangeStatement caseRangeStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(CaseStatement caseStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(CastExpression castExpression)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(CastQualifier qual)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(Catch catch_)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(Catches catches)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(ClassDeclaration decl, Attribute[] attrs)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(CmpExpression cmpExpression)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(AssocArrayLiteral assocArrayLiteral)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(ConditionalDeclaration decl, Attribute[] attrs)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(ConditionalStatement stmnt)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(Constraint constraint)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(Constructor constructor, Attribute[] attrs)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(ContinueStatement continueStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(DebugCondition debugCondition)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(DebugSpecification debugSpecification)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(Declaration declaration)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(DeclarationOrStatement declarationsOrStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(DeclarationsAndStatements declarationsAndStatements)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(Declarator declarator)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(DefaultStatement defaultStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(DeleteExpression deleteExpression)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(DeleteStatement deleteStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(Deprecated deprecated_)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(Destructor destructor, Attribute[] attrs)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(DoStatement doStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(EnumBody enumBody)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(EnumDeclaration enumDeclaration, Attribute[] attrs)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(EnumMember enumMember)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(EponymousTemplateDeclaration decl)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(EqualExpression equalExpression)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(Expression expression)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(ExpressionNode n)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(ExpressionStatement expressionStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(FinalSwitchStatement finalSwitchStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(Finally finally_)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(ForStatement forStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(ForeachStatement foreachStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(ForeachType foreachType)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(ForeachTypeList foreachTypeList)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(FunctionAttribute functionAttribute)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(FunctionBody functionBody)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(FunctionCallExpression functionCallExpression)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(FunctionDeclaration decl, Attribute[] attrs)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(FunctionLiteralExpression functionLiteralExpression)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(GotoStatement gotoStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(IdentifierChain identifierChain)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(IdentifierList identifierList)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(IdentifierOrTemplateChain identifierOrTemplateChain)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(IdentifierOrTemplateInstance identifierOrTemplateInstance)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(IdentityExpression identityExpression)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(IfStatement ifStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(ImportBind importBind)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(ImportBindings importBindings)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(ImportDeclaration importDeclaration, Attribute[] attrs)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(ImportExpression importExpression)
Undocumented in source. Be warned that the author may not have intended to support it.
format
void format(CompileCondition compileCondition)
Undocumented in source. Be warned that the author may not have intended to support it.
formatCaseDecls
void formatCaseDecls(DeclarationsAndStatements declsAndStmnts)
Undocumented in source. Be warned that the author may not have intended to support it.
getIndent
string getIndent()
Undocumented in source. Be warned that the author may not have intended to support it.
indent
void indent()
Undocumented in source. Be warned that the author may not have intended to support it.
isEmptyDeclaration
bool isEmptyDeclaration(Declaration decl)
Undocumented in source. Be warned that the author may not have intended to support it.
lineGap
void lineGap(int gap)
Undocumented in source. Be warned that the author may not have intended to support it.
maybeIndent
void maybeIndent(T t)
Undocumented in source. Be warned that the author may not have intended to support it.
needIndent
bool needIndent(Statement s)
Undocumented in source. Be warned that the author may not have intended to support it.
needIndent
bool needIndent(Declaration d)
Undocumented in source. Be warned that the author may not have intended to support it.
needIndent
bool needIndent(DeclarationOrStatement dors)
Undocumented in source. Be warned that the author may not have intended to support it.
newThing
void newThing(What thing)
Undocumented in source. Be warned that the author may not have intended to support it.
newline
void newline()
Undocumented in source. Be warned that the author may not have intended to support it.
newlineIndent
void newlineIndent()
Undocumented in source. Be warned that the author may not have intended to support it.
outdent
void outdent()
Undocumented in source. Be warned that the author may not have intended to support it.
put
void put(string s)
Undocumented in source. Be warned that the author may not have intended to support it.
putAttrs
void putAttrs(Attribute[] attrs)
Undocumented in source. Be warned that the author may not have intended to support it.
putComment
void putComment(string c)
Undocumented in source. Be warned that the author may not have intended to support it.
putIndent
void putIndent()
Undocumented in source. Be warned that the author may not have intended to support it.
space
void space()
Undocumented in source. Be warned that the author may not have intended to support it.
startBlock
void startBlock()
Undocumented in source. Be warned that the author may not have intended to support it.
tokenRep
string tokenRep(Token t)
Undocumented in source. Be warned that the author may not have intended to support it.
tokenRep
string tokenRep(IdType t)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

possibleDeclarations
enum possibleDeclarations;
Undocumented in source.

Static functions

binary
string binary(string symbol, string operator, bool nospace)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

caseDepth
uint caseDepth;
currentThing
What currentThing;
Undocumented in source.
ignoreNewlines
bool ignoreNewlines;
Undocumented in source.
indentLevel
uint indentLevel;
Undocumented in source.
indentWidth
uint indentWidth;
Undocumented in source.
lastThing
What lastThing;
Undocumented in source.
lineLength
uint lineLength;
Undocumented in source.
maxLineLength
uint maxLineLength;
Undocumented in source.
sink
Sink sink;
Undocumented in source.
style
IndentStyle style;
Undocumented in source.
useTabs
bool useTabs;
Undocumented in source.

Meta