class Rufo::Formatter
def bug(msg)
def bug(msg) raise Rufo::Bug.new("#{msg} at #{current_token}") end
Included Modules
Class Methods
Instance Methods
- # adjust_other_alignments
- # bug
- # capture_output
- # check
- # check_heredocs_in_literal_elements
- # comma?
- # comment?
- # consume_block_args
- # consume_call_dot
- # consume_embedded_comment
- # consume_end
- # consume_end_of_line
- # consume_keyword
- # consume_op
- # consume_op_or_keyword
- # consume_pin_op
- # consume_space
- # consume_space_after_command_name
- # consume_space_or_newline
- # consume_token
- # consume_token_value
- # current_comment_aligned_to_previous_one?
- # current_token
- # current_token_column
- # current_token_kind
- # current_token_line
- # current_token_value
- # declaration?
- # dedent_calls
- # do_align
- # do_align_case_when
- # empty_body?
- # empty_params?
- # find_closing_brace_token
- # flush_heredocs
- # format
- # format_endless_method
- # format_simple_string
- # indent
- # indent_after_space
- # indent_body
- # indent_literals
- # initialize
- # keyword?
- # last?
- # maybe_indent
- # need_space_for_hash?
- # needs_two_lines?
- # newline?
- # next_indent
- # next_token
- # next_token_no_heredoc_check
- # node_line
- # op?
- # push_call
- # push_hash
- # push_node
- # push_type
- # quote_char
- # remove_lines_before_inline_declarations
- # result
- # semicolon?
- # should_format_string?
- # simple_string
- # skip_ignored_space
- # skip_semicolons
- # skip_space
- # skip_space_backslash
- # skip_space_no_heredoc_check
- # skip_space_or_newline
- # skip_space_or_newline_using_setting
- # space?
- # to_ary
- # track_alignment
- # track_assignment
- # track_case_when
- # track_comment
- # visit
- # visit_alias
- # visit_args_add_star
- # visit_array
- # visit_array_access
- # visit_array_getter_or_setter
- # visit_array_pattern
- # visit_array_setter
- # visit_assign
- # visit_assign_value
- # visit_begin
- # visit_begin_node
- # visit_begin_or_end
- # visit_binary
- # visit_block_arguments
- # visit_bodystmt
- # visit_brace_block
- # visit_break
- # visit_call_args
- # visit_call_at_paren
- # visit_call_with_block
- # visit_call_with_receiver
- # visit_call_without_receiver
- # visit_case
- # visit_class
- # visit_comma_separated_list
- # visit_command
- # visit_command_args
- # visit_command_call
- # visit_command_end
- # visit_constant_pattern
- # visit_control_keyword
- # visit_def
- # visit_def_from_name
- # visit_def_with_receiver
- # visit_defined
- # visit_do_block
- # visit_end_node
- # visit_exps
- # visit_find_pattern
- # visit_for
- # visit_hash
- # visit_hash_key_value
- # visit_hash_pattern
- # visit_if
- # visit_if_or_unless
- # visit_kwrest_param
- # visit_lambda
- # visit_literal_elements
- # visit_mlhs
- # visit_module
- # visit_mrhs_add_star
- # visit_mrhs_new_from_args
- # visit_multiple_assign
- # visit_next
- # visit_op_assign
- # visit_params
- # visit_paren
- # visit_path
- # visit_q_or_i_array
- # visit_quoted_symbol_literal
- # visit_range
- # visit_regexp_literal
- # visit_rescue_types
- # visit_rest_param
- # visit_return
- # visit_sclass
- # visit_setter
- # visit_splat_inside_hash
- # visit_string_concat
- # visit_string_dvar
- # visit_string_interpolation
- # visit_string_literal
- # visit_string_literal_end
- # visit_suffix
- # visit_super
- # visit_symbol
- # visit_symbol_literal
- # visit_ternary_if
- # visit_unary
- # visit_undef
- # visit_unless
- # visit_until
- # visit_when
- # visit_while
- # visit_while_or_until
- # visit_yield
- # void_exps?
- # with_unmodifiable_string_lines
- # write
- # write_indent
- # write_line
- # write_params_comma
- # write_space
- # write_space_using_setting