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

Function node_assign

ngrams.py:185–197  ·  view source on GitHub ↗
(node: dict)

Source from the content-addressed store, hash-verified

183
184
185def node_assign(node: dict) -> ASTNodeIdentifier:
186 stmt = ASTNodeIdentifier(node_type='assign')
187 targets = ASTNodeIdentifier(node_type='assign_targets')
188
189 for t in node['targets']:
190 targets += extract_identifier(t)
191 stmt += targets
192
193 value = ASTNodeIdentifier(node_type='assign_value')
194 value += extract_identifier(node['value'])
195 stmt += value
196
197 return stmt
198
199
200def node_import(node: dict) -> ASTNodeIdentifier:

Callers

nothing calls this directly

Calls 2

ASTNodeIdentifierClass · 0.85
extract_identifierFunction · 0.85

Tested by

no test coverage detected