Skip to content
Snippets Groups Projects
Commit a667c64a authored by Bastien Sultan's avatar Bastien Sultan
Browse files

Patching a bug on modifications of signals with several parameters in AMULET compiler

parent e6e4ffd4
No related branches found
No related tags found
1 merge request!450Patching a bug on modifications of signals with several parameters in AMULET compiler
......@@ -39,6 +39,7 @@
package avatartranslator.mutation;
import avatartranslator.*;
import java.util.ArrayList;
/**
* Class MdActionOnSignalMutation
......@@ -152,7 +153,17 @@ public class MdActionOnSignalMutation extends ActionOnSignalMutation implements
} else {
mutation = new MdActionOnSignalMutation(_blockName, _name, _nameType, _newSignalName);
}
mutation.setValues(_values);
//Provisional workaround for parsing actions on signal with several parameters
int i = 0;
ArrayList<String> buffer = new ArrayList<String>();
for (String value : _values){
if (i%2 == 0){
buffer.add(value);
}
i++;
}
mutation.setValues(buffer.toArray(new String[buffer.size()]));
} else {
if (_name == null) {
mutation = new MdActionOnSignalMutation(_blockName, _signalName);
......@@ -187,4 +198,4 @@ public class MdActionOnSignalMutation extends ActionOnSignalMutation implements
}
return mutation;
}
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment