A class that maps comments that begin with '<' to the previous declaration
Operations Summary: | |
processAll(self, declarations) decorates processAll() to initialise last and laststack [Source] | |
push(self) decorates push() to also push 'last' onto 'laststack' [Source] | |
pop(self, decl) decorates pop() to also pop 'last' from 'laststack' [Source] | |
visitScope(self, scope) overrides visitScope() to set 'last' after each declaration [Source] | |
checkPrevious(self, decl) Checks a decl to see if the comment should be moved. [Source] | |
removeSuspect(self, decl) Removes any suspect comments from the declaration [Source] | |
visitDeclaration(self, decl) Calls checkPrevious on the declaration and removes dummies [Source] | |
visitEnum(self, enum) Does the same as visitScope but for enum and enumerators [Source] | |
visitEnumerator(self, enumor) Checks previous comment and removes dummies [Source] |
Operations Inherited from Transformer | |
__init__, add, currscope |
Operations Inherited from CommentProcessor | |
process |
Operation Details: |
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