summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2026-01-27 15:50:58 -0500
committergit <svn-admin@ruby-lang.org>2026-01-27 20:51:32 +0000
commitd5616094f4625cc4ba96c28c3c84967af742a1dc (patch)
tree0884abe46131f8e68620ff815d0291605bc709ca /lib
parent5c15f9380f9782750ee223140108950a5262075e (diff)
[ruby/prism] Mark insert_on_sp as private
https://github.com/ruby/prism/commit/db72066cde
Diffstat (limited to 'lib')
-rw-r--r--lib/prism/lex_compat.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/prism/lex_compat.rb b/lib/prism/lex_compat.rb
index e69f4109dc..c23adda241 100644
--- a/lib/prism/lex_compat.rb
+++ b/lib/prism/lex_compat.rb
@@ -820,12 +820,14 @@ module Prism
end
# Add :on_sp tokens
- tokens = add_on_sp_tokens(tokens, source, result.data_loc, bom, eof_token)
+ tokens = insert_on_sp(tokens, source, result.data_loc, bom, eof_token)
Result.new(tokens, result.comments, result.magic_comments, result.data_loc, result.errors, result.warnings, source)
end
- def add_on_sp_tokens(tokens, source, data_loc, bom, eof_token)
+ private
+
+ def insert_on_sp(tokens, source, data_loc, bom, eof_token)
new_tokens = []
prev_token_state = Translation::Ripper::Lexer::State[Translation::Ripper::EXPR_BEG]