Modules | Files | Inheritance Tree | Inheritance Graph | Name Index | Config
module Synopsis::Linker::Comments
class Previous
Files: Synopsis/Linker/Comments.py
Previous-inheritance Scopes/Synopsis/Linker/Comments/Dummies.html Scopes/Synopsis/Linker/Comments/Transformer.html Scopes/Synopsis/Linker/Comments/CommentProcessor.html

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:
  checkPrevious(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