-
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
More special declaration types in JS #21974
Merged
sandersn
merged 52 commits into
master
from
js-object-literal-assignments-as-declarations
Mar 8, 2018
Merged
Changes from 29 commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
8bd66a0
JS Object literal assignments are declarations
sandersn c6a7751
Test:js object literal assignment as declaration
sandersn 4f07f58
Merge branch 'master' into js-object-literal-assignments-as-declarations
sandersn 9e8d59c
Support `var x = x || {}` declarations in JS
sandersn a51bce0
Test:basic `var x = x || {}` support in JS
sandersn 2f8c237
Support `o.x = o.x || {}` assignments in JS
sandersn 7e3fdc2
Test:`o.x = o.x || {}` assignments in JS
sandersn e0596ad
Improve contextual type skip in checkObjectLiteral
sandersn d3b02be
Update baselines
sandersn 4998b99
getSpecialPropertyAssignmentKind uses type guards
sandersn d0b08a2
Refactor JS static property assignment binding
sandersn b0aebb4
Recursive object-literal-assignment declarations
sandersn a09c239
4-nested object-literal assignment works in JS
sandersn 8ac94f5
Support function/class in JS nested decls
sandersn 33c084f
Return baselines to original state
sandersn 61ea026
Allow window. prefix in default-assignment JS decl
sandersn 15554d7
Fix bogus jsdoc error
sandersn 03d155f
Update tests and baselines
sandersn fc08e20
Correctly merge JS decls
sandersn 88c67fa
Refactor binder and update baselines.
sandersn 76a9ac4
Restrict declaration initializers too
sandersn bad155f
Clean up bindPropertyAssignment
sandersn 0cadfcf
Clean up js decl code in checker+utilities
sandersn 4fdef85
Naming and duplication cleanup
sandersn d2b933e
Cleanup in binder: rename and move
sandersn 0191b70
Further cleanup
sandersn 8f98c77
Merge branch 'master' into js-object-literal-assignments-as-declarations
sandersn 8bfcf33
Add symbols for just-added test
sandersn d180117
Move skipParentheses to utilities
sandersn 54a89ac
Simplify bindPropertyAssignment inner loop
sandersn 518f651
Remove assert hit by chrome devtools+update baselines
sandersn ad43240
Merge branch 'master' into js-object-literal-assignments-as-declarations
sandersn 5af91a9
Merge branch 'master' into js-object-literal-assignments-as-declarations
sandersn 116a8a8
Support nested prototype declarations
sandersn 8e424f9
Cleanup new code in binder
sandersn 01f2ee3
Set up structure of prototype assignments
sandersn b14cf4e
First draft of prototype assignment
sandersn 41fba6f
Incremental prototype+prototype assignment work
sandersn d55aa22
Code cleanup
sandersn aa88f71
Fix js-prototype-assignment on declarations
sandersn dd25236
Fix nested js-containers+proto assignment in types space
sandersn 5d32a31
Merge branch 'js-prototype-assignment' into js-object-literal-assignm…
sandersn aa6b76f
Merge branch 'master' into js-object-literal-assignments-as-declarations
sandersn 4099d48
Update chrome-devtools baseline
sandersn c3143d2
Support js nested namespace decls on exports
sandersn c318089
Remove assert for undeclared js-nested-exports
sandersn 125a317
Fix lint
sandersn d86440f
Merge branch 'master' into js-object-literal-assignments-as-declarations
sandersn 239f214
Address PR comments
sandersn 04ceb3d
Disallow JS/non-JS merge without crashing
sandersn 35730f2
Improve error span:duplicate symbols cross-js/ts
sandersn f8134d0
Merge branch 'master' into js-object-literal-assignments-as-declarations
sandersn 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
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.
should handle module.exports and exports as a terminal case instead of in the callers