You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, we need ($self->parser->line_column)[0] to get line numbers in custom receiver class's methods. It'll be great if the Pegex::Receiver class (or anything along the inheritance line) provides a handy line() method so that each receiver method can just call $self->line to get the line number. Also this method can avoid the dynamic Perl array creation in line_column because only the line number is requested.
The text was updated successfully, but these errors were encountered:
agentzh
changed the title
Handy line() method in Pegex::Receiver
Add a handy line() method in Pegex::Receiver
Mar 29, 2015
Right now, we need
($self->parser->line_column)[0]
to get line numbers in custom receiver class's methods. It'll be great if the Pegex::Receiver class (or anything along the inheritance line) provides a handyline()
method so that each receiver method can just call$self->line
to get the line number. Also this method can avoid the dynamic Perl array creation inline_column
because only the line number is requested.The text was updated successfully, but these errors were encountered: