class Emfrp::Typing::TypeDetermineError
Public Class Methods
new(code, undetermined_utype, factor)
click to toggle source
# File lib/emfrp/typing/typing_error.rb, line 30 def initialize(code, undetermined_utype, factor) @code = code @utype = undetermined_utype @factor = factor end
Public Instance Methods
code()
click to toggle source
# File lib/emfrp/typing/typing_error.rb, line 36 def code @code end
print_error(output_io, file_loader)
click to toggle source
# File lib/emfrp/typing/typing_error.rb, line 40 def print_error(output_io, file_loader) output_io << "[Undetermined Type Error]".colorize(:red) + ":\n" output_io << "Undetermined: " + "#{@utype.inspect}".colorize(:green) + "\n" print_lexical_factor(@factor, output_io, file_loader) end