MCPcopy Index your code
hub / github.com/evalplus/evalplus / get_definition_name

Function get_definition_name

evalplus/sanitize.py:77–80  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

75
76
77def get_definition_name(node: Node) -> str:
78 for child in node.children:
79 if child.type == IDENTIFIER_TYPE:
80 return child.text.decode("utf8")
81
82
83def traverse_tree(node: Node) -> Generator[Node, None, None]:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected