Synopsis - Synopsis.Processors.Comments.Previous.Previous

module Synopsis.Processors.Comments.Previous
class Previous
File: ../Synopsis/Processors/Comments/Previous.py
A class that maps comments that begin with '<' to the previous declaration
Methods Summary:
process(self, ir, * * kwds)
push(self)
pop(self)
visit_scope(self, scope)
visit_declaration(self, decl)
visit_builtin(self, decl)
visit_enum(self, enum)
visit_enumerator(self, enumor)
process_comments(self, decl)
Checks a decl to see if the comment should be moved.
Methods Details:
process(self, ir, * * kwds)
decorates process() to initialise last and laststack
push(self)
decorates push() to also push 'last' onto 'laststack'
pop(self)
decorates pop() to also pop 'last' from 'laststack'
visit_scope(self, scope)
overrides visit_scope() to set 'last' after each declaration
visit_enum(self, enum)
Does the same as visit_scope but for enum and enumerators
visit_enumerator(self, enumor)
Checks previous comment and removes dummies
process_comments(self, decl)
Checks a decl to see if the comment should be moved. If the comment begins with a less-than sign, then it is moved to the 'last' declaration
Generated on Thu Apr 16 16:27:07 2009 by
synopsis (version devel)