-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Allow dynamic names in types #15473
Merged
Merged
Allow dynamic names in types #15473
Changes from 1 commit
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
d8cb3c6
Allow some dynamic names in types
rbuckton 0c1eef7
Add support for declaration emit
rbuckton d572a54
Report errors from duplicate member names
rbuckton 2714295
Add declaration file output to tests
rbuckton 3181a8d
Merge branch 'master' into dynamicNames
rbuckton b5f1169
Accept baselines
rbuckton 3b684d4
PR feedback
rbuckton 64fd857
fix symbol display for computed properties
rbuckton d8ae9c0
Early support for unique symbol type
rbuckton 83b5a75
Add freshness to unique symbol types
rbuckton 57674dd
Emit dynamic names for object literal types
rbuckton fc61863
Merge branch 'dynamicNames' into symbolLiterals
rbuckton fe414a2
Ensure we get the correct symbol for nodes, clean up
rbuckton 93ea56b
Improve union type reduction for symbol()
rbuckton 2a73d08
Merge branch 'master' into dynamicNames
rbuckton 625b37e
Merge branch 'master' into dynamicNames
rbuckton 8c3b73f
Merge branch 'master' into dynamicNames
rbuckton c4e9ce5
Merge branch 'master' into dynamicNames
rbuckton 5854e87
comment typo
rbuckton 3f83b55
Added comments for fresh/regular unique symbol types
rbuckton 38ee475
Fix escaping and follow symbols for element access
rbuckton 022e81b
Merge branch 'master' into dynamicNames
rbuckton d7ef995
Merge branch 'master' into dynamicNames
rbuckton e81c83c
Merge branch 'master' into dynamicNames
rbuckton 891e71d
Remove freshness, more comprehensive grammar checks and diagnostic me…
rbuckton 7eedf2e
Update baselines
rbuckton fb3168d
Merge branch 'master' into dynamicNames
rbuckton 1b45a05
Update baselines
rbuckton 6f05e43
Merge branch 'master' into dynamicNames
rbuckton 7ab451b
Merge branch 'master' into dynamicNames
rbuckton 1745e17
Merge branch 'master' into dynamicNames
rbuckton 4395f25
PR Feedback and API baselines
rbuckton 43c151a
Merge branch 'master' into dynamicNames
rbuckton ee23f93
Switch to 'unique symbol'
rbuckton 51ded0b
Additional tests
rbuckton fea6a87
General tidying up and comments.
rbuckton 36f90b6
General tidying up and comments.
rbuckton 906a79d
Support dynamic names on static members of class.
rbuckton 180ca23
Additional documentation
rbuckton 7fd38c8
Merge branch 'master' into dynamicNames
rbuckton 55e63a8
Simplify getLateBoundSymbol
rbuckton 3341e07
Refactor widening
rbuckton 0b31860
Revert some minor changes to clean up PR
rbuckton ccd98af
Simplify property symbol logic in checkObjectLiteral
rbuckton b5a7b03
Address PR feedback
rbuckton 51929ac
Merge branch 'master' into dynamicNames
rbuckton 3febc80
More repetitive but less complex widening logic for literals/symbols
rbuckton 170e6ec
Ensure correct errors when emitting declarations
rbuckton 44117e1
Reduce noise in PR, minor cleanup
rbuckton ec90dbc
Unify logic for getMembers/Exports of symbol
rbuckton 26ca98c
Merge branch 'master' into dynamicNames
rbuckton 208dfa6
Merge branch 'master' into dynamicNames
rbuckton 211b2f0
Shave off ~100ms by extracting ExpandingFlags
rbuckton 33e09f9
Merge branch 'master' into dynamicNames
rbuckton 8b717d3
PR Feedback
rbuckton ee36e6a
Merge branch 'master' into dynamicNames
rbuckton 444e282
Update baselines after merge
rbuckton d0fb7e4
PR Feedback
rbuckton b9dbf5d
Simplify literal/unique symbol widening
rbuckton ae11ae5
Fix getReturnTypeFromBody widening
rbuckton 804c7d3
Merge branch 'master' into dynamicNames
rbuckton a21a129
Merge branch 'master' into dynamicNames
rbuckton 86b0759
PR feedback
rbuckton 0b24f02
Use correct base primitive type
rbuckton ccba128
Use correct base primitive type
rbuckton File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it would be simpler to have a third parameter
symbol
and only oneresolveDynamicMembersOfNode(members: NodeArray<ClassElement | TypeElement | ObjectLiteralElementLike>, symbols: Symbol[], symbolTable: SymbolTable)
. ThenresolveDynamicMembersOfSymbol
could pull off the properties ofnode
in eachcase
.