Class Formatter

class Formatter(Sink) ;

Constructors

NameDescription
this (sink, useTabs, style, indentWidth)

Fields

NameTypeDescription
caseDepth uint
currentThing Formatter.What
ignoreNewlines bool
indentLevel uint
indentWidth uint
lastThing Formatter.What
lineLength uint
maxLineLength uint
sink Sink
style IndentStyle
useTabs bool

Methods

NameDescription
binary (symbol, operator, nospace)
endBlock ()
format (xorExpression)
format (stmt)
format (stmt)
format (ver, attrs)
format (versionCondition)
format (vector)
format (decl, attrs)
format (unittest_, attrs)
format (decl, attrs)
format (unary)
format (typeofExpr)
format (idExpr)
format (typeSuffix)
format (typeSpecialization)
format (type2)
format (type)
format (tryStatement)
format (traitExpr)
format (token)
format (throwExpression)
format (expr)
format (templateValueParameterDefault)
format (templateValueParameter)
format (templateTypeParameter)
format (templateTupleParameter)
format (templateThisParameter)
format (templateSingleArgument)
format (templateParameters)
format (templateParameterList)
format (templateParameter)
format (templateMixinExpression)
format (templateInstance)
format (templateDeclaration, attrs)
format (templateArguments)
format (templateArgumentList, parens)
format (namedTemplateArgumentList, parens)
format (templateArgument)
format (namedTemplateArgument)
format (templateAliasParameter)
format (synchronizedStatement)
format (symbol)
format (switchStatement, isFinal)
format (structMemberInitializers)
format (structMemberInitializer)
format (structInitializer)
format (decl, attrs)
format (structBody)
format (storageClass)
format (staticIfCondition)
format (staticDestructor, attrs)
format (staticConstructor, attrs)
format (staticAssertStatement)
format (staticAssertDeclaration, attrs)
format (statementNoCaseNoDefault)
format (statement)
format (specifiedFunctionBody)
format (singleImport)
format (shortenedFunctionBody)
format (shiftExpression)
format (sharedStaticDestructor, attrs)
format (sharedStaticConstructor, attrs)
format (scopeGuardStatement)
format (returnStatement)
format (relExpression)
format (register)
format (primaryExpression)
format (pragmaExpression)
format (pragmaDeclaration, attrs)
format (powExpression)
format (postblit, attrs)
format (parameters)
format (parameter)
format (pa)
format (stmnt)
format (expression)
format (orOrExpression)
format (orExpression)
format (operands)
format (nonVoidInitializer)
format (newExpression)
format (newAnonClassExpression)
format (mulExpression)
format (moduleDeclaration)
format (module_)
format (mixinTemplateName)
format (mixinTemplateDeclaration, attrs)
format (mixinExpression)
format (missingFunctionBody)
format (memberFunctionAttribute)
format (linkageAttribute)
format (lastCatch)
format (stmt)
format (keyValuePairs)
format (isExpression)
format (invariant_, attrs)
format (interfaceDeclaration, attrs)
format (initializer)
format (initialize)
format (inStatement)
format (inOutStatement)
format (inOutContractExpression)
format (inExpression)
format (keyValuePair)
format (indexExpression)
format (index)
format (importExpression)
format (importDeclaration, attrs)
format (importBindings)
format (importBind)
format (ifCondition)
format (ifStatement)
format (identityExpression)
format (identifierOrTemplateInstance)
format (identifierOrTemplateChain)
format (typeIdentifierPart)
format (declaratorIdentifierList)
format (identifierChain)
format (gotoStatement)
format (functionLiteralExpression)
format (decl, attrs)
format (functionContract)
format (functionCallExpression)
format (functionBody)
format (functionAttribute)
format (foreachTypeList)
format (foreachType)
format (foreachStatement)
format (forStatement)
format (finally_)
format (finalSwitchStatement)
format (expressionStatement)
format (n)
format (expression)
format (equalExpression)
format (decl)
format (ema)
format (enumMember)
format (enumDeclaration, attrs)
format (enumBody)
format (doStatement)
format (destructor, attrs)
format (deprecated_)
format (deleteStatement)
format (deleteExpression)
format (defaultStatement)
format (declarator)
format (declarationsAndStatements)
format (declarationsOrStatement)
format (declaration)
format (debugSpecification)
format (debugCondition)
format (continueStatement)
format (constructor, attrs)
format (constraint)
format (stmnt)
format (decl, attrs)
format (compileCondition)
format (cmpExpression)
format (decl, attrs)
format (catches)
format (catch_)
format (qual)
format (castExpression)
format (caseStatement)
format (caseRangeStatement)
format (baseClassList)
format (baseClass)
format (breakStatement)
format (blockStatement)
format (decl)
format (decl, attrs)
format (att)
format (atAttribute)
format (assocArrayLiteral)
format (assignExpression)
format (assertExpression)
format (assertArguments)
format (asmXorExp)
format (asmUnaExp)
format (asmTypePrefix)
format (asmStatement)
format (asmShiftExp)
format (asmRelExp)
format (asmPrimaryExp)
format (asmOrExp)
format (asmMulExp)
format (asmLogOrExp)
format (asmLogAndExp)
format (asmInstruction)
format (asmExp)
format (asmEqualExp)
format (asmBrExp)
format (asmAndExp)
format (asmAddExp)
format (arrayMemberInitialization)
format (arrayLiteral)
format (arrayInitializer)
format (arguments)
format (argumentList)
format (argumentList)
format (argument)
format (andExpression)
format (andAndExpression)
format (alignAttribute)
format (decl, attrs)
format (aliasInitializer)
format (aliasDeclaration, attrs)
format (mixinDeclaration, attrs)
format (expression)
formatCaseDecls (declsAndStmnts)
getIndent ()
indent ()
isEmptyDeclaration (decl)
lineGap (gap)
maybeIndent (t)
needIndent (d)
needIndent (dors)
needIndent (s)
newline ()
newlineIndent ()
newThing (thing)
outdent ()
put (s)
putAttrs (attrs)
putComment (c)
putIndent ()
space ()
startBlock ()
tokenRep (t)
tokenRep (t)

Enums

NameDescription
What