-
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
Revised ES6 modules #2460
Merged
Merged
Revised ES6 modules #2460
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
c39dfdc
Introduce NodeFlags.ExportContext
ahejlsberg 57a9fc5
Separate 'export default' and 'export ='
ahejlsberg f3fb85f
Accepting new baselines
ahejlsberg 6838d47
Simplify collection of external module info in emitter
ahejlsberg a152515
Emit and use '__export' helper for 'export *' declarations
ahejlsberg 20d1f73
Add support for exporting imported symbols
ahejlsberg 956d7a8
Fixing emit for import d, * as foo from "foo" case
ahejlsberg e63854b
Adding basic tests
ahejlsberg df03c68
Accepting new baselines
ahejlsberg b2656b0
Deleting unused code
ahejlsberg 3f0cfe3
Adding a few comments
ahejlsberg 6074b3e
Consistently error on more than one 'export default'
ahejlsberg f90253f
Merge branch 'master' into exportEquals
mhegazy 86d561d
Check for instantiation on export default in ES6
mhegazy b9e503d
Ellide uninstantiated exports in ES6
mhegazy d47445b
Merge branch 'exportEquals' of https://github.com/Microsoft/TypeScrip…
mhegazy d2ead15
Accept baseline changes
mhegazy 580bb83
Fix issue with AMD emit for 'import d, * as x from "foo"'
ahejlsberg 7356775
Accepting new baselines
ahejlsberg 515cdcd
return undefined if we are not renaming to ensure we get the correct …
mhegazy 4361e6e
Merge branch 'exportEquals' into exportEqualsMerged
mhegazy 352633d
Rename isES6ModuleMemberDeclaration to isES6ExportedDeclaration.
mhegazy 27c5d6f
use the correct check for import and export specifiers
mhegazy 6c40c95
Disallow export declarations in internal modules
mhegazy ab5c09a
Make isReferencedAliasDeclaration check children
mhegazy bc51dd1
In ES6 use "export var x" for internal modules and enums instead of a…
mhegazy aa01dcd
Move es6 alias name handeling to getAliasNameSubstitution to match ge…
mhegazy 1c45b77
Merge branch 'master' into exportEqualsMerged
mhegazy fad8892
Merge branch 'master' into exportEqualsMerged
mhegazy a05f1e8
Merge pull request #2467 from Microsoft/exportEqualsMerged
ahejlsberg 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
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.
this is a fairly odd name to give this entity. Is it used elsewhere? if so, we should put it in a common location so we don't have magic strings like this floating around.
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 needs a name that can meaningfully be shown in error messages (such as duplicate symbol 'export=' when there is more than one). It is used in a few other places, but so are all the other ones here.