|
|
@ -1470,8 +1470,11 @@ class FunctionSolc(CallerContextExpression): |
|
|
|
self.__link_node_immediately_before(temp_var_node_pre_loop, begin_loop_node) |
|
|
|
self.__link_node_immediately_before(temp_var_node_pre_loop, begin_loop_node) |
|
|
|
else: |
|
|
|
else: |
|
|
|
self.__link_node_immediately_before(temp_var_node, if_loop_node) |
|
|
|
self.__link_node_immediately_before(temp_var_node, if_loop_node) |
|
|
|
node.add_expression(Identifier(temp_var), bypass_verif_empty=True) |
|
|
|
else: |
|
|
|
return temp_var_node |
|
|
|
raise TypeError(f'Unknown conditional type {node.type}') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
node.add_expression(Identifier(temp_var), bypass_verif_empty=True) |
|
|
|
|
|
|
|
return temp_var_node |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def _rewrite_ternary_as_if_else(self) -> bool: |
|
|
|
def _rewrite_ternary_as_if_else(self) -> bool: |
|
|
|