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

Function declare_variable

Tools/cases_generator/tier1_generator.py:46–49  ·  view source on GitHub ↗
(var: StackItem, out: CWriter)

Source from the content-addressed store, hash-verified

44
45
46def declare_variable(var: StackItem, out: CWriter) -> None:
47 type, null = type_and_null(var)
48 space = " " if type[-1].isalnum() else ""
49 out.emit(f"{type}{space}{var.name};\n")
50
51
52def declare_variables(inst: Instruction, out: CWriter) -> None:

Callers 2

declare_variablesFunction · 0.70

Calls 3

type_and_nullFunction · 0.90
isalnumMethod · 0.80
emitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…