Commit adf2b306 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Dont raise error when detecting multiple entry/exit

parent d3ecd2c9
...@@ -2029,7 +2029,8 @@ def composite_state(root, parent=None, context=None): ...@@ -2029,7 +2029,8 @@ def composite_state(root, parent=None, context=None):
# check for duplicate declaration # check for duplicate declaration
if any(each.inputString.lower() == new_proc.inputString.lower() if any(each.inputString.lower() == new_proc.inputString.lower()
for each in chain(comp.content.inner_procedures, for each in chain(comp.content.inner_procedures,
context.procedures)): context.procedures)
if each.inputString.lower() not in ('entry', 'exit')):
errors.append(['Duplicate procedure Declaration: {}' errors.append(['Duplicate procedure Declaration: {}'
.format(new_proc.inputString), .format(new_proc.inputString),
[new_proc.pos_x, new_proc.pos_y], []]) [new_proc.pos_x, new_proc.pos_y], []])
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