Skip to content

Commit

Permalink
* parse.y (ripper_yylval_id, ripper_get_{id,value}): wrap ID by
Browse files Browse the repository at this point in the history
  NODE to track local variable assignment.

* parse.y (lvar_defined_gen, assignable_gen): enable local
  variable check.  [ruby-core:24923]

* parse.y (validate): use value only.

* test/ripper/test_parser_events.rb (test_local_variables): tests
  based on a patch from Magnus Holm in [ruby-core:25885].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Oct 2, 2009
1 parent e9c728f commit aec8a4b
Show file tree
Hide file tree
Showing 4 changed files with 331 additions and 173 deletions.
13 changes: 13 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
Fri Oct 2 20:37:37 2009 Nobuyoshi Nakada <[email protected]>

* parse.y (ripper_yylval_id, ripper_get_{id,value}): wrap ID by
NODE to track local variable assignment.

* parse.y (lvar_defined_gen, assignable_gen): enable local
variable check. [ruby-core:24923]

* parse.y (validate): use value only.

* test/ripper/test_parser_events.rb (test_local_variables): tests
based on a patch from Magnus Holm in [ruby-core:25885].

Fri Oct 2 15:34:15 2009 Nobuyoshi Nakada <[email protected]>

* thread.c (ruby_suppress_tracing): get rid of clobbering by
Expand Down
Loading

0 comments on commit aec8a4b

Please sign in to comment.