-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix processing & linking of alias types (#6)
* Fix processing & linking of alias types Prior to this change, alias types would be added to the `processor.Types` map twice, in the case where an API defines both the alias type, and another struct which uses either a pointer to, or an array / slice of, an alias type. Depending on which element is processed first, the alias type would be added to the map as an AliasKind, or a SliceKind/ArrayKind/PointerKind. This means that where templates attempt to render an underlying type of an Alias using `IsAlias`, the alias may be registered as a non-alias type. In addition, alias types were treated as Basic in the renderer if their underlying types were basic. This means in the above case, links are not generated to the alias type in the generated documentation, despite them being a valid type as part of the API. * Add & fix unit test for alias array
- Loading branch information
Showing
5 changed files
with
28 additions
and
2 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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