lib/rbs/errors.rb in rbs-1.7.0.beta.1 vs lib/rbs/errors.rb in rbs-1.7.0.beta.2

- old
+ new

@@ -28,9 +28,17 @@ @error_message = error_message @token_type = token_type super "#{Location.to_string location}: Syntax error: #{error_message}, token=`#{location.source}` (#{token_type})" end + + def error_value + location.source + end + + def token_str + token_type + end end class InvalidTypeApplicationError < DefinitionError attr_reader :type_name attr_reader :args