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

- old
+ new

@@ -30,13 +30,19 @@ super "#{Location.to_string location}: Syntax error: #{error_message}, token=`#{location.source}` (#{token_type})" end def error_value + RBS.print_warning { + "#{self.class.name}#error_value is deprecated and will be deleted in RBS 2.0. Consider using `location.source` instead." + } location.source end def token_str + RBS.print_warning { + "#{self.class.name}#token_str is deprecated and will be deleted in RBS 2.0. Consider using `token_type` instead." + } token_type end end class InvalidTypeApplicationError < DefinitionError