lib/steep/drivers/trace_printer.rb in steep-0.39.0 vs lib/steep/drivers/trace_printer.rb in steep-0.40.0

- old
+ new

@@ -7,17 +7,21 @@ @io = io end def print(trace, level: 0) trace.each.with_index do |t, i| - prefix = " " * (i + level) + prefix = " " * (i + level) case t[0] when :type io.puts "#{prefix}#{t[1]} <: #{t[2]}" when :method io.puts "#{prefix}(#{t[3]}) #{t[1]} <: #{t[2]}" when :method_type io.puts "#{prefix}#{t[1]} <: #{t[2]}" + when :interface + # nop + else + Steep.logger.error { "Unexpected trace item: #{t[0]}" } end end end end end