summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2021-08-20 16:18:36 +0900
committerYusuke Endoh <mame@ruby-lang.org>2021-08-20 16:18:36 +0900
commitcad83fa3c4491153df0561b06bb261e25a831d0f (patch)
treebfd9978fbf6d6971c34cfa40bf2b3ce673377ed3 /parse.y
parent4c93c124c29465e49343b47c935be99ad67a7d83 (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 'parse.y')
-rw-r--r--parse.y8
1 files changed, 4 insertions, 4 deletions
diff --git a/parse.y b/parse.y
index 897b46838e1..65c90a7a681 100644
--- a/parse.y
+++ b/parse.y
@@ -337,7 +337,7 @@ struct parser_params {
unsigned int do_loop: 1;
unsigned int do_chomp: 1;
unsigned int do_split: 1;
- unsigned int save_script_lines: 1;
+ unsigned int keep_script_lines: 1;
NODE *eval_tree_begin;
NODE *eval_tree;
@@ -6251,7 +6251,7 @@ yycompile0(VALUE arg)
cov = Qtrue;
}
}
- if (p->save_script_lines) {
+ if (p->keep_script_lines) {
if (!p->debug_lines) {
p->debug_lines = rb_ary_new();
}
@@ -13197,12 +13197,12 @@ rb_parser_set_context(VALUE vparser, const struct rb_iseq_struct *base, int main
}
void
-rb_parser_save_script_lines(VALUE vparser)
+rb_parser_keep_script_lines(VALUE vparser)
{
struct parser_params *p;
TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, p);
- p->save_script_lines = 1;
+ p->keep_script_lines = 1;
}
#endif