-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Implement the Stage 3 Decorators Proposal #50820
Merged
Merged
Changes from 29 commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
59162fd
Support for auto-accessor fields
rbuckton 34da680
Add tests, ensure accessors are initialized in ctor
rbuckton 02405ec
classFields cleanup and PR feedback
rbuckton 9d1176a
Support for auto-accessor fields
rbuckton b853cb7
Add tests, ensure accessors are initialized in ctor
rbuckton 96c9393
Thread 'experimentalDecorators' through some utility functions
rbuckton fdfb49c
Split out decorators types from the default lib
rbuckton beb8e0a
Allow 'export default' before decorators
rbuckton f5c6935
Clean up ts class transformation
rbuckton 50c7e00
WIP Stage 3 Decorators
rbuckton 86e0cd2
Evaluation tests and bug fixes
rbuckton e87b89c
Merge branch 'main' into decorators-stage-3
rbuckton 8c33a18
Set script target for esDecorator evaluator tests to ES2021
rbuckton 3da06f6
Merge branch 'main' into decorators-stage-3
rbuckton 63df46d
Support static private elements with class decorators
rbuckton ba66494
Merge branch 'main' into decorators-stage-3
rbuckton 5797ac7
Accept baselines after merge
rbuckton 712b037
Contextual types for decorators
rbuckton 8f3ee6a
Improve comment preservation
rbuckton 24b18d7
SourceMap validation
rbuckton b289642
Remove excess temp in computed name, fix collision in generated names
rbuckton 32c4ed6
Merge branch 'main' into decorators-stage-3
rbuckton caea4b0
Fix for ClassGetter/SetterDecoratorFunction target types
rbuckton 8abe852
decorator typing updates, minor fixes, remove --annotateTransforms
rbuckton d330199
getDecoratorCallSignature clean up, make ES and legacy decorators hanβ¦
rbuckton 49dbc72
Address additional PR feedback
rbuckton 2142a10
Remove extranous loop in transformClassLike
rbuckton b5a2ad6
Additional PR feedback, cleanup and fixes
rbuckton c837d78
revert change to isParameterPropertyDeclaration
rbuckton c954517
Cleanup of lib.decorators types, added documentation
rbuckton aece08d
Merge branch 'main' into decorators-stage-3
rbuckton d65c50b
Fix for missing initializer, some decorators.d.ts type cleanup
rbuckton aaa2966
Merge branch 'main' into decorators-stage-3
rbuckton c2b35ff
Merge branch 'main' into decorators-stage-3
rbuckton 995e961
Improve importHelper warnings for missing helpers
rbuckton 0d9504e
Handle named evaluation in parameters, fix test failures
rbuckton c83e46d
Remove src/lib/decorators.parameters.d.ts
rbuckton f4294f3
Remove *DecoratorFunctionTypes
rbuckton 1fbaa5c
Fix inconsistent indentation due to merge
rbuckton 09a6a36
Merge branch 'main' into decorators-stage-3
rbuckton 923ce71
Merge branch 'main' into decorators-stage-3
rbuckton 4841c5f
Add cache for decorator context override type
rbuckton 1717240
Merge branch 'main' into decorators-stage-3
rbuckton 1746823
Update syntactic diagnostics for JS files
rbuckton 82d822a
Merge branch 'main' into decorators-stage-3
rbuckton 50ac2b8
Remove 'Experimental decorators' warning from diagnosticMessages.json
rbuckton 50ae4df
Remove 'experimentalDecorators' quick fix
rbuckton 31dfda9
Merge branch 'main' into decorators-stage-3
rbuckton b8885ae
Merge branch 'main' into decorators-stage-3
rbuckton ae3885a
Simplify decorators+modifiers merge
rbuckton fb0b9ee
Remove stub variables for potential type mutations
rbuckton 6656953
Fix static accessor initialization order
rbuckton 882e686
Merge branch 'main' into decorators-stage-3
rbuckton 3cc86d9
Accept baselines
rbuckton 57ef107
Fix class decorator+static auto-accessor transformation
rbuckton 844c303
Add additional contextual typing test
rbuckton 0d41f51
Amend decorator evaluation order
rbuckton e52ee01
Test evaluation order against multiple targets
rbuckton b476408
Add evaluation tests for decorator examples, fix parameter-property emit
rbuckton b9050d3
Merge branch 'main' into decorators-stage-3
rbuckton 1e51d59
Fix lint after merge
rbuckton 2c08e15
fix 'this' references in decorator expressions
rbuckton 3def45f
Merge branch 'main' into decorators-stage-3
rbuckton 298bce5
Accept baseline after merge
rbuckton b0020f6
Fix incorrectly renamed test
rbuckton 02e93fd
Merge branch 'main' into decorators-stage-3
rbuckton 673073c
Temporarily disable 'context.access'
rbuckton f0947fc
Merge branch 'main' into decorators-stage-3
rbuckton 09855dc
Documentation comment updates
rbuckton File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
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
Large diffs are not rendered by default.
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
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.
isn't
previousSiblingEmitFlags
always undefined here? It looks like it's reset to undefined at the bottom of the for loop, and there aren't any breaks or continues that I see.