Skip to content

Commit db72066

Browse files
committed
Mark insert_on_sp as private
1 parent 761f0db commit db72066

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

lib/prism/lex_compat.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -820,12 +820,14 @@ def result
820820
end
821821

822822
# Add :on_sp tokens
823-
tokens = add_on_sp_tokens(tokens, source, result.data_loc, bom, eof_token)
823+
tokens = insert_on_sp(tokens, source, result.data_loc, bom, eof_token)
824824

825825
Result.new(tokens, result.comments, result.magic_comments, result.data_loc, result.errors, result.warnings, source)
826826
end
827827

828-
def add_on_sp_tokens(tokens, source, data_loc, bom, eof_token)
828+
private
829+
830+
def insert_on_sp(tokens, source, data_loc, bom, eof_token)
829831
new_tokens = []
830832

831833
prev_token_state = Translation::Ripper::Lexer::State[Translation::Ripper::EXPR_BEG]

0 commit comments

Comments
 (0)