Synopsis - Synopsis.Processors.ScopeStripper.ScopeStripper

module Synopsis.Processors.ScopeStripper
class ScopeStripper
File: ../Synopsis/Processors/ScopeStripper.py
Strip common prefix from the declaration's name. Keep a list of root nodes, such that children whos parent scopes are not accepted but which themselfs are correct can be maintained as new root nodes.
Attributes Summary:
declarations
inside
_scope
Class attributes Summary:
scope
Methods Summary:
__init__(self, * * kwds)
process(self, ir, * * kwds)
strip_name(self, name)
strip_declarations(self, declarations)
strip_types(self, types)
strip(self, declaration)
test whether the declaration matches one of the prefixes, strip it off, and return success.
visit_scope(self, scope)
visit_class(self, class_)
visit_class_template(self, class_)
visit_declaration(self, decl)
visit_enumerator(self, enumerator)
visit_enum(self, enum)
visit_function(self, function)
visit_parameter(self, parameter)
visit_function_template(self, function)
visit_operation(self, operation)
visit_operation_template(self, operation)
visit_meta_module(self, module)
Methods Details:
strip(self, declaration)
test whether the declaration matches one of the prefixes, strip it off, and return success. Success means that the declaration matches the prefix set and thus should not be removed from the ASG.
Generated on Thu Apr 16 16:26:58 2009 by
synopsis (version devel)