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

A class that deals with dummy declarations and their comments. This class just removes them.


Operations Summary:
 visitDeclaration(self, decl)
Checks for dummy declarations [Source]
 visitScope(self, scope)
Visits all children of the scope in a new scope. [Source]
 visitEnum(self, enum)
Does the same as visitScope, but for the enum's list of enumerators [Source]
 visitEnumerator(self, enumor)
Removes dummy enumerators [Source]

Operations Inherited from Transformer
__init__, processAll, push, pop, add, currscope

Operations Inherited from CommentProcessor
process

Operation Details:
  visitScope(self, scope)

Visits all children of the scope in a new scope. The value of currscope() at the end of the list is used to replace scope's list of declarations - hence you can remove (or insert) declarations from the list. Such as dummy declarations :)