-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use codegen library Jennifer. Replaces homebrew solution for code gen…
…eration. (#14) * Add codegen library Jennifer and use for enum generation * Use codegen library Jennifer for packetmap generation * Add packageAliases collection Specifies map of packages to their full import paths for ease of setting up aliases within the Jennifer codegen library * Fix typo Primitize -> Primitive * Use codegen library Jennifer for struct generation (Part 1) Implement Jennifer codegen for struct fields (including switch structures) Does not generate implementations for serialize/deserialize methods * Ensure empty Packet structs are not on a single line Maintains compatibility with previous codegen system * Add eotype codegen package Representation of different EO types and their string method names. Helper for writing serialize method implementations * Fix typo in writer comment * Encapsulate package alias information Add 'types' package under 'codegen', for helper functions related to determining types/package imports * Extract some shared helpers to codegen/types * Use codegen library Jennifer for struct generation (part 2) Generate implementations for serialize methods Major refactor of code structure * Rename NewSerializationType->NewEoType * Use codegen library Jennifer for struct generation (part 3) Generate implementations for deserialize methods Remove remaining obsolete helpers * Regenerate protocol code using Jennifer * Properly apply switch struct qualifier to nested switches
- Loading branch information
1 parent
2e63afc
commit a695b04
Showing
20 changed files
with
1,071 additions
and
818 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
Oops, something went wrong.