Modules | Files | Inheritance Tree | Inheritance Graph | Name Index | Config
module Synopsis::Formatter::HTML::ScopeSorter
class ScopeSorter
Files: Synopsis/Formatter/HTML/ScopeSorter.py

A class that takes a scope and sorts its children by type. To use it call set_scope, then access the sorted list by the other methods.


Operations Summary:
 __init__(self, scope = None)
Optional scope starts using that AST.Scope [Source]
 set_scope(self, scope)
Sort children of given scope [Source]
 _add_decl(self, decl, name, section)
Adds the given decl with given name and section to the internal data [Source]
 _section_of(self, decl) [Source]
 _sort_sections(self) [Source]
 sort_section_names(self)
Sorts sections names if they need it [Source]
 _set_section_names(self, sections) [Source]
 _handle_group(self, group)
Handles a group [Source]
 sort_sections(self)
Sorts the children of all sections, if they need it [Source]
 child(self, name)
Returns the child with the given name. [Source]
 sections(self)
Returns a list of available section names [Source]
 children(self, section = None)
Returns list of children in given section, or all children [Source]

Operation Details:
  child(self, name)

Returns the child with the given name. Throws KeyError if not found.