From 31c561f66a4fc727f24a1010bf1dfff6f6c85ffc Mon Sep 17 00:00:00 2001 From: mame Date: Wed, 22 Jul 2009 13:37:26 +0000 Subject: * 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@24243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 4 ---- 1 file changed, 4 deletions(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index 3e4bc729b2..10ac878749 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($$, $2); - nd_set_line($$->nd_body, $2); - nd_set_line($$->nd_body->nd_body, $2); dyna_pop(); /*% $$ = dispatch2(brace_block, escape_Qundef($3), $4); -- cgit v1.2.3