diff --git a/src/compiler/crystal/tools/unreachable.cr b/src/compiler/crystal/tools/unreachable.cr index db05a591d046..f70de18a0282 100644 --- a/src/compiler/crystal/tools/unreachable.cr +++ b/src/compiler/crystal/tools/unreachable.cr @@ -46,6 +46,10 @@ module Crystal io << a_def.location << "\t" io << a_def.short_reference << "\t" io << a_def.length << " lines" + if annotations = a_def.all_annotations + io << "\t" + annotations.join(io, " ") + end io.puts end end @@ -59,6 +63,9 @@ module Crystal if lines = a_def.length builder.field "lines", lines end + if annotations = a_def.all_annotations + builder.field "annotations", annotations.map(&.to_s) + end end end end