Skip to content

Commit

Permalink
simplify CallFrame.pm, and make a parameter optional
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Jun 17, 2010
1 parent d1a7442 commit cb0e95e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/core/CallFrame.pm
Expand Up @@ -17,15 +17,13 @@ class CallFrame {
}
method line() {
my $ann = self!annotations();
$ann<line>;
self!annotations()<fline>;
}
method file() {
my $ann = self!annotations();
$ann<file>;
self!annotations()<file>;
}
method callframe(Int $level) {
method callframe(Int $level = 0) {
CallFrame.new(:interp($!interp), :level($!level + $level));
}

Expand Down

0 comments on commit cb0e95e

Please sign in to comment.