summaryrefslogtreecommitdiffstats
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
commit442569810323d6071aca193d4b5fd133c75d8dba (patch)
tree989000d7e0c60c6c4a8c7daef104d08c6e57e914 /parse.y
parent153c4913bc3772505640f758240c4870e6ba55e4 (diff)
downloadruby-442569810323d6071aca193d4b5fd133c75d8dba.tar.gz
ruby-442569810323d6071aca193d4b5fd133c75d8dba.tar.xz
ruby-442569810323d6071aca193d4b5fd133c75d8dba.zip
* parse.y (singleton): no need to re-create NODE_SELF() again.
[ruby-core:09177] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@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 f82c7a90a..5326daf79 100644
--- a/parse.y
+++ b/parse.y
@@ -4240,13 +4240,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($$);
/*%
$$ = $1;
%*/