diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2021-08-20 16:18:36 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2021-08-20 16:18:36 +0900 |
commit | cad83fa3c4491153df0561b06bb261e25a831d0f (patch) | |
tree | bfd9978fbf6d6971c34cfa40bf2b3ce673377ed3 /ast.rb | |
parent | 4c93c124c29465e49343b47c935be99ad67a7d83 (diff) |
ast.c: Rename "save_script_lines" to "keep_script_lines"
... as per ko1's preference. He is preparing to extend this feature to
ISeq for his new debugger. He prefers "keep" to "save" for this wording.
This API is internal and not included in any released version, so I
change it in advance.
Diffstat (limited to 'ast.rb')
-rw-r--r-- | ast.rb | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -29,8 +29,8 @@ module RubyVM::AbstractSyntaxTree # # RubyVM::AbstractSyntaxTree.parse("x = 1 + 2") # # => #<RubyVM::AbstractSyntaxTree::Node:SCOPE@1:0-1:9> - def self.parse string, save_script_lines: false - Primitive.ast_s_parse string, save_script_lines + def self.parse string, keep_script_lines: false + Primitive.ast_s_parse string, keep_script_lines end # call-seq: @@ -44,8 +44,8 @@ module RubyVM::AbstractSyntaxTree # # RubyVM::AbstractSyntaxTree.parse_file("my-app/app.rb") # # => #<RubyVM::AbstractSyntaxTree::Node:SCOPE@1:0-31:3> - def self.parse_file pathname, save_script_lines: false - Primitive.ast_s_parse_file pathname, save_script_lines + def self.parse_file pathname, keep_script_lines: false + Primitive.ast_s_parse_file pathname, keep_script_lines end # call-seq: @@ -63,8 +63,8 @@ module RubyVM::AbstractSyntaxTree # # RubyVM::AbstractSyntaxTree.of(method(:hello)) # # => #<RubyVM::AbstractSyntaxTree::Node:SCOPE@1:0-3:3> - def self.of body, save_script_lines: false - Primitive.ast_s_of body, save_script_lines + def self.of body, keep_script_lines: false + Primitive.ast_s_of body, keep_script_lines end # RubyVM::AbstractSyntaxTree::Node instances are created by parse methods in |