-
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
6974 add lib implementation #7715
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
168118f
Modularize ES6 and ES7 library files
3fef5ba
Implement --lib flag in the compiler and harness
623eef6
Update unittest for --lib
f052e90
Update fourslash tests
eff81b9
Add compiler-baseline tests and associated baselines for --lib flag
4e6cef2
Addres PR: change lib filenames from es6 to es2015 and es7 to es2016
7e1470d
Address PR: use getDefaultLibLocation? insteadof getUserDefinedLibFil…
15367e7
Clean up library files
7f8774f
Update the baselines for modularize library
99f9efb
Address PR: give default value for getDefaultLibrarySourceFile and us…
de7e9f0
Update baselines affected by modularize library PR
ced3033
Address PR: remove debugger statement
41a95b7
Address PR: add comment
41265c7
Address PR: merge two functions to get-default-library-file
ade9287
Address PR: merge two functions to get-default-library-file
b9cd882
Address PR: use getDefaultLibLocation to get directory
327a51b
Address PR: Put --lip options into one line
1bc5749
Merge branch '6974AddLibSymbolBaselinesUpdate' into 6974AddLibImpleme…
0ba4a2c
Fix style and whitespace
56dcd02
Merge branch '6974AddLibImplementation' of https://github.com/Microso…
992b4f9
Fix test failure by having correct case for the file-name
fd5c9bd
Fix test failure by having correct case for the file-name
1490547
Merge branch '6974AddLibImplementation' of https://github.com/Microso…
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
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.
What exactly is the reason these are lazy again?
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.
Because we don't want to give an error even when you don't use any of these feature. For example, if you code only use es6-array features and you specify
--lib es2015.array
you should not get an error of "can't find 'Symbol' or 'Iterator'": Being lazy allows us to do thatThere 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.
Sounds great! Can you leave that comment above these declarations?
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.
Yep 🍰