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.
Operations Summary: | |
__init__(self) [Source] | |
execute(self, ast) [Source] | |
_stripName(self, name) [Source] | |
stripDeclarations(self, declarations) [Source] | |
stripTypes(self, types) [Source] | |
declarations(self) [Source] | |
strip(self, declaration) test whether the declaration matches one of the prefixes, strip it off, and return success. [Source] | |
visitScope(self, scope) [Source] | |
visitClass(self, clas) [Source] | |
visitDeclaration(self, decl) [Source] | |
visitEnumerator(self, enumerator) [Source] | |
visitEnum(self, enum) [Source] | |
visitFunction(self, function) [Source] | |
visitOperation(self, operation) [Source] | |
visitMetaModule(self, module) [Source] |
Operation Details: |
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 AST.