MCPcopy Index your code
hub / github.com/SourceCode-AI/aura / node_function_def

Function node_function_def

ngrams.py:111–119  ·  view source on GitHub ↗
(node: dict)

Source from the content-addressed store, hash-verified

109
110
111def node_function_def(node: dict) -> ASTNodeIdentifier:
112 stmt = ASTNodeIdentifier(label=node['name'], node_type='func_def')
113 body = ASTNodeIdentifier(label='body', node_type='func_def_body')
114
115 for b in node['body']:
116 body += extract_identifier(b)
117
118 stmt += body
119 return stmt
120
121
122def node_call(node: dict) -> ASTNodeIdentifier:

Callers

nothing calls this directly

Calls 2

ASTNodeIdentifierClass · 0.85
extract_identifierFunction · 0.85

Tested by

no test coverage detected