Skip to content

Commit

Permalink
rename unannotated ast output option
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Nov 15, 2023
1 parent 1683fb8 commit 28b02e7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion vyper/cli/vyper_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def compile_files(
"abi_python": "abi",
"json": "abi",
"ast": "ast_dict",
"raw_ast": "raw_ast_dict",
"unannotated_ast": "unannotated_ast_dict",
"ir_json": "ir_dict",
}
final_formats = [translate_map.get(i, i) for i in output_formats]
Expand Down
2 changes: 0 additions & 2 deletions vyper/cli/vyper_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,6 @@ def format_to_output_dict(compiler_data: dict) -> dict:
output_dict["sources"][path] = {"id": data["source_id"]}
if "ast_dict" in data:
output_dict["sources"][path]["ast"] = data["ast_dict"]["ast"]
if "raw_ast_dict" in data:
output_dict["sources"][path]["raw_ast"] = data["raw_ast_dict"]["ast"]

name = PurePath(path).stem
output_dict["contracts"][path] = {name: {}}
Expand Down
2 changes: 1 addition & 1 deletion vyper/compiler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

OUTPUT_FORMATS = {
# requires vyper_module
"raw_ast_dict": output.build_ast_dict,
"unannotated_ast_dict": output.build_ast_dict,
"ast_dict": output.build_annotated_ast_dict,
"layout": output.build_layout_output,
# requires global_ctx
Expand Down

0 comments on commit 28b02e7

Please sign in to comment.