MCPcopy Create free account
hub / github.com/SourceCode-AI/aura / process_source_code

Function process_source_code

tests/test_ast_rewrite.py:10–18  ·  view source on GitHub ↗
(src: str, single=True)

Source from the content-addressed store, hash-verified

8
9
10def process_source_code(src: str, single=True) -> NodeType:
11 tree = collect(dedent(src), minimal=True)
12 loc = ScanLocation(location="<unknown>")
13
14 v = Visitor.run_stages(location=loc, stages=("convert", "rewrite"), ast_tree=tree)
15 if single:
16 return v.tree[-1]
17 else:
18 return v.tree
19
20
21def test_var_propagation_call_argument():

Callers 15

test_call_renameFunction · 0.85
test_replace_stringFunction · 0.85
test_binop_stringFunction · 0.85
test_binop_numbersFunction · 0.85
test_binop_string_varsFunction · 0.85
test_string_sliceFunction · 0.85
test_inline_decodeFunction · 0.85

Calls 3

collectFunction · 0.90
ScanLocationClass · 0.90
run_stagesMethod · 0.80

Tested by

no test coverage detected