MCPcopy Create free account
hub / github.com/NICUP14/MiniLang / ref_node

Function ref_node

src/Def.py:1402–1403  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

1400
1401
1402def ref_node(node: Node) -> Node:
1403 return Node(NodeKind.REF, ref_of(node.ntype), '&', node)
1404
1405
1406def compute_signature(name: str, arg_types: List[VariableType]):

Callers 5

inject_copy_argMethod · 0.90
refMethod · 0.90
to_treeMethod · 0.90
ret_statementMethod · 0.90
destrMethod · 0.90

Calls 2

NodeClass · 0.85
ref_ofFunction · 0.85

Tested by

no test coverage detected