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

Function visit_Constant

aura/analyzers/python/convert_ast.py:43–53  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

41
42
43def visit_Constant(context):
44 if context.node.get("kind") is None and type(context.node["value"]) == str:
45 node = String(context.node["value"])
46 elif context.node.get("kind") is None and type(context.node["value"]) == int:
47 node = Number(context.node["value"])
48 else:
49 node = Constant(context.node["value"])
50
51 node.enrich_from_previous(context.node)
52 context.replace(node)
53 return node
54
55
56def visit_Dict(context):

Callers

nothing calls this directly

Calls 5

StringClass · 0.85
NumberClass · 0.85
ConstantClass · 0.85
getMethod · 0.80
enrich_from_previousMethod · 0.80

Tested by

no test coverage detected