summaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-22 13:37:26 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-22 13:37:26 +0000
commit605f3d72211afc4525258678be96bd4c975ce387 (patch)
tree8531808ccda96f0f65d1f12d544e953df0ca6014 /parse.y
parent999be5f5fd879b582955689487598ea3f825e229 (diff)
downloadruby-605f3d72211afc4525258678be96bd4c975ce387.tar.gz
ruby-605f3d72211afc4525258678be96bd4c975ce387.tar.xz
ruby-605f3d72211afc4525258678be96bd4c975ce387.zip
* vm_core.h (struct rb_iseq_t): add a new field line_no. This field
represents line number from which the original code of the iseq starts. [ruby-dev:38698] * iseq.c, compile.c: ditto. * parse.y: line number hack (for Proc#source_location) is no longer needed. * test/ruby/test_settracefunc.rb: line number of set_trace_func is now compatible with 1.8's. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y4
1 files changed, 0 insertions, 4 deletions
diff --git a/parse.y b/parse.y
index 3e4bc729b..10ac87874 100644
--- a/parse.y
+++ b/parse.y
@@ -2896,7 +2896,6 @@ primary : literal
reduce_nodes(&body);
$$ = NEW_DEFN($2, $4, body, NOEX_PRIVATE);
fixpos($$, $4);
- fixpos($$->nd_defn, $4);
local_pop();
/*%
$$ = dispatch3(def, $2, $4, $5);
@@ -2922,7 +2921,6 @@ primary : literal
reduce_nodes(&body);
$$ = NEW_DEFS($2, $5, $7, body);
fixpos($$, $2);
- fixpos($$->nd_defn, $2);
local_pop();
/*%
$$ = dispatch5(defs, $2, $3, $5, $7, $8);
@@ -3636,8 +3634,6 @@ brace_block : '{'
/*%%%*/
$$ = NEW_ITER($3,$4);
nd_set_line($$, $<num>2);
- nd_set_line($$->nd_body, $<num>2);
- nd_set_line($$->nd_body->nd_body, $<num>2);
dyna_pop();
/*%
$$ = dispatch2(brace_block, escape_Qundef($3), $4);