diff --git a/lib/prism/parse_result.rb b/lib/prism/parse_result.rb index df1d66f44c..c3b4bc8887 100644 --- a/lib/prism/parse_result.rb +++ b/lib/prism/parse_result.rb @@ -711,5 +711,11 @@ module Prism other.type == type && other.value == value end + + # Returns a string representation of this token. + def inspect + location + super + end end end