Skip to content

module Crystal::ErrorFormat

Direct including types

Crystal::SyntaxException Crystal::TypeException

Constants

MACRO_LINES_TO_SHOW = 3

OFFSET_FROM_LINE_NUMBER_DECORATOR = 6

Methods

#append_error_indicator(io, offset, column_number, size = 0)

View source

#append_expanded_macro(io, source)

View source

#append_macro_definition_location(io, filename : VirtualFile)

View source

#append_where_macro_expanded(io, filename : VirtualFile)

View source

#error_body(source, default_message) : String?

View source

#filename_row_col_message(filename, line_number, column_number)

View source

#format_error(filename, lines, line_number, column_number, size = 0)

View source

#format_error_from_file(filename : String)

View source

#format_macro_error(virtual_file : VirtualFile)

View source

#line_number_decorator(line_number)

View source

#minimize_indentation(source)

View source

#remaining(lines : Array(String))

View source

#source_lines(filename)

View source