Skip to content

Commit

Permalink
workaround of bug: Order of type members is not kept (INRIA#1787)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvojtechovsky committed Feb 9, 2018
1 parent 4ee6191 commit 85d932d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ public List<CtTypeMember> getTypeMembers() {
return Collections.unmodifiableList(typeMembers);
}

public void sortTypeMembers() {
typeMembers.sort(new CtLineElementComparator());
}

@Override
public <C extends CtType<T>> C addTypeMember(CtTypeMember member) {
if (member == null) {
Expand Down

0 comments on commit 85d932d

Please sign in to comment.