-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to manually escape reserved words
This commit adds the ability to manually escape reserved words from a SymbolProvider for SymbolProviders that need to be re-entrant (e.g., when creating symbols for aggregate shapes, you often need to recursively create a symbol for the member). Re-entrant symbol providers can't use the decorator approach since they need access to the reserved words contained in the decorator. In these cases, one needs to pass an "Escaper" into the SymbolProvider and manually escape symbols. One other change here is to tighten up the interface of SymbolProvider to change toMemberName() from accepting a Shape to accepting only a MemberShape. While technically a breaking change, this was always the intention but for some reason the change was never made.
- Loading branch information
Showing
5 changed files
with
149 additions
and
75 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
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