Commit 9fb7b05b authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Add PrimCall in Helper/rename_everything

PrimCall corresponds to operators such as Length
parent 2f69ebb6
......@@ -367,7 +367,12 @@ def rename_everything(ast, from_name, to_name):
in the scope of a composite state, so that they do not overwrite
a variable with the same name declared at a higher scope.
LOG.debug ('rename_everything - ' + str(ast))
LOG.debug ('rename_everything - ' + str(ast) + " - ")
_, _, _ = ast, from_name, to_name
......@@ -514,6 +519,13 @@ def _rename_path(ast, from_name, to_name):
ast.value[0] = to_name
def _rename_primcall(ast, from_name, to_name):
''' PrimCall is used e.g. by function "length" (special operators) '''
for each in ast.value[1]['procParams']:
rename_everything(each, from_name, to_name)
def _rename_ifhthenelse(ast, from_name, to_name):
''' Rename expressions in Conditional expression construct '''
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment