Commit Graph
11554 Commits
Author SHA1 Message Date
Ron Buckton f5281d62cc Fix async generator rejection handling 2018-05-12 02:07:31 -07:00
Mohamed Hegazy b0c67fd023 Merge pull request #24056 from a-tarasyuk/bug/23891-declarationDir-needs-to-be-handled-in-excludeSpecs
Add declarationDir to excludeSpec
2018-05-11 12:56:15 -07:00
Alexader 60d39d7f18 add tests 2018-05-11 21:27:40 +03:00
Mohamed Hegazy cc36cfc834 Merge pull request #24050 from Microsoft/fix-js-initializer-merging
Fix js initializer merging
2018-05-11 10:45:20 -07:00
Nathan Shively-Sanders de9ff1b004 Assert:only merge into transient symbols 2018-05-11 09:12:25 -07:00
Alexander T bb615ac3f9 Add declarationDir to excludeSpec 2018-05-11 13:47:44 +03:00
Nathan Shively-Sanders 904f8df9c1 Fix repeated merging of js initializers 2018-05-10 20:58:59 -07:00
Nathan Shively-Sanders c49ef36964 First half of fix
Still doesn't work correctly for multiple merges
2018-05-10 16:51:46 -07:00
Andy 6ae4d3a516 Add code fix to remove unreachable code (#24028)
* Add code fix to remove unreachable code

* Code review

* Preserve more kinds of statements
2018-05-10 16:44:48 -07:00
Andy fd17f77cc9 Improvements to find-all-references for import types (#23998)
* Improvements to find-all-references for import types

* Add JS test
2018-05-10 15:31:06 -07:00
Andy 5cf491715a Fix comment (#24035) 2018-05-10 14:59:15 -07:00
Ron Buckton f7311ef84a Merge pull request #23956 from Kingwl/emit-var-at-top
emit temporary vars at the top of the scope
2018-05-10 12:20:13 -07:00
Andy 7271ec1240 Add 'move to new file' refactor (#23726)
* Add 'move to new file' refactor

* Code review, and support commonjs

* Compute movedSymbols completely before using, and support `export import`

* Fix assertion error: sort empty change before non-empty change

* Remove extra newline

* Add allowTextChangesInNewFiles preference

* Add the new file to 'files' in tsconfig

* Avoid parameter initializer

* Update API baselines

* Use path relative to tsconfig.json

* Code review

* Fix error where node in tsconfig file was missing a source file
2018-05-10 11:17:04 -07:00
Wesley Wigham 6149b41469 Generate names for type parameter declarations in inferred types (#23902)
* Generate names for type parameter declarations in inferred types

* Fix lint

* Merge functions, make overload private

* Handle some edge cases better (nodes in differing files than current emit)

* Account for transformed nodes
2018-05-10 11:16:27 -07:00
Mohamed Hegazy 3e08c4174e Merge pull request #24000 from ajafff/regex-factory
Add createRegularExpressionLiteral and expose createStringLiteral
2018-05-10 09:56:46 -07:00
王文璐 ad5a4c7097 add prependRange and move more variable declaration 2018-05-10 15:54:51 +08:00
Wesley Wigham 20f9493f04 Allow all private declarations to be emitted in declaration output (#23351)
* Mostly functional WIP

* Fix accessors, symbol stringification

* Accept/update changed baselines

* Move type definition so file build order doesnt matter

* Accept post-merge test update

* Rename function, add doc
2018-05-09 19:53:44 -07:00
Klaus Meinhardt fc3ba76ab7 Add createRegularExpressionLiteral and expose createStringLiteral
Fixes: #23992
2018-05-09 22:22:46 +02:00
Mohamed Hegazy 9ea4d93823 Merge pull request #23957 from paulkoerbitz/16675-better-error-message-for-dynamic-import
Fix #16675: Better error message for dynamic import with ES2015 modules
2018-05-09 09:42:58 -07:00
Nathan Shively-Sanders e27fb0651b Fix crash in recursive declared type resolution (#23950)
When one type has a type parameter with a default
2018-05-09 09:25:00 -07:00
Paul Koerbitz 89d2baede7 Adress review comments 2018-05-09 10:53:27 +02:00
Ron Buckton f17bf54bfe Merge pull request #23887 from agentcooper/async-generator-resolve-promise
Resolve promise inside async generator
2018-05-09 00:23:47 -07:00
Artem Tyurin d88210b270 Do not check for await expression and always output yield await 2018-05-09 09:09:49 +02:00
Mohamed Hegazy 030b8fc8a6 Merge pull request #23976 from ialexryan/patch-3
Fix comment typo in program.ts
2018-05-08 22:08:56 -07:00
Alex Ryan f9bd3afb8f Fix comment typo in types.ts 2018-05-08 14:51:49 -07:00
Alex Ryan 01351d43e4 Fix comment typo in program.ts 2018-05-08 14:36:32 -07:00
Alex Ryan 4fb2add9a1 Fix comment typo in resolutionCache.ts
Another comment-only fix.
2018-05-08 14:27:40 -07:00
Alex Ryan 211b09b46c Fix typo in parser.ts 2018-05-08 14:20:26 -07:00
Andy 5725428f2d fixUnusedIdentifier: Handle destructure with all bindings unused (#23805)
* fixUnusedIdentifier: Handle destructure with all bindings unused

* Add parameters test

* Add test for 'for' loop
2018-05-08 13:33:55 -07:00
Wesley Wigham 556c316fed Make new harness fake host more performant in large complications (#23951)
* Make new harness fake host more performant in large complications

* Use sortedmap
2018-05-08 12:46:33 -07:00
Sheetal Nandi 12790e8d83 Merge pull request #23910 from Microsoft/moduleUpdates
Support invalidating resolutions that are path mapped into sibling folder of root
2018-05-08 12:41:11 -07:00
Anders Hejlsberg 40e0ab72d2 Merge pull request #23966 from Microsoft/fixIndexedAccessAnyConstraint
Fix indexed access with 'any' constraint
2018-05-08 12:21:00 -07:00
Wesley Wigham 8ab5be9a86 Add hook for adding transforms into the declaration emit pipeline after the main one (#23946)
* Add hook for adding transforms into the declaration emit pipeline after the main one

* Fix lint
2018-05-08 11:20:48 -07:00
Anders Hejlsberg ce6fd5eeaa Exception for 'any' constraint only applies to type parameters 2018-05-08 09:42:03 -07:00
Artem Tyurin 4d37c44b92 Apply transformation to await expression 2018-05-08 08:21:08 +02:00
Paul Koerbitz ba360cfc4f Make error message for dynamic imports when module is ES2015 more helpful 2018-05-08 07:45:48 +02:00
Ryan Cavanaugh 10f2eb5ff1 Pass setParentNodes through to parseJsonText 2018-05-07 15:39:00 -07:00
Ryan Cavanaugh ffa0ccba2a Project References Core support 2018-05-07 15:12:50 -07:00
Artem Tyurin 4318d97531 Revert "Resolve promise inside async generator"
This reverts commit 3e4279195f.
2018-05-05 02:45:33 +02:00
Artem Tyurin fa94fb079c Always yield await in async generator 2018-05-05 02:45:14 +02:00
Andy cecad27662 findAllReferences: Treat a nested property in a jsdoc type literal as a definition (#23901)
* findAllReferences: Treat a nested property in a jsdoc type literal as a definition

* Fix lint
2018-05-04 16:58:07 -07:00
Andy 21a6a9afcc Remove unused interface (#23905) 2018-05-04 15:51:46 -07:00
Sheetal Nandi 1a2fda0f56 Add support to update module resolutions on watches from mono repo like setup with path mapping
Fixes #22349
2018-05-04 15:39:06 -07:00
Wesley Wigham 618da24d6a Look at simplified types when checking distributive conditional constraints (#23884) 2018-05-04 14:35:39 -07:00
Sheetal Nandi 5133c70e7e Merge pull request #22167 from Microsoft/requireJson
Resolve the modue names with "modulename.json" to json files when doing node module resolution
2018-05-04 12:42:10 -07:00
Sheetal Nandi c4143ae0c1 Update the message for resolveJsonModule as per PR feedback 2018-05-04 11:14:39 -07:00
Sheetal Nandi 4e6586deb8 PR feedback 2018-05-04 10:45:46 -07:00
Artem Tyurin 3e4279195f Resolve promise inside async generator 2018-05-04 12:15:58 +02:00
Ron Buckton de10e82e8a Add assertion message 2018-05-03 16:27:15 -07:00
Ron Buckton a7074e2054 Minor changes to reduce stack depth during emit 2018-05-03 16:04:52 -07:00