示例#1
0
 def visit_UnaryOpExpr(self, node: UnaryOpExpr) -> gtir.UnaryOp:
     return gtir.UnaryOp(op=self.GT4PY_UNARYOP_TO_GTIR[node.op], expr=self.visit(node.arg))
示例#2
0
 def visit_UnaryOpExpr(self, node: UnaryOpExpr) -> gtir.UnaryOp:
     return gtir.UnaryOp(
         op=self.GT4PY_UNARYOP_TO_GTIR[node.op],
         expr=self.visit(node.arg),
         loc=location_to_source_location(node.loc),
     )