[前][次][番号順一覧][スレッド一覧]

ruby-changes:43803

From: nobu <ko1@a...>
Date: Fri, 12 Aug 2016 12:29:53 +0900 (JST)
Subject: [ruby-changes:43803] nobu:r55876 (trunk): parse.y: assign_error

nobu	2016-08-12 12:29:49 +0900 (Fri, 12 Aug 2016)

  New Revision: 55876

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55876

  Log:
    parse.y: assign_error
    
    * parse.y (assign_error_gen): [ripper] rename without backref.

  Modified files:
    trunk/parse.y
Index: parse.y
===================================================================
--- parse.y	(revision 55875)
+++ parse.y	(revision 55876)
@@ -564,8 +564,9 @@ static VALUE const_decl_gen(struct parse https://github.com/ruby/ruby/blob/trunk/parse.y#L564
 #define const_decl(path) const_decl_gen(parser, path)
 
 #define var_field(n) dispatch1(var_field, (n))
-static VALUE backref_assign_error_gen(struct parser_params *parser, VALUE a);
-#define backref_assign_error(n, a) backref_assign_error_gen(parser, (a))
+static VALUE assign_error_gen(struct parser_params *parser, VALUE a);
+#define assign_error(a) assign_error_gen(parser, (a))
+#define backref_assign_error(n, a) assign_error(a)
 
 static VALUE parser_reg_compile(struct parser_params*, VALUE, int, VALUE *);
 
@@ -9211,7 +9212,7 @@ assignable_gen(struct parser_params *par https://github.com/ruby/ruby/blob/trunk/parse.y#L9212
 #ifdef RIPPER
     ID id = get_id(lhs);
 # define assignable_result(x) get_value(lhs)
-# define parser_yyerror(parser, x) (dispatch1(assign_error, lhs), ripper_error())
+# define parser_yyerror(parser, x) assign_error_gen(parser, lhs)
 #else
 # define assignable_result(x) (x)
 #endif
@@ -10249,14 +10250,13 @@ static VALUE https://github.com/ruby/ruby/blob/trunk/parse.y#L10250
 const_decl_gen(struct parser_params *parser, VALUE path)
 {
     if (in_def || in_single) {
-	dispatch1(assign_error, path);
-	ripper_error();
+	assign_error(path);
     }
     return path;
 }
 
 static VALUE
-backref_assign_error_gen(struct parser_params *parser, VALUE a)
+assign_error_gen(struct parser_params *parser, VALUE a)
 {
     a = dispatch1(assign_error, a);
     ripper_error();

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]