MCPcopy Create free account
hub / github.com/rocky/python-uncompyle6 / maybe_show_tree

Method maybe_show_tree

uncompyle6/semantics/pysource.py:335–351  ·  view source on GitHub ↗
(self, tree, phase)

Source from the content-addressed store, hash-verified

333 return
334
335 def maybe_show_tree(self, tree, phase):
336 if self.showast.get("before", False):
337 self.println(
338 """
339---- end before transform
340"""
341 + " "
342 )
343 if self.showast.get("after", False):
344 self.println(
345 """
346---- begin after transform
347"""
348 + " "
349 )
350 if self.showast.get(phase, False):
351 maybe_show_tree(self, tree)
352
353 def str_with_template(self, ast):
354 stream = sys.stdout

Callers 1

build_astMethod · 0.95

Calls 3

printlnMethod · 0.95
maybe_show_treeFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected