Skip to content

Commit

Permalink
✨ feat: Complete code gen for token factory
Browse files Browse the repository at this point in the history
  • Loading branch information
caoccao committed Mar 26, 2024
1 parent 6454780 commit 7cfd3a5
Show file tree
Hide file tree
Showing 7 changed files with 434 additions and 299 deletions.
8 changes: 4 additions & 4 deletions rust/src/ast_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ impl JavaSwc4jAstFactory {
ReturnType::Object,
&[body, shebang, start_position, end_position],
)
.expect("Couldn't create Swc4jAstModule")
.expect("Couldn't create Swc4jAstModule by create_module()")
.l()
.expect("Couldn't convert Swc4jAstModule")
.expect("Couldn't convert Swc4jAstModule by create_module()")
};
env
.delete_local_ref(java_shebang)
Expand Down Expand Up @@ -129,9 +129,9 @@ impl JavaSwc4jAstFactory {
ReturnType::Object,
&[body, shebang, start_position, end_position],
)
.expect("Couldn't create Swc4jAstScript")
.expect("Couldn't create Swc4jAstScript by create_script()")
.l()
.expect("Couldn't convert Swc4jAstScript")
.expect("Couldn't convert Swc4jAstScript by create_script()")
};
env
.delete_local_ref(java_shebang)
Expand Down
Loading

0 comments on commit 7cfd3a5

Please sign in to comment.