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

Function maybe_append_dec_ref

mypyc/transform/refcount.py:98–102  ·  view source on GitHub ↗
(
    ops: list[Op], dest: Value, defined: AnalysisDict[Value], key: tuple[BasicBlock, int]
)

Source from the content-addressed store, hash-verified

96
97
98def maybe_append_dec_ref(
99 ops: list[Op], dest: Value, defined: AnalysisDict[Value], key: tuple[BasicBlock, int]
100) -> None:
101 if dest.type.is_refcounted and not isinstance(dest, (Integer, Undef)):
102 ops.append(DecRef(dest, is_xdec=is_maybe_undefined(defined[key], dest)))
103
104
105def maybe_append_inc_ref(ops: list[Op], dest: Value) -> None:

Callers 1

transform_blockFunction · 0.85

Calls 4

DecRefClass · 0.90
isinstanceFunction · 0.85
is_maybe_undefinedFunction · 0.85
appendMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…