mirror of
https://github.com/valitydev/elixir-thrift.git
synced 2024-11-06 18:25:16 +00:00
5519008f00
Annotations appear within parentheses as part of various Thrift IDL types such as fields and structures. They can be used to hint the compiler or inform runtime behavior; the specification is pretty open-ended. This change adds support for parsing annotations (whose presence previously resulted in parse errors) and storing them on our parser models. We currently support annotations on: - Enums - Fields - Functions - Services - Structures, Unions, and Exceptions We can parse annotations on typedefs but don't currently store them anywhere due to the way we internally represent a schema's typedefs as a simple map of strings to types. We can revisit that later, perhaps as part of a broader typedef refactoring. |
||
---|---|---|
.. | ||
thrift | ||
mix.exs |