-
Notifications
You must be signed in to change notification settings - Fork 590
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TypeScript] Implement labeled tuple members (#3837)
* [TypeScript] Implement labeled tuple members * [TypeScript] Use reserved word in test * [TypeScript] Use .js instead of .ts * [TypeScript] Optimize labeled tuple members This commit ... 1. optimizes implementation to speed it up by about 15% 2. rescopes labels to `variable.other.member` as variable scope is what C# uses and this is what labels are for. Create named access to tuple members as if they were normal struct members. Note: 1. `meta.mapping.key` should be used in mappings only. 2. We shouldn't mix up sequence and mapping scopes, although a mapping is just a sequence of key-value pairs. --------- Co-authored-by: deathaxe <[email protected]>
- Loading branch information
Showing
2 changed files
with
62 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