diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-14 14:46:16 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-14 14:46:16 +0000 |
commit | 52f9a3ec267499a792098152b880e4df4bb76fc8 (patch) | |
tree | 5d84c87df5287016dca83c8b16b710aebd5e3a6b /parse.y | |
parent | f172c2768310e50a3754e53d17fe4fe78e0b93bb (diff) |
* parse.y (singleton): no need to re-create NODE_SELF() again.
[ruby-core:09177]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -2377,13 +2377,8 @@ opt_f_block_arg : ',' f_block_arg singleton : var_ref { - if ($1 && nd_type($1) == NODE_SELF) { - $$ = NEW_SELF(); - } - else { - $$ = $1; - value_expr($$); - } + $$ = $1; + value_expr($$); } | '(' {lex_state = EXPR_BEG;} expr opt_nl ')' { |