MCPcopy Index your code
hub / github.com/python/mypy / transform_unary_expr

Function transform_unary_expr

mypyc/irbuild/expression.py:703–708  ·  view source on GitHub ↗
(builder: IRBuilder, expr: UnaryExpr)

Source from the content-addressed store, hash-verified

701
702
703def transform_unary_expr(builder: IRBuilder, expr: UnaryExpr) -> Value:
704 folded = try_constant_fold(builder, expr)
705 if folded:
706 return folded
707
708 return builder.unary_op(builder.accept(expr.expr), expr.op, expr.line)
709
710
711def transform_op_expr(builder: IRBuilder, expr: OpExpr) -> Value:

Callers 1

visit_unary_exprMethod · 0.90

Calls 3

try_constant_foldFunction · 0.85
unary_opMethod · 0.45
acceptMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…