Skip to content

Commit

Permalink
[lang] Make the generation of the agent type members faster.
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Apr 10, 2019
1 parent 9d4ea66 commit ebe9bb8
Showing 1 changed file with 11 additions and 10 deletions.
Expand Up @@ -2196,20 +2196,21 @@ protected void appendAOPMembers(
null,
this.sarlSignatureProvider);

final List<XtendMember> delayedMembers = new LinkedList<>();

for (final XtendMember feature : container.getMembers()) {
if (context.isSupportedMember(feature)
&& (!(feature instanceof SarlCapacityUses))
&& (!(feature instanceof SarlRequiredCapacity))) {
transform(feature, featureContainerType, true);
if (context.isSupportedMember(feature)) {
if ((feature instanceof SarlCapacityUses)
|| (feature instanceof SarlRequiredCapacity)) {
delayedMembers.add(feature);
} else {
transform(feature, featureContainerType, true);
}
}
}

for (final XtendMember feature : container.getMembers()) {
if (context.isSupportedMember(feature)
&& ((feature instanceof SarlCapacityUses)
|| (feature instanceof SarlRequiredCapacity))) {
transform(feature, featureContainerType, false);
}
for (final XtendMember feature : delayedMembers) {
transform(feature, featureContainerType, false);
}

// Add event handlers
Expand Down

0 comments on commit ebe9bb8

Please sign in to comment.