summaryrefslogtreecommitdiff
path: root/lib/prism/parse_result.rb
diff options
context:
space:
mode:
authorBenoit Daloze <[email protected]>2024-01-27 11:05:30 +0100
committergit <[email protected]>2024-01-27 18:41:07 +0000
commitc2e2d2398b86e7bcc89ab534e3a3af54cf8374b5 ()
tree577b4bd40fde347ce8104474ca043dce1b36bbd6 /lib/prism/parse_result.rb
parent2217e08340cbeba427fc58c7f955fc2382ab0372 (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://.com/ruby/prism/commit/84503643b9
-rw-r--r--lib/prism/parse_result.rb4
1 files changed, 2 insertions, 2 deletions
@@ -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}>"
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}>"
end
end