__init__.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:sherlock.py 作者: Luavis 项目源码 文件源码
def analysis_function(self, function_node, args_type=[]):
        variables = Variables()
        return_type = Type.VOID

        for node in function_node.body:
            if isinstance(node, ast.Assign):
                self.analysis_assign_node(variables, node)
            elif isinstance(node, ast.Return):
                return_type = self.get_type(node.value)
                if return_type is None:
                    return_type = Type.VOID
        generator = CodeGenerator(self.code,variables=variables)
        return generator, return_type
评论列表


问题


面经


文章

微信
公众号

扫码关注公众号