Skip to content

Commit

Permalink
Fix :tree support for .^methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Jun 9, 2009
1 parent f80f12c commit 86aeafb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/parrot/ClassHOW.pir
Expand Up @@ -165,12 +165,11 @@ XXX Fix bugs with introspecting some built-in classes (List, Str...)
if $I0 goto parent_it_loop
cur_parent = getprop 'metaclass', cur_parent
cur_parent = cur_parent.'WHAT'()
parent_methods = self.'methods'(cur_parent)
parent_methods = self.'methods'(cur_parent, adverbs :flat :named)
if null tree goto not_tree
if tree goto flatten_done
unless tree goto not_tree
parent_methods = new 'Perl6Scalar', parent_methods
not_tree:
parent_methods = parent_methods.'list'()
flatten_done:
result_list.'push'(parent_methods)
goto parent_it_loop
parent_it_loop_end:
Expand Down

0 comments on commit 86aeafb

Please sign in to comment.