MCPcopy Index your code
hub / github.com/python/cpython / convert_stack_item

Function convert_stack_item

Tools/cases_generator/analyzer.py:360–363  ·  view source on GitHub ↗
(
    item: parser.StackEffect, replace_op_arg_1: str | None
)

Source from the content-addressed store, hash-verified

358
359
360def convert_stack_item(
361 item: parser.StackEffect, replace_op_arg_1: str | None
362) -> StackItem:
363 return StackItem(item.name, item.size)
364
365def check_unused(stack: list[StackItem], input_names: dict[str, lexer.Token]) -> None:
366 "Unused items cannot be on the stack above used, non-peek items"

Callers 1

analyze_stackFunction · 0.85

Calls 1

StackItemClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…