summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGopal Patel <nixme@stillhope.com>2024-01-09 21:20:25 -0800
committergit <svn-admin@ruby-lang.org>2024-02-24 03:39:26 +0000
commit66565e36eae8a3dff53f86b3d04bf749e0b07a94 (patch)
treee9de6662d13d676515b5ef4652679a2bb1e68c19
parent8fa18435234335afbf17bda88324a620e15a4323 (diff)
[ruby/prism] Add documentation for Location#source!
https://github.com/ruby/prism/commit/467e1cc2c4
-rw-r--r--lib/prism/parse_result.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/prism/parse_result.rb b/lib/prism/parse_result.rb
index c00059fbfe..9771da5314 100644
--- a/lib/prism/parse_result.rb
+++ b/lib/prism/parse_result.rb
@@ -286,6 +286,7 @@ module Prism
private
+ # Access the associated source, raising if not present.
def source!
source or raise "Missing source"
end