-
Notifications
You must be signed in to change notification settings - Fork 15.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce submessage view accessors for arbitrary depths
Before this CL, we weren't generating view accessors for messages with depth > 1. We weren't getting to message::GetterForViewOrMut because we were detecting FieldDescriptor::TYPE_MESSAGE and bailing out. That check has now been expunged, and we now properly emit the right view, even for messages embedded within messages. Added tests for: - another level of submsg access depth - accessing a message declared outside of the current message (that is, not a direct nested message within the same message) - accessing the accessor of the accessor of the accessor of a recursively defined message PiperOrigin-RevId: 588460599
- Loading branch information
1 parent
17b8dd6
commit a74c3bb
Showing
3 changed files
with
79 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters