def ast(self):
"""Python AST of this predicate (construct transitively for all indirect children as well).
:return: AST of describing all children predicates
"""
return ast.BoolOp(ast.Or(), [ast.Expr(value=x.ast()) for x in self._children])
评论列表
文章目录