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

Add ability to alias referenced symbols #168

Merged
merged 1 commit into from
Sep 19, 2019

Conversation

mtdowling
Copy link
Member

This commit updates SymbolReference to now have an "alias" to allow a
symbol to be referenced with an alias. By default, the alias is assigned
the same value as the name of the referenced symbol. However, some code
generators may wish to alias referenced symbols to ensure that they do
not conflict with generated symbols (for example, you might want to
alias "SmithyStructure" as "$SmithyStructure" because no generated type
would ever start with '$').

Code generators that do not support or need aliases are free to ignore
this added property.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This commit updates SymbolReference to now have an "alias" to allow a
symbol to be referenced with an alias. By default, the alias is assigned
the same value as the name of the referenced symbol. However, some code
generators may wish to alias referenced symbols to ensure that they do
not conflict with generated symbols (for example, you might want to
alias "SmithyStructure" as "$SmithyStructure" because no generated type
would ever start with '$').

Code generators that do not support or need aliases are free to ignore
this added property.
@mtdowling mtdowling merged commit f9e17d2 into master Sep 19, 2019
@mtdowling mtdowling deleted the add-symbol-reference-alias branch October 15, 2019 20:10
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