diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2024-04-28 13:35:47 +0200 |
|---|---|---|
| committer | DanielGavin <danielgavin5@hotmail.com> | 2024-04-28 13:35:47 +0200 |
| commit | f57a9a2b2cd65a7ee37aacc84abcdd2cd97a265f (patch) | |
| tree | af4d5a6842b106b5699704f4de8ac63478c038ac /src | |
| parent | 4e4cfc282501dc22fd9c2df1dca30671c037c3eb (diff) | |
Fix CI
Diffstat (limited to 'src')
| -rw-r--r-- | src/odin/printer/visit.odin | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/odin/printer/visit.odin b/src/odin/printer/visit.odin index 8354aab..f21eeaa 100644 --- a/src/odin/printer/visit.odin +++ b/src/odin/printer/visit.odin @@ -1160,7 +1160,13 @@ visit_stmt :: proc( ) } - + //Special case for when the if statement ends with a call expression + /* + if my_function( + + ) { + } + */ if v.init != nil && is_value_decl_statement_ending_with_call(v.init) || v.init != nil && is_assign_statement_ending_with_call(v.init) || v.cond != nil && v.init == nil && is_value_expression_call(v.cond) { |