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

Function add_instruction

Tools/cases_generator/analyzer.py:1094–1100  ·  view source on GitHub ↗
(
    where: lexer.Token,
    name: str,
    parts: list[Part],
    instructions: dict[str, Instruction],
)

Source from the content-addressed store, hash-verified

1092
1093
1094def add_instruction(
1095 where: lexer.Token,
1096 name: str,
1097 parts: list[Part],
1098 instructions: dict[str, Instruction],
1099) -> None:
1100 instructions[name] = Instruction(where, name, parts, None)
1101
1102
1103def desugar_inst(

Callers 3

desugar_instFunction · 0.85
add_macroFunction · 0.85
assign_opcodesFunction · 0.85

Calls 2

InstructionClass · 0.70
valuesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…