class Mint::Formatter

Defined in:

formatter.cr
formatter/processor.cr
formatter/renderer.cr
formatters/access.cr
formatters/argument.cr
formatters/array_destructuring.cr
formatters/array_literal.cr
formatters/await.cr
formatters/block.cr
formatters/bool_literal.cr
formatters/bracket_access.cr
formatters/builtin.cr
formatters/call.cr
formatters/case.cr
formatters/case_branch.cr
formatters/comment.cr
formatters/commented_expression.cr
formatters/component.cr
formatters/connect.cr
formatters/connect_variable.cr
formatters/constant.cr
formatters/css_definition.cr
formatters/css_font_face.cr
formatters/css_keyframes.cr
formatters/css_nested_at.cr
formatters/css_selector.cr
formatters/dbg.cr
formatters/decode.cr
formatters/defer.cr
formatters/directives/asset.cr
formatters/directives/format.cr
formatters/directives/highlight.cr
formatters/directives/highlight_file.cr
formatters/directives/inline.cr
formatters/directives/svg.cr
formatters/discard.cr
formatters/emit.cr
formatters/encode.cr
formatters/env.cr
formatters/field.cr
formatters/field_access.cr
formatters/for.cr
formatters/function.cr
formatters/get.cr
formatters/here_document.cr
formatters/html.cr
formatters/html_attribute.cr
formatters/html_component.cr
formatters/html_element.cr
formatters/html_fragment.cr
formatters/html_style.cr
formatters/id.cr
formatters/if.cr
formatters/inline_function.cr
formatters/interpolation.cr
formatters/js.cr
formatters/list.cr
formatters/locale.cr
formatters/locale_key.cr
formatters/map.cr
formatters/map_field.cr
formatters/module.cr
formatters/negated_expression.cr
formatters/next_call.cr
formatters/number_literal.cr
formatters/operation.cr
formatters/parenthesized_expression.cr
formatters/pipe.cr
formatters/property.cr
formatters/provider.cr
formatters/record.cr
formatters/record_update.cr
formatters/regexp_literal.cr
formatters/return_call.cr
formatters/route.cr
formatters/routes.cr
formatters/signal.cr
formatters/spread.cr
formatters/state.cr
formatters/state_setter.cr
formatters/statement.cr
formatters/store.cr
formatters/string_literal.cr
formatters/style.cr
formatters/suite.cr
formatters/test.cr
formatters/top_level.cr
formatters/tuple_destructuring.cr
formatters/tuple_literal.cr
formatters/type.cr
formatters/type_definition.cr
formatters/type_definition_field.cr
formatters/type_destructuring.cr
formatters/type_variable.cr
formatters/type_variant.cr
formatters/unary_minus.cr
formatters/use.cr
formatters/variable.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(config : Mint::Formatter::Config) #

[View source]

Instance Method Detail

def break_not_fits(**params) #

[View source]
def broken_string(**params) #

[View source]
def config : Config #

The configuration.


[View source]
def entity(**params) #

[View source]
def format(nodes : Array(Ast::Node | String), separator : String) : Nodes #

[View source]
def format(node : Ast::Access) : Nodes #

[View source]
def format(node : Ast::Argument) : Nodes #

[View source]
def format(node : Ast::ArrayDestructuring) : Nodes #

[View source]
def format(node : Ast::ArrayLiteral) : Nodes #

[View source]
def format(node : Ast::Await) : Nodes #

[View source]
def format(node : Ast::Block, format = BlockFormat::Block) : Nodes #

[View source]
def format(node : Ast::BoolLiteral) : Nodes #

[View source]
def format(node : Ast::BracketAccess) : Nodes #

[View source]
def format(node : Ast::Builtin) : Nodes #

[View source]
def format(node : Ast::Call) : Nodes #

[View source]
def format(node : Ast::Case) : Nodes #

[View source]
def format(node : Ast::CaseBranch) : Nodes #

[View source]
def format(node : Ast::Comment) : Nodes #

[View source]
def format(node : Ast::CommentedExpression) : Nodes #

[View source]
def format(node : Ast::Component) : Nodes #

[View source]
def format(node : Ast::Connect) : Nodes #

[View source]
def format(node : Ast::ConnectVariable) : Nodes #

[View source]
def format(node : Ast::Constant) : Nodes #

[View source]
def format(node : Ast::CssDefinition) : Nodes #

[View source]
def format(node : Ast::CssFontFace) : Nodes #

[View source]
def format(node : Ast::CssKeyframes) : Nodes #

[View source]
def format(node : Ast::CssNestedAt) : Nodes #

[View source]
def format(node : Ast::CssSelector) : Nodes #

[View source]
def format(node : Ast::Dbg) : Nodes #

[View source]
def format(node : Ast::Decode) : Nodes #

[View source]
def format(node : Ast::Defer) : Nodes #

[View source]
def format(node : Ast::Discard) : Nodes #

[View source]
def format(node : Ast::Emit) : Nodes #

[View source]
def format(node : Ast::Encode) : Nodes #

[View source]
def format(node : Ast::Env) : Nodes #

[View source]
def format(node : Ast::Field) : Nodes #

