Commit Graph

10862 Commits

Author SHA1 Message Date
Ron Buckton
ec95f4f0f7 Merge branch 'streamlineDestructuring' into emitHelper 2016-11-15 18:13:52 -08:00
Ron Buckton
346d488c62 Merge branch 'master' into emitHelper 2016-11-15 17:13:57 -08:00
Ron Buckton
ba4f52c055 Merge remote-tracking branch 'origin/object-rest-emit-for-method-and-accessor-parameters' into streamlineDestructuring 2016-11-15 17:09:49 -08:00
Ron Buckton
8733973d1f Merge branch 'streamlineDestructuring' into isolateObjectSpread 2016-11-15 14:50:42 -08:00
Ron Buckton
0dd96f52e8 Merge branch 'master' into streamlineDestructuring 2016-11-15 13:38:56 -08:00
Anders Hejlsberg
73ada7a78d Merge pull request #12251 from Microsoft/fixTypePredicateStructuralMatch
Fix type predicates with structurally identical types
2016-11-15 13:20:35 -08:00
Anders Hejlsberg
0ba23483e8 Merge pull request #12276 from Microsoft/libMappedTypes
Predefined mapped types in lib.d.ts
2016-11-15 13:19:58 -08:00
Vladimir Matveev
4c2474463c ports #12237, #12258 and #12259 into master (#12274)
* treat failures to resolve module name as missing packages (#12237)

* added extra check to prevent multiple installation of the same typing, added version field to telemetry event (#12258)

* added extra check to prevent multiple installation of the same typing, added version field to telemetry event

* use ts.version

* switch to execSync to ensure that no install orders are interleaved (#12259)

* Make sure version is public

* Update file with version string for nightly release
2016-11-15 12:53:46 -08:00
Ron Buckton
98e192f357 Move transformFunctionBody back into es2015 2016-11-15 12:32:43 -08:00
Anders Hejlsberg
d32196ff36 Add predefined mapped types and revise Object.freeze 2016-11-15 12:14:46 -08:00
Anders Hejlsberg
fe3f88cd08 Properly handle identity relation for mapped types 2016-11-15 12:14:02 -08:00
Nathan Shively-Sanders
bb46e789d5 Fix spread/rest emit for symbols.
It used the index of the symbol property as the name, not the symbol
itself.
2016-11-15 11:31:21 -08:00
Nathan Shively-Sanders
2496756aed Merge branch 'master' into object-spread-rest-fixes 2016-11-15 11:19:01 -08:00
Nathan Shively-Sanders
47f331926e Improve rest/spread emit for symbols
Previously, symbols were not handled.
2016-11-15 10:58:33 -08:00
Paul van Brenk
1924298d87 Merge branch 'master' into unusedidentifier 2016-11-15 10:17:37 -08:00
Nathan Shively-Sanders
b4d3bca32b Object rest emit for method and accessor parameters
I missed these before, so emit was incorrect for object rest in a method
or accessor parameter.
2016-11-15 09:50:29 -08:00
Nathan Shively-Sanders
b9fa06f90b Address PR commennts
Update baselines with smaller emit as part of that.
2016-11-15 09:10:55 -08:00
Nathan Shively-Sanders
a74e9d8ccf Merge pull request #12158 from Microsoft/fix-literal-comparability-in-relational-comparison-operators
Fix literal comparability in relational comparison operators
2016-11-15 08:24:06 -08:00
Ron Buckton
dff9849ac9 Make multiLine optional in convertToFunctionBody 2016-11-14 18:33:21 -08:00
Ron Buckton
ddcd22e4de Removed esnext dependency on convertForOf/transformFunctionBody in factory 2016-11-14 18:30:42 -08:00
Anders Hejlsberg
d2c0952801 Revert type predicates to not have instanceof special casing 2016-11-14 17:13:49 -08:00
Mohamed Hegazy
ddf2ad4ba1 Merge pull request #12247 from Microsoft/fix10840
Fix missing alias for decorated classes in es5
2016-11-14 17:09:33 -08:00
Ron Buckton
cbdde421e6 Moved the parenthesizing functions to make the diff easier to read 2016-11-14 17:06:10 -08:00
Ron Buckton
60d5195112 Update baselines, fix assignment check for object rest. 2016-11-14 16:56:59 -08:00
Nathan Shively-Sanders
6f274eaabe Spread+rest fixes
1. Rename finds identifiers in spread assignment expressions.
2. Spreads with computed properties of type number or any no longer
crash the compiler.
3. Rest emit uses indexOf === -1 instead of !indexOf to filter properties.
4. Rest emit correctly refers to computed properties' generated temps.
2016-11-14 16:20:43 -08:00
Nathan Shively-Sanders
e50adc0904 Merge pull request #12223 from Microsoft/fix-object-spread-rest-async-emit
Fix object spread+async emit
2016-11-14 16:15:15 -08:00
Mohamed Hegazy
1164df2c6d Merge pull request #12197 from Microsoft/commentsSuperCallReturns
Fix up comments for super calls rewritten as returns
2016-11-14 16:10:03 -08:00
Ron Buckton
bb218107a9 Fix missing alias for decorated classes in es5 2016-11-14 15:50:47 -08:00
Ron Buckton
45772270a4 Merge branch 'master' into isolateObjectSpread 2016-11-14 15:33:45 -08:00
Ron Buckton
6e3bbcc6fc Merge pull request #12245 from Microsoft/fix12244
Fix string constituent check in checkElementTypeOfArrayOrString
2016-11-14 15:27:45 -08:00
Ron Buckton
cb1bb19358 Update comment 2016-11-14 15:26:33 -08:00
Ron Buckton
06a13b9d10 Fix string constituent check in checkElementTypeOfArrayOrString 2016-11-14 15:22:04 -08:00
Vladimir Matveev
f13e6d4ca6 enable syntactic features if project size exceeded the limit, send events when state of language service changes (#12190)
* enable syntactic features if project size exceeded the limit, send events when state of language service changes

* allow getting compiler options diagnostics when language service is disabled
2016-11-14 15:10:32 -08:00
Vladimir Matveev
04aaa32367 add 'installSuccess' flag to telemetry, cache misses if npm install fails (#12163) (#12240)
* add 'installSuccess' flag to telemetry, cache misses if npm install fails

* fix typo
2016-11-14 14:56:49 -08:00
Ron Buckton
08f467bd4c Clean up destructuring 2016-11-14 14:20:25 -08:00
Mohamed Hegazy
6a67f8085a Merge pull request #12232 from Microsoft/removeJSFromVSResolutions
Remove js from vs resolutions
2016-11-14 14:13:32 -08:00
Vladimir Matveev
f11e8a3c69 add 'installSuccess' flag to telemetry, cache misses if npm install fails (#12163)
* add 'installSuccess' flag to telemetry, cache misses if npm install fails

* fix typo
2016-11-14 14:10:22 -08:00
Mohamed Hegazy
2827b370cc Merge pull request #12207 from ethanresnick/precise-object-entry-types
More precise Object.entries type declarations
2016-11-14 13:55:27 -08:00
Mohamed Hegazy
964f9c5fe2 Make failedLookupLocations an array 2016-11-14 13:24:03 -08:00
Mohamed Hegazy
57a602b924 Include no types in services 2016-11-14 12:47:04 -08:00
Mohamed Hegazy
4782563ee3 Filter JS files from resolutions sent to VS through shims 2016-11-14 12:46:56 -08:00
Daniel Rosenwasser
f6a570cc79 && -> || 2016-11-14 11:01:05 -08:00
Mohamed Hegazy
a0338d15e1 Ignore optionality in the comparable relationship (#12202)
* Added tests.

* Accepted baselines.

* Avoid checking for optionality in comparability checks.

* Accepted baselines.
2016-11-14 10:47:48 -08:00
Vladimir Matveev
36511838a4 allow getting compiler options diagnostics when language service is disabled 2016-11-14 10:41:48 -08:00
Ron Buckton
d5b9263433 Consolidate destructuring code paths 2016-11-14 10:40:26 -08:00
Nathan Shively-Sanders
fab1416dd2 Fixes for object spread emit
1. Retain function modifiers. They were previously dropped.
2. Do not emit __assign for object literals with no spreads, just visit
children.
3. call aggregateTransformFlags after creating an __assign call.
2016-11-14 08:58:29 -08:00
Nathan Shively-Sanders
0cda239e1c Merge pull request #12156 from Microsoft/fix-jsdoc-missing-space-from-bad-indent
Fix jsdoc missing space from bad indent
2016-11-14 08:21:40 -08:00
Anders Hejlsberg
f437c8f318 Merge pull request #12114 from Microsoft/mappedTypes
Mapped types
2016-11-13 15:39:32 -08:00
(´・ω・`)
4166eeb284 fix #12137, correct ProxyHandler signatures (#12172)
* fix #12137, correct ProxyHandler signatures

* address PR review
2016-11-13 15:27:07 -08:00
Anders Hejlsberg
cd05c079ce Add comment explaining type alias instantiation strategy 2016-11-13 15:25:16 -08:00