@@ -22,7 +22,7 @@ ID rb_option_id_filepath;
22
22
ID rb_option_id_encoding ;
23
23
ID rb_option_id_line ;
24
24
ID rb_option_id_frozen_string_literal ;
25
- ID rb_option_id_suppress_warnings ;
25
+ ID rb_option_id_verbose ;
26
26
ID rb_option_id_scopes ;
27
27
28
28
/******************************************************************************/
@@ -130,8 +130,8 @@ build_options_i(VALUE key, VALUE value, VALUE argument) {
130
130
if (!NIL_P (value )) pm_options_line_set (options , NUM2UINT (value ));
131
131
} else if (key_id == rb_option_id_frozen_string_literal ) {
132
132
if (!NIL_P (value )) pm_options_frozen_string_literal_set (options , value == Qtrue );
133
- } else if (key_id == rb_option_id_suppress_warnings ) {
134
- if (! NIL_P ( value )) pm_options_suppress_warnings_set (options , value = = Qtrue );
133
+ } else if (key_id == rb_option_id_verbose ) {
134
+ pm_options_suppress_warnings_set (options , value ! = Qtrue );
135
135
} else if (key_id == rb_option_id_scopes ) {
136
136
if (!NIL_P (value )) build_options_scopes (options , value );
137
137
} else {
@@ -626,8 +626,8 @@ parse_input(pm_string_t *input, const pm_options_t *options) {
626
626
* integer or nil. Note that this is 1-indexed.
627
627
* * `frozen_string_literal` - whether or not the frozen string literal pragma
628
628
* has been set. This should be a boolean or nil.
629
- * * `suppress_warnings ` - whether or not warnings should be suppressed . This
630
- * should be a boolean or nil.
629
+ * * `verbose ` - the current level of verbosity . This controls whether or not
630
+ * the parser emits warnings. This should be a boolean or nil.
631
631
* * `scopes` - the locals that are in scope surrounding the code that is being
632
632
* parsed. This should be an array of arrays of symbols or nil.
633
633
*/
@@ -947,7 +947,7 @@ Init_prism(void) {
947
947
rb_option_id_encoding = rb_intern_const ("encoding" );
948
948
rb_option_id_line = rb_intern_const ("line" );
949
949
rb_option_id_frozen_string_literal = rb_intern_const ("frozen_string_literal" );
950
- rb_option_id_suppress_warnings = rb_intern_const ("suppress_warnings " );
950
+ rb_option_id_verbose = rb_intern_const ("verbose " );
951
951
rb_option_id_scopes = rb_intern_const ("scopes" );
952
952
953
953
/**
0 commit comments