[View source]
def format(node : Ast::FieldAccess) : Nodes #

[View source]
def format(node : Ast::For) : Nodes #

[View source]
def format(node : Ast::Function) : Nodes #

[View source]
def format(node : Ast::Get) : Nodes #

[View source]
def format(node : Ast::HereDocument) : Nodes #

[View source]
def format(node : Ast::HtmlAttribute) : Nodes #

[View source]
def format(node : Ast::HtmlComponent) : Nodes #

[View source]
def format(node : Ast::HtmlElement) : Nodes #

[View source]
def format(node : Ast::HtmlFragment) : Nodes #

[View source]
def format(node : Ast::HtmlStyle) : Nodes #

[View source]
def format(node : Ast::Id) : Nodes #

[View source]
def format(node : Ast::If) : Nodes #

[View source]
def format(node : Ast::InlineFunction) : Nodes #

[View source]
def format(node : Ast::Interpolation) : Nodes #

[View source]
def format(node : Ast::Js) : Nodes #

[View source]
def format(node : Ast::Locale) : Nodes #

[View source]
def format(node : Ast::LocaleKey) : Nodes #

[View source]
def format(node : Ast::Map) : Nodes #

[View source]
def format(node : Ast::MapField) : Nodes #

[View source]
def format(node : Ast::Module) : Nodes #

[View source]
def format(node : Ast::NegatedExpression) : Nodes #

[View source]
def format(node : Ast::NextCall) : Nodes #

[View source]
def format(node : Ast::NumberLiteral) : Nodes #

[View source]
def format(node : Ast::Operation) : Nodes #

[View source]
def format(node : Ast::ParenthesizedExpression) : Nodes #

[View source]
def format(node : Ast::Pipe) : Nodes #

[View source]
def format(node : Ast::Property) : Nodes #

[View source]
def format(node : Ast::Provider) : Nodes #

[View source]
def format(node : Ast::Record, multiline = false) : Nodes #

[View source]
def format(node : Ast::RecordUpdate) : Nodes #

[View source]
def format(node : Ast::RegexpLiteral) : Nodes #

[View source]
def format(node : Ast::ReturnCall) : Nodes #

[View source]
def format(node : Ast::Route) : Nodes #

[View source]
def format(node : Ast::Routes) : Nodes #

[View source]
def format(node : Ast::Signal) : Nodes #

[View source]
def format(node : Ast::Spread) : Nodes #

[View source]
def format(node : Ast::State) : Nodes #

[View source]
def format(node : Ast::StateSetter) : Nodes #

[View source]
def format(node : Ast::Statement, newline = true) : Nodes #

[View source]
def format(node : Ast::Store) : Nodes #

[View source]
def format(node : Ast::StringLiteral) : Nodes #

[View source]
def format(node : Ast::Style) : Nodes #

[View source]
def format(node : Ast::Suite) : Nodes #

[View source]
def format(node : Ast::Test) : Nodes #

[View source]
def format(ast : Ast) : String #

[View source]
def format(node : Ast::TupleDestructuring) : Nodes #

[View source]
def format(node : Ast::TupleLiteral) : Nodes #

[View source]
def format(node : Ast::Type) : Nodes #

[View source]
def format(node : Ast::TypeDefinition) : Nodes #

[View source]
def format(node : Ast::TypeDefinitionField) : Nodes #

[View source]
def format(node : Ast::TypeDestructuring) : Nodes #

[View source]
def format(node : Ast::TypeVariable) : Nodes #

[View source]
def format(node : Ast::TypeVariant) : Nodes #

[View source]
def format(node : Ast::UnaryMinus) : Nodes #

[View source]
def format(node : Ast::Use) : Nodes #

[View source]
def format(node : Ast::Variable) : Nodes #

[View source]
def format(node : Ast::Directives::Asset) : Nodes #

[View source]
def format(node : Ast::Directives::Format) : Nodes #

[View source]
def format(node : Ast::Directives::Highlight) : Nodes #

[View source]
def format(node : Ast::Directives::HighlightFile) : Nodes #

[View source]
def format(node : Ast::Directives::Inline) : Nodes #

[View source]
def format(node : Ast::Directives::Svg) : Nodes #

[View source]
def format(nodes : Array(Ast::Node | String)) : Nodes #

[View source]
def format(node : Ast::Node) : Nodes #

[View source]
def format(node : String) : Nodes #

[View source]
def format(node : Nil) : Nodes #

[View source]
def format(*, node : Ast::HtmlElement | Ast::HtmlComponent, prefix : Nodes, tag : Nodes) : Nodes #

[View source]
def format(node : T | Nil, &block : T -> Nodes) forall T #

[View source]
def format!(value : Nil) : Nil #

[View source]
def format!(*args, **named) : String #

[View source]
def format_arguments(nodes : Array(Ast::Node), *, empty_parenthesis = true) : Nodes #

[View source]
def format_documentation_comment(node : Ast::Comment | Nil) : Nodes #

[View source]
def group(**params) #

[View source]
def list(nodes : Array(Ast::Node), separator : String | Nil = nil, comment : Nodes | Nil = nil) : Nodes #

[View source]
def nested_string(**params) #

[View source]