Skip to content

Commit

Permalink
changed function name
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiko7454 committed Jul 27, 2023
1 parent 4ecccfa commit 30f2667
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions slither/solc_parsing/declarations/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -1401,7 +1401,7 @@ def _remove_alone_endif(self) -> None:
###################################################################################
###################################################################################

def __make_temporary_variable_declaration_node(
def __make_temporary_variable_declaration_node_from_condition(
self,
node_expression: "Expression",
node_source_mapping: SourceMapping,
Expand Down Expand Up @@ -1465,7 +1465,7 @@ def _rewrite_ternary_as_if_else(self) -> bool:
has_cond = HasConditional(node.expression)
if has_cond.result():
if node.is_conditional():
temp_var_node, temp_var = self.__make_temporary_variable_declaration_node(
temp_var_node, temp_var = self.__make_temporary_variable_declaration_node_from_condition(
node.expression,
node.source_mapping,
node.scope,
Expand All @@ -1479,7 +1479,7 @@ def _rewrite_ternary_as_if_else(self) -> bool:
begin_loop_node: Optional[Node] = self.__find_start_loop_in_nodes_fathers(if_loop_node)
if begin_loop_node: # if BEGIN_LOOP is IF_LOOP's father, IF_LOOP represents `while`
temp_var_node_pre_loop = temp_var_node
temp_var_node_during_loop, _ = self.__make_temporary_variable_declaration_node(
temp_var_node_during_loop, _ = self.__make_temporary_variable_declaration_node_from_condition(
if_loop_node.expression,
if_loop_node.source_mapping,
if_loop_node.scope,
Expand Down

0 comments on commit 30f2667

Please sign in to comment.