Skip to content

Conversation

@Turupawn
Copy link
Contributor

@Turupawn Turupawn commented Dec 9, 2025

  • MethodCall is now supported in if/else branches as returned vales
  • Added a lower_and_format_call function to encapsulate repeated code

@micahscopes
Copy link
Collaborator

@Turupawn getting the CI linting to pass can be a little tricky. To locally run what the CI runs, do make clippy and cargo fmt.

@cburgdorf
Copy link
Collaborator

Can you add a test file to crates/codegen/tests/fixtures that demonstrates the code that now passes but before didn't?

@Turupawn
Copy link
Contributor Author

@micahscopes Thank you for the heads up, I ran the formatter this time.

@cburgdorf I added a demo that shows what works now. However I also discovered this issue #1185 that is currently happening in the main branch. Even though the issue is related, imo it should be treated separately.

let v1 := v0
let v2 := 0
if gt(x, 10) {
v2 := get_value1(v1)
Copy link
Collaborator

@cburgdorf cburgdorf Dec 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the name of the functions being called get_value1 does not match the actual name of the function teststruct_get_value1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants