Skip to content

Commit

Permalink
More simplifications
Browse files Browse the repository at this point in the history
  • Loading branch information
dziegel committed Jan 10, 2024
1 parent 97392b2 commit ebc5ea1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions generator/src/generator/ScxmlModel.egl
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ operation t_scxml getModel() : Tuple {

region.states = new List();
for (state in self.c_state) {
region.states.add(state.getModel(result));
region.states.add(state.getModel());
}

return result;
}

operation t_state getModel(sm : Tuple) : Tuple {
operation t_state getModel() : Tuple {
var result = new Tuple();
result.name = self.a_id;

Expand All @@ -45,7 +45,7 @@ operation t_state getModel(sm : Tuple) : Tuple {

region.states = new List();
for (state in self.c_state) {
var state_model = state.getModel(sm);
var state_model = state.getModel();
state_model.parent = result.name;
region.states.add(state_model);
}
Expand Down

0 comments on commit ebc5ea1

Please sign in to comment.