From 238245bc8e27895678679d0a7dae46e063e81dcf Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 22 Sep 2000 18:15:52 +0000 Subject: matz git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index cf0687609..85cc49bce 100644 --- a/parse.y +++ b/parse.y @@ -1204,12 +1204,13 @@ primary : literal class_nest++; cref_push(); local_push(); + $$ = ruby_sourceline; } compstmt kEND { $$ = NEW_CLASS($2, $5, $3); - fixpos($$, $3); + nd_set_line($$, $4); local_pop(); cref_pop(); class_nest--; @@ -1236,12 +1237,13 @@ primary : literal class_nest++; cref_push(); local_push(); + $$ = ruby_sourceline; } compstmt kEND { $$ = NEW_MODULE($2, $4); - fixpos($$, $4); + nd_set_line($$, $3); local_pop(); cref_pop(); class_nest--; -- cgit