8915 Commits

Author SHA1 Message Date
Nathan Shively-Sanders
07a8f31a2d Correctly merge bindThisPropertyAssignment
Also simply it considerably after noticing that it's *only* called for
Javascript files, so there was a lot of dead code for TS cases that
never happened.
2016-08-17 10:43:02 -07:00
Nathan Shively-Sanders
96840c3669 Merge branch 'master' into allow-js-multiple-declaration-of-constructor-properties 2016-08-17 09:04:10 -07:00
Nathan Shively-Sanders
000637156a Merge pull request #10374 from Microsoft/readonly-array-type-argument-assignability
Improve ReadonlyArray<T>.concat to match Array<T>
2016-08-17 08:28:38 -07:00
Andy
c9d1f0d150 Merge pull request #10376 from Microsoft/remove_file_exists_assertion
Remove old assertion about when we're allowed to use fileExists
2016-08-17 06:04:33 -07:00
Andy
ef4fefc197 Merge pull request #10340 from Microsoft/lower_case_types
Use lowercase names for type reference directives
2016-08-17 06:04:14 -07:00
Ron Buckton
11c5c4ee8e Merge pull request #10359 from Microsoft/optimizeMoreMaps
Migrate more MapLikes to Maps
2016-08-16 20:11:35 -07:00
Anders Hejlsberg
905957d463 Merge pull request #10357 from Microsoft/implicitConstParameters
Implicit const parameters
2016-08-16 15:53:13 -07:00
Nathan Shively-Sanders
01aaff7247 Merge pull request #10009 from Microsoft/null-undefined-allowed-as-index-expressions
`Null` and `undefined` are allowed as index expressions
2016-08-16 15:46:42 -07:00
Daniel Rosenwasser
9cc8b2ebb2 Merge pull request #10189 from chancancode/constructor-splat-arguments
Emit more efficient/concise "empty" ES6 ctor
2016-08-16 15:39:11 -07:00
Ryan Cavanaugh
a36e15558e Update error message for conflicting type definitions
Fixes #10370
2016-08-16 14:04:02 -07:00
Andy Hanson
a6974474a1 Remove old assertion about when we're allowed to use fileExists 2016-08-16 13:51:17 -07:00
Nathan Shively-Sanders
ce5e2078ee Improve ReadonlyArray<T>.concat to match Array<T>
The Array-based signature was incorrect and also out-of-date.
2016-08-16 11:29:09 -07:00
Ron Buckton
c0146556e8 Revert some formatting changes. 2016-08-16 11:18:24 -07:00
Ron Buckton
889e5ac7ae Clean up/move some Map helper functions. 2016-08-16 11:15:15 -07:00
Anders Hejlsberg
5770157504 Adding more comments 2016-08-16 09:41:33 -07:00
Yui
f7f50073d3 Fix 10625: JSX Not validating when index signature is present (#10352)
* Check for type of property declaration before using index signature

* Add tests and baselines

* fix linting error
2016-08-16 08:47:21 -07:00
Ron Buckton
1dc495adf8 Migrate additional MapLikes to Maps. 2016-08-15 16:41:32 -07:00
Nathan Shively-Sanders
80c04f8e97 Merge pull request #10358 from Microsoft/classPropertyInference
Support this.prop = expr; assignments as declarations for ES6 JS classes &mdash; Take 2
2016-08-15 16:20:20 -07:00
Ryan Cavanaugh
11f27e8470 Merge pull request #10062 from YuichiNukiyama/fix9601
change error message for unused parameter property
2016-08-15 16:13:32 -07:00
Nathan Shively-Sanders
f3c085e595 Merge branch 'master' into classPropertyInference 2016-08-15 15:52:29 -07:00
Anders Hejlsberg
8f847c5034 Parameters with no assignments implicitly considered const 2016-08-15 15:20:58 -07:00
Yui
9c83243f33 Add ES2015 Date constructor signature that accepts another Date (#10353) 2016-08-15 15:16:54 -07:00
Ron Buckton
7f0a02ff02 Migrated more MapLikes to Maps 2016-08-15 15:03:55 -07:00
Andy Hanson
8f1960fd34 Rename to Accessor 2016-08-15 11:43:40 -07:00
Andy Hanson
2953c7f0b2 Use an enum in checkClassForDuplicateDeclarations to aid readability 2016-08-15 11:16:36 -07:00
Ron Buckton
75cb595f10 Merge pull request #10327 from Microsoft/simplePerformanceAPI
Simplifies performance API
2016-08-15 11:11:20 -07:00
Ron Buckton
4e04b75d4b Aligned mark names with values used by ts-perf. 2016-08-15 11:07:49 -07:00
Andy Hanson
54735edc72 Use lowercase names for type reference directives 2016-08-15 07:40:25 -07:00
yortus
38353027aa narrow from 'any' in most situations
instanceof and user-defined typeguards narrow from 'any' unless the narrowed-to type is exactly 'Object' or 'Function'. This is a breaking change.
2016-08-14 19:42:18 +08:00
Anders Hejlsberg
5bdde3b284 Merge pull request #10270 from Microsoft/optimizeMaps
Optimize performance of maps
2016-08-12 20:41:40 -07:00
Ron Buckton
c81624435a Simplifies performance API 2016-08-12 16:34:35 -07:00
Ryan Cavanaugh
ec4952582f Merge pull request #10211 from RyanCavanaugh/fourslashTestPerf
Speed up fourslash tests
2016-08-12 13:33:22 -07:00
Anders Hejlsberg
87393e026e Merge branch 'master' into optimizeMaps 2016-08-12 13:31:37 -07:00
Anders Hejlsberg
19d89c4e03 Merge pull request #10296 from Microsoft/fixDiscriminantWithPrimtive
Fix discriminated unions with primtive types
2016-08-12 13:18:24 -07:00
Andy Hanson
df739fdd50 Allow an @types direcotry to have a package.json which specifies "typings": null to disclude it from automatically included typings. 2016-08-12 08:13:39 -07:00
Anders Hejlsberg
e64675eb85 Faster path for creating union types from filterType 2016-08-12 06:54:51 -07:00
Anders Hejlsberg
f1ea145e05 Address CR comments + more optimizations 2016-08-11 16:06:03 -07:00
Anders Hejlsberg
644d6554fb Optimize core filter function to only allocate when necessary 2016-08-11 16:04:46 -07:00
Anders Hejlsberg
b336c693ee Fix typo 2016-08-11 14:38:01 -07:00
Anders Hejlsberg
c22a54fb95 Filter out nullable and primitive types in isDiscriminantProperty 2016-08-11 13:46:06 -07:00
Anders Hejlsberg
a3845a95d5 Optimize getTypeWithFacts 2016-08-11 13:44:51 -07:00
Anders Hejlsberg
24d8d848f1 Optimize filterType to only call getUnionType if necessary 2016-08-11 10:23:27 -07:00
Anders Hejlsberg
e00ce94b94 Merge pull request #10240 from Microsoft/optimizeTypeListIds
Optimize format of type list id strings used in maps
2016-08-11 10:11:41 -07:00
Andy
e900952d3d Merge pull request #10013 from Microsoft/resolve_entity_name
Use brand types to clear up confusion about entity name expressions
2016-08-11 09:59:17 -07:00
Nathan Shively-Sanders
688e9bc455 Merge pull request #10234 from Microsoft/correct-this-in-tuple-type-parameter-constraints
Correct this in tuple type parameter constraints
2016-08-11 09:44:50 -07:00
Andy Hanson
5b9bd82070 Merge branch 'master' into resolve_entity_name 2016-08-11 09:18:21 -07:00
Anders Hejlsberg
65e1293b2e Optimize performance of maps 2016-08-10 16:47:06 -07:00
Nathan Shively-Sanders
408780864c Fix single-quote lint 2016-08-10 14:09:52 -07:00
zhengbli
56cb07ae91 avoid using the global name 2016-08-10 12:34:27 -07:00
Ryan Cavanaugh
2f6f74d0c8 Merge pull request #10243 from joshaber/iterable-readonlyarray
Make ReadonlyArray iterable.
2016-08-10 10:34:12 -07:00