Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #493: change IDL generation replacing //@top-level with @nested #495

Merged
merged 3 commits into from
Feb 22, 2024

Conversation

eposse
Copy link
Collaborator

@eposse eposse commented Feb 20, 2024

No description provided.

Signed-off-by: Ernesto Posse <eposse.gmail.com>
@eposse
Copy link
Collaborator Author

eposse commented Feb 20, 2024

Resolves #493

extensibility = "@appendable";
}
buf.append(String.format("%s%s%n", indentString, extensibility));
String nestedAnnotation = "@nested(FALSE)";
if (!nested) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This logic is confusing to me. While it might get the same result, I would rather the lines above, 346 & 347 reflect this inverse logic. i.e "If topLevel.matches("true") then nested = false" and visa-versa. Then the logic here can be simpler "If(nested) then annotation = "@nested(TRUE)""

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've updated the logic, and added it to the AtcdWriter as well. I don't know if you are using that, but I figured it's probably best to keep those two generators in sync. Let me know if that's not ok. I'll cherry pick the change for v3.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this logic looks good to me. We are not using ATCD anymore, but until we (or your team) decide to pull support for ATCD, you are right, we should keep them in sync

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ATCD has no support for @nested, it only has support for @top-level so you couldn't keep the version for AXCIOMA and ATCD in sync with respect to this annotation

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh. Ok, I'll retract the changes for ATCD.

Signed-off-by: Ernesto Posse <eposse.gmail.com>
@eposse eposse self-assigned this Feb 21, 2024
Signed-off-by: Ernesto Posse <eposse.gmail.com>
@eposse eposse merged commit e377c6b into streams/v2 Feb 22, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants