summaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-22 18:15:52 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-22 18:15:52 +0000
commit238245bc8e27895678679d0a7dae46e063e81dcf (patch)
tree90792cf8ee88dfaff3722e990e900d422f8f875f /parse.y
parent2feb32722dc1a0cc432691240e09ea2516df46bb (diff)
downloadruby-238245bc8e27895678679d0a7dae46e063e81dcf.tar.gz
ruby-238245bc8e27895678679d0a7dae46e063e81dcf.tar.xz
ruby-238245bc8e27895678679d0a7dae46e063e81dcf.zip
matz
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y6
1 files changed, 4 insertions, 2 deletions
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();
+ $<num>$ = ruby_sourceline;
}
compstmt
kEND
{
$$ = NEW_CLASS($2, $5, $3);
- fixpos($$, $3);
+ nd_set_line($$, $<num>4);
local_pop();
cref_pop();
class_nest--;
@@ -1236,12 +1237,13 @@ primary : literal
class_nest++;
cref_push();
local_push();
+ $<num>$ = ruby_sourceline;
}
compstmt
kEND
{
$$ = NEW_MODULE($2, $4);
- fixpos($$, $4);
+ nd_set_line($$, $<num>3);
local_pop();
cref_pop();
class_nest--;