summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-14 14:46:16 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-14 14:46:16 +0000
commit52f9a3ec267499a792098152b880e4df4bb76fc8 (patch)
tree5d84c87df5287016dca83c8b16b710aebd5e3a6b /parse.y
parentf172c2768310e50a3754e53d17fe4fe78e0b93bb (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.y9
1 files changed, 2 insertions, 7 deletions
diff --git a/parse.y b/parse.y
index 5b8e4a1738..0f02f06434 100644
--- a/parse.y
+++ b/parse.y
@@ -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 ')'
{