Searched refs:reduce_tree (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython3/Lib/lib2to3/ |
D | btm_utils.py | 103 def reduce_tree(node, parent=None): function 121 new_node = reduce_tree(node.children[0], parent) 129 reduced = reduce_tree(child, new_node) 137 reduced = reduce_tree(child, new_node) 145 new_node = reduce_tree(node.children[0], parent) 151 return reduce_tree(node.children[1], parent) 210 new_node = reduce_tree(alternatives_node, parent) 229 reduced = reduce_tree(child, new_node)
|
D | btm_matcher.py | 15 from .btm_utils import reduce_tree 43 tree = reduce_tree(fixer.pattern_tree)
|
/external/python/cpython2/Lib/lib2to3/ |
D | btm_utils.py | 104 def reduce_tree(node, parent=None): function 122 new_node = reduce_tree(node.children[0], parent) 130 reduced = reduce_tree(child, new_node) 138 reduced = reduce_tree(child, new_node) 146 new_node = reduce_tree(node.children[0], parent) 152 return reduce_tree(node.children[1], parent) 211 new_node = reduce_tree(alternatives_node, parent) 230 reduced = reduce_tree(child, new_node)
|
D | btm_matcher.py | 15 from .btm_utils import reduce_tree 43 tree = reduce_tree(fixer.pattern_tree)
|