Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template based code renderer #15

Merged
merged 16 commits into from
Jun 2, 2021
Merged

Template based code renderer #15

merged 16 commits into from
Jun 2, 2021

Conversation

zhuorantan
Copy link
Contributor

@zhuorantan zhuorantan commented Jun 1, 2021

  • Replace the existing code renderer with mustache template-based renderer.
  • Refactor model typs
    • Add OptionalType to replace nullable in ValueType
    • Add DictionaryType to replace isAnyKeyDictionary in CustomType
    • Rename all *TypeKind to *Type
  • Parse named types after parsing
  • Extract documentation instead of custom defined @comment JSDoc tag
  • Add CodeGenerator class to handle the entire parsing and rendering process
  • Add custom tags

- Add OptionalType to replace nullable in ValueType
- Add DictionaryType to replace isAnyKeyDictionary in CustomType
- Rename all *TypeKind to *Type
- Remove all literalTypeDescription. It can be generated after parsing
- Extract documentation instead of custom defined @comment JSDoc tag.
- Generate Swift API modules based on template
- Support custom tags
- Refactor enum representation
@zhuorantan zhuorantan force-pushed the zhutan/template-gen branch from 1b52593 to 2d8f31c Compare June 1, 2021 05:28
@zhuorantan zhuorantan force-pushed the zhutan/template-gen branch from 2d8f31c to ab17c1b Compare June 1, 2021 05:30
@zhuorantan zhuorantan merged commit a7c6cc4 into main Jun 2, 2021
@zhuorantan zhuorantan deleted the zhutan/template-gen branch June 2, 2021 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants