module Crystal::ErrorFormat

Direct including types

Defined in:

compiler/crystal/exception.cr

Constant Summary

MACRO_LINES_TO_SHOW = 3
OFFSET_FROM_LINE_NUMBER_DECORATOR = 6

Instance Method Summary

Instance Method Detail

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

[View source]
def append_expanded_macro(io, source) #

[View source]
def append_macro_definition_location(io, filename : VirtualFile) #

[View source]
def append_where_macro_expanded(io, filename : VirtualFile) #

[View source]
def error_body(source, default_message) : String | Nil #

[View source]
def filename_row_col_message(filename, line_number, column_number) #

[View source]
def format_error(filename, lines, line_number, column_number, size = 0) #

[View source]
def format_error_from_file(filename : String) #

[View source]
def format_macro_error(virtual_file : VirtualFile) #

[View source]
def line_number_decorator(line_number) #

[View source]
def minimize_indentation(source) #

[View source]
def remaining(lines : Array(String)) #

[View source]
def source_lines(filename) #

[View source]