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

ruby-changes:30295

From: usa <ko1@a...>
Date: Sat, 3 Aug 2013 06:59:28 +0900 (JST)
Subject: [ruby-changes:30295] usa:r42347 (trunk): * parse.y (value_expr_gen): now NODE_DEFN and NODE_DEFS are not void

usa	2013-08-03 06:57:49 +0900 (Sat, 03 Aug 2013)

  New Revision: 42347

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42347

  Log:
    * parse.y (value_expr_gen): now NODE_DEFN and NODE_DEFS are not void
      value expressions.  get rid of wrong warning with -w, and make to
      pass tests with chkbuild.  ref. [Feature #3753]

  Modified files:
    trunk/ChangeLog
    trunk/parse.y

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 42346)
+++ ChangeLog	(revision 42347)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Aug  3 06:55:29 2013  NAKAMURA Usaku  <usa@r...>
+
+	* parse.y (value_expr_gen): now NODE_DEFN and NODE_DEFS are not void
+	  value expressions.  get rid of wrong warning with -w, and make to
+	  pass tests with chkbuild.  ref. [Feature #3753]
+
 Sat Aug  3 04:23:48 2013  Eric Hodel  <drbrain@s...>
 
 	* doc/syntax/refinements.rdoc:  Remove mention of instance_eval and
Index: parse.y
===================================================================
--- parse.y	(revision 42346)
+++ parse.y	(revision 42347)
@@ -8887,11 +8887,6 @@ value_expr_gen(struct parser_params *par https://github.com/ruby/ruby/blob/trunk/parse.y#L8887
     }
     while (node) {
 	switch (nd_type(node)) {
-	  case NODE_DEFN:
-	  case NODE_DEFS:
-	    parser_warning(node, "void value expression");
-	    return FALSE;
-
 	  case NODE_RETURN:
 	  case NODE_BREAK:
 	  case NODE_NEXT:

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

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