Module: Jade::Formatter::FunctionCall
Overview
FunctionCall and KeyedCall share the same break-on-too-long / respect-trailing-comma logic. Grouped here as siblings.
Instance Method Summary collapse
Methods included from Helper
and_indent, dispatch_for, format_delimited, format_exposing, format_leading_comments, format_node, format_pattern, format_trailing_comment, format_type, format_type_atom, too_long?
Instance Method Details
#format(node, indent:, source:) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/jade/formatter/calls.rb', line 10 def format(node, indent:, source:) node => AST::FunctionCall(callee:, args:, trailing_comma:) callee_str = format_node(callee, source:) args_strs = args.map { format_node(it, source:) } Calls.render(callee_str, args_strs, trailing_comma, indent) end |