-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
Signed-off-by: Ernesto Posse <eposse.gmail.com>
Resolves #493 |
extensibility = "@appendable"; | ||
} | ||
buf.append(String.format("%s%s%n", indentString, extensibility)); | ||
String nestedAnnotation = "@nested(FALSE)"; | ||
if (!nested) { |
There was a problem hiding this comment.
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)""
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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>
Signed-off-by: Ernesto Posse <eposse.gmail.com>
No description provided.