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

Function node_attribute

ngrams.py:164–171  ·  view source on GitHub ↗
(node: dict)

Source from the content-addressed store, hash-verified

162
163
164def node_attribute(node: dict) -> ASTNodeIdentifier:
165 stmt = ASTNodeIdentifier(label=node['attr'], node_type='attribute')
166 # TODO: ctx
167
168 value = ASTNodeIdentifier(node_type='attribute_value')
169 value += extract_identifier(node['value'])
170 stmt += value
171 return stmt
172
173
174def node_name(node: dict) -> ASTNodeIdentifier:

Callers

nothing calls this directly

Calls 2

ASTNodeIdentifierClass · 0.85
extract_identifierFunction · 0.85

Tested by

no test coverage detected