-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the ability to deprecate Flatbuffer fields.
If an IDL field is marked as `@deprecated`, no setter will be generated for it, and the getter generated for it will throw an UnimplementedError. This is similar to the behavior of standard Flatbuffer tools (which generate neither setters nor getters for deprecated fields) except that we have to generate a getter in order to avoid warnings. Once we have begun using summaries in the wild, we will need to make use of this feature in order to avoid changing Id numbers and breaking backwards compatibility. [email protected] Review URL: https://codereview.chromium.org/1753883002 .
- Loading branch information
1 parent
d223676
commit 9a983bc
Showing
2 changed files
with
74 additions
and
39 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