Пример #1
0
	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')
Пример #2
0
 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')
Пример #3
0
	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)
Пример #4
0
    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)