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

Function node_class_def

ngrams.py:154–161  ·  view source on GitHub ↗
(node: dict)

Source from the content-addressed store, hash-verified

152
153
154def node_class_def(node: dict) -> ASTNodeIdentifier:
155 stmt = ASTNodeIdentifier(label=node['name'], node_type='class_def')
156 body = ASTNodeIdentifier(node_type='class_def_body')
157 for b in node['body']:
158 body += extract_identifier(b)
159
160 stmt += body
161 return stmt
162
163
164def node_attribute(node: dict) -> ASTNodeIdentifier:

Callers

nothing calls this directly

Calls 2

ASTNodeIdentifierClass · 0.85
extract_identifierFunction · 0.85

Tested by

no test coverage detected