HTFormatter class

Class for printing out formatted string content of a ast root

Implemented types

Constructors

HTFormatter({FormatterConfig config = const FormatterConfig(), HTLexicon? lexicon, HTParser? parser})

Properties

config FormatterConfig
getter/setter pair
curIndent String
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

format(List<ASTNode> nodes, {FormatterConfig? config}) String
formatAST(ASTNode node) String
formatModule(ASTCompilation compilation, {FormatterConfig? config}) → void
formatSource(ASTSource result, {FormatterConfig? config}) → void
formatString(String content, {FormatterConfig? config}) String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
printParamDecls(List<ParamDecl> params) String
toString() String
A string representation of this object.
inherited
visitAssertStmt(AssertStmt stmt) String
override
visitAssignExpr(AssignExpr expr) String
override
visitBinaryExpr(BinaryExpr expr) String
override
visitBlockStmt(BlockStmt block) String
override
visitBooleanExpr(ASTLiteralBoolean expr) String
override
visitBreakStmt(BreakStmt stmt) String
override
visitCallExpr(CallExpr expr) String
override
visitClassDecl(ClassDecl stmt) String
override
visitCommaExpr(CommaExpr expr) String
override
visitComment(ASTComment node) String
override
visitCompilation(ASTCompilation node) String
override
visitContinueStmt(ContinueStmt stmt) String
override
visitDeleteMemberStmt(DeleteMemberStmt stmt) String
override
visitDeleteStmt(DeleteStmt stmt) String
override
visitDeleteSubStmt(DeleteSubStmt stmt) String
override
visitDestructuringDecl(DestructuringDecl stmt) String
override
visitDoStmt(DoStmt doStmt) String
override
visitEmptyExpr(ASTEmpty expr) String
override
visitEmptyLine(ASTEmptyLine expr) String
override
visitEnumDecl(EnumDecl stmt) String
override
visitExprStmt(ExprStmt stmt) String
override
visitFieldTypeExpr(FieldTypeExpr expr) String
override
visitFloatLiteralExpr(ASTLiteralFloat expr) String
override
visitForRangeStmt(ForRangeStmt forRangeStmt) String
override
visitForStmt(ForStmt forStmt) String
override
visitFuncDecl(FuncDecl stmt) String
override
visitFunctionTypeExpr(FuncTypeExpr expr) String
override
visitGenericTypeParamExpr(GenericTypeParameterExpr expr) String
override
visitGroupExpr(GroupExpr expr) String
override
visitIdentifierExpr(IdentifierExpr expr) String
override
visitIf(IfStmt ifStmt) String
override
visitImportExportDecl(ImportExportDecl stmt) String
override
visitInOfExpr(InOfExpr expr) String
override
visitIntLiteralExpr(ASTLiteralInteger expr) String
override
visitIntrinsicTypeExpr(IntrinsicTypeExpr expr) String
override
visitListExpr(ListExpr expr) String
override
visitMemberExpr(MemberExpr expr) String
override
visitNamespaceDecl(NamespaceDecl stmt) String
override
visitNominalTypeExpr(NominalTypeExpr expr) String
override
visitNullExpr(ASTLiteralNull expr) String
override
visitParamDecl(ParamDecl stmt) String
override
visitParamTypeExpr(ParamTypeExpr expr) String
override
visitReferConstructCallExpr(RedirectingConstructorCallExpr stmt) String
override
visitReturnStmt(ReturnStmt stmt) String
override
visitSource(ASTSource node) String
override
visitSpreadExpr(SpreadExpr expr) String
override
visitStringInterpolationExpr(ASTStringInterpolation expr) String
override
visitStringLiteralExpr(ASTLiteralString expr) String
override
visitStructDecl(StructDecl stmt) String
override
visitStructObjExpr(StructObjExpr obj) String
override
visitStructObjField(StructObjField field) String
override
visitStructuralTypeExpr(StructuralTypeExpr expr) String
override
visitSubExpr(SubExpr expr) String
override
visitTernaryExpr(TernaryExpr expr) String
override
visitThrowStmt(ThrowStmt stmt) String
override
visitTypeAliasDecl(TypeAliasDecl stmt) String
override
visitUnaryPostfixExpr(UnaryPostfixExpr expr) String
override
visitUnaryPrefixExpr(UnaryPrefixExpr expr) String
override
visitVarDecl(VarDecl stmt) String
override
visitWhen(WhenStmt stmt) String
override
visitWhileStmt(WhileStmt whileStmt) String
override

Operators

operator ==(Object other) bool
The equality operator.
inherited