-
Notifications
You must be signed in to change notification settings - Fork 593
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
Remove protected metadata #3382
Conversation
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.
Looks good, except I would remove the protected tests, not leave them behind without protected.
@@ -61,15 +61,15 @@ class D | |||
bool postUnmarshalInvoked; | |||
} | |||
|
|||
["protected"] class E |
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.
We should remove these tests since they were apparently all about testing protected.
@@ -149,7 +149,7 @@ exception RequiredException extends OptionalException | |||
class OptionalWithCustom | |||
{ | |||
optional(1) SmallStructList l; | |||
["protected"] optional(2) SmallStructList lp; |
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.
Same here. lp
is the same as l
(great name) except protected.
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.
Looks good, but I agree we should get rid of the lp
field in the Ice/optional test.
It looks like we use E
in the Ice/Objects
test for other purposes. So maybe that one is fine to leave.
@@ -2258,55 +2258,15 @@ Slice::Gen::DataDefVisitor::visitClassDefEnd(const ClassDefPtr& p) | |||
|
|||
// Emit data members. Access visibility may be specified by metadata. | |||
const DataMemberList dataMembers = p->dataMembers(); | |||
const bool prot = p->hasMetadata("protected"); | |||
bool inProtected = false; | |||
bool needSp = 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.
What does the formatting look like without needSp
?
It seems like this field was for emitting a newline before the first data member, more than it was for protected stuff.
Co-authored-by: Austin Henriksen <[email protected]>
Co-authored-by: Austin Henriksen <[email protected]>
Co-authored-by: Austin Henriksen <[email protected]>
Fix #3360