diff options
| author | Benoit Daloze <eregontp@gmail.com> | 2024-01-27 11:05:30 +0100 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-01-27 18:41:07 +0000 |
| commit | c2e2d2398b86e7bcc89ab534e3a3af54cf8374b5 (patch) | |
| tree | 577b4bd40fde347ce8104474ca043dce1b36bbd6 /lib | |
| parent | 2217e08340cbeba427fc58c7f955fc2382ab0372 (diff) | |
[ruby/prism] Call #inspect on diagnostic levels
* So it's clear it is a Symbol.
Before:
... @level=warning_verbose_true>
After:
... @level=:warning_verbose_true>
https://github.com/ruby/prism/commit/84503643b9
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/prism/parse_result.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/prism/parse_result.rb b/lib/prism/parse_result.rb index 27e03fe23b..5bb7ac7e9e 100644 --- a/lib/prism/parse_result.rb +++ b/lib/prism/parse_result.rb @@ -329,7 +329,7 @@ module Prism # Returns a string representation of this error. def inspect - "#<Prism::ParseError @message=#{@message.inspect} @location=#{@location.inspect} @level=#{@level}>" + "#<Prism::ParseError @message=#{@message.inspect} @location=#{@location.inspect} @level=#{@level.inspect}>" end end @@ -358,7 +358,7 @@ module Prism # Returns a string representation of this warning. def inspect - "#<Prism::ParseWarning @message=#{@message.inspect} @location=#{@location.inspect} @level=#{@level}>" + "#<Prism::ParseWarning @message=#{@message.inspect} @location=#{@location.inspect} @level=#{@level.inspect}>" end end |
