-
Notifications
You must be signed in to change notification settings - Fork 612
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an adjecent type resolver for Protocol.Value wrapped objects in s…
…chema.thrift Summary: This diffs adds a `ProtocolValueTypeResolver` to follow along with the recursive encoding of objects in schema.thrift. This allows e.g. `Annotation` which is represented in the AST as a `map<string, protocol.Value>` to resolve the value's types to their original type definitions. E.g. ``` scope.Field struct RangeLimit { 1: i16 min; 2: i32 max; 3: Baz baz; } struct Foo { RangeLimit{min = 10, max = 100, baz = Baz{something = 11}} 1: i32 bar; } ``` would originally contain a `min` & `max` of type `i64Value`, while the `RangeLimit` struct declares them as `i16Value` & `i32Value` respectively. Reviewed By: thedavekwon Differential Revision: D66889306 fbshipit-source-id: 0bf8d920992172dabe5238c8726e71f064cd2f9c
- Loading branch information
1 parent
159d731
commit 1ee3bf9
Showing
7 changed files
with
627 additions
and
29 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
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
Oops, something went wrong.