Changeset 5578


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

detection of moosex::poe events in outline view

Location:
trunk/Padre
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/Changes

    r5577 r5578  
    55    Some of the refactoring code was moved to PPIx-EditorTools (MGRIMES) 
    66    Detection of Moose attributes in Outline view (jquelin) 
     7    Detection of MooseX::POE events in Outline view (jquelin) 
    78 
    89v0.37 2009.06.25 
  • 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.