def opText(self, op): return repr(op) op = op.op if isinstance(op, ast.TypeSwitch): label = op.__class__.__name__ else: label = astpprint.toString(op, eol='\\n')
def handleGenericOp(self, node): op = node.op if isinstance(op, ast.TypeSwitch): label = op.__class__.__name__ else: label = astpprint.toString(op, eol='\\n') return dict(label=label, shape='box', style='filled', fillcolor=self.opColor, fontsize=8)