Ignore:
Timestamp:
06/25/09 09:16:10 (3 years ago)
Author:
jquelin
Message:

detection of moosex::poe events in outline view

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/Task/Outline/Perl.pm

    r5577 r5578  
    104104            if ( $node->isa('PPI::Token::Word') && $node->content eq 'has' ) { 
    105105                push @{ $cur_pkg->{attributes} }, { name => $thing->child(2)->content, line => $thing->location->[0] }; 
     106                next; 
     107            } 
     108 
     109            # MooseX::POE event declaration 
     110            if ( $node->isa('PPI::Token::Word') && $node->content eq 'event' ) { 
     111                push @{ $cur_pkg->{events} }, { name => $thing->child(2)->content, line => $thing->location->[0] }; 
    106112                next; 
    107113            } 
     
    240246            ) 
    241247        ); 
    242         foreach my $type (qw(pragmata modules attributes methods)) { 
     248        foreach my $type (qw(pragmata modules attributes methods events)) { 
    243249            _add_subtree( $outlinebar, $pkg, $type, $branch ); 
    244250        } 
Note: See TracChangeset for help on using the changeset viewer.