def visitAST(self, node): for n in node.declarations(): if ast.shouldGenerateCodeForDecl(n): for c in n.comments(): if len(c.text()) > 2 and c.text()[2] == '*': self.includes += c.text()[3:].strip()+"\n" n.accept(self)
def visitAST(node): self.__completedModules = {} for n in node.declarations(): if ast.shouldGenerateCodeForDecl(n): n.accept(self)
def visitAST(self, node): for d in node.declarations(): if ast.shouldGenerateCodeForDecl(d): d.accept(self)
def visitAST(node): for n in node.declarations(): if ast.shouldGenerateCodeForDecl(n): n.accept(self)
def visitAST(self, node): for declaration in node.declarations(): if self.base_initialised: return if ast.shouldGenerateCodeForDecl(declaration): declaration.accept(self)