Commit Graph

13128 Commits

Author SHA1 Message Date
Kagami Sascha Rosylight 2c4589d5a9 Merge remote-tracking branch 'upstream/master' into async-es2018 2019-02-07 09:51:26 +09:00
Mine Starks c03af51186 Merge pull request #29785 from jessetrinity/add-auto-quotepreference
Add explicit "auto" quotePreference
2019-02-06 15:43:41 -08:00
Kagami Sascha Rosylight 6249b4c704 Remove ES2018 transforms for ES2018 target (#26315)
* rename esnext.ts as es2018.ts

* remove ES2018 transforms for ES2018 target

* change target from esnext to es2018

* rename tests
2019-02-06 15:35:52 -08:00
Jesse Trinity f0a6154e9b Added auto setting to quotePreference 2019-02-06 14:37:26 -08:00
Anders Hejlsberg d9ee86723a Merge pull request #29740 from Microsoft/fixCircularMappedArrayTuple
Fix issues related to circular mapped array and tuple types
2019-02-06 13:24:19 -08:00
Nathan Shively-Sanders 33af4ea250 assertNever no longer crashes on string input (#29764) 2019-02-06 08:57:24 -08:00
Daniel Rosenwasser 4505eea92d Merge pull request #29766 from Microsoft/USE-ALL-THE-ES2015-NAMES-WESLEY-WHAT-IS-SO-HARD-ABOUT-THAT
Expand "set your lib" suggestions to other commonly used ES2015 declarations
2019-02-05 18:31:16 -08:00
Daniel Rosenwasser 3382a2ea54 Give good error messages on more types. 2019-02-05 18:01:41 -08:00
Ryan Cavanaugh eed9db5ec5 Merge pull request #28465 from alangpierce/enforce-const-enum-access-for-isolatedmodules
Change isolatedModules to allow const enum declaration and disallow access
2019-02-05 16:36:58 -08:00
Klaus Meinhardt 12edac0925 getEffectiveBaseTypeNode: only use JSDoc augments if there is extends (#29349) 2019-02-05 15:51:55 -08:00
Anders Hejlsberg 7c096576bc Merge pull request #29756 from Microsoft/fixStrictPropertyInitialization
Revert change to strict property initialization checks
2019-02-05 15:10:30 -08:00
Anders Hejlsberg 2256d761a2 Revert change to strict property initialization checks 2019-02-05 12:40:25 -08:00
Ryan Cavanaugh 1ec8a71949 Merge pull request #29711 from jack-williams/switch-on-unknown
Fix #29710: Narrow unknown in switch
2019-02-05 09:08:52 -08:00
Anders Hejlsberg ee10c247b7 Less aggressive logic for detecting circular mapped arrays and tuples 2019-02-04 17:36:09 -08:00
Ron Buckton 55762271af Merge pull request #29695 from Microsoft/fixDtsTypeReferenceEmit
Fix type reference dts emit failure
2019-02-04 13:03:07 -08:00
Ron Buckton 4756373967 Merge branch 'master' into fixDtsTypeReferenceEmit 2019-02-04 11:39:16 -08:00
Anders Hejlsberg 415c725bb9 Make exception for synthetic 'this.x' in narrowTypeByInstanceof 2019-02-03 15:23:07 -08:00
Jack Williams 25f9a1fec2 Fix lint errors 2019-02-03 22:44:15 +00:00
Anders Hejlsberg 343e0f7fd9 Fix NarrowTypeByTypeof, NarrowTypeByInstanceof, isPropertyInitializedInConstructor 2019-02-03 08:19:22 -08:00
Jack Williams 3d0c7f3156 Narrow unknown in switch 2019-02-03 16:07:21 +00:00
Alan Pierce 942b020081 Merge remote-tracking branch 'origin/master' into enforce-const-enum-access-for-isolatedmodules 2019-02-01 18:52:22 -08:00
Ron Buckton 4b84f56b21 Fix type reference dts emit failure 2019-02-01 16:09:17 -08:00
Ryan Cavanaugh f81ea89564 Merge pull request #29136 from ajafff/usedbeforedeclaration-objectspread
property is used before its initialization: check more nodes
2019-02-01 13:46:37 -08:00
Anders Hejlsberg 607f2ea4de Merge pull request #29478 from Microsoft/fixContextualReturnTypes
Infer contextual types from generic return types
2019-02-01 12:31:08 -08:00
Ryan Cavanaugh 9d3707d671 Merge pull request #29665 from ajafff/readonly-error-message
clarify error message for 'readonly' type operator
2019-02-01 11:24:38 -08:00
Anders Hejlsberg 8827bed0e7 Merge pull request #29647 from Microsoft/noConstraintsDuringInference
Only check constraints in final phase of type inference
2019-02-01 10:54:08 -08:00
Andy Hanson ed277b8ee9 Handle GetAccessor and SetAccessor in isThisless (#27869) 2019-02-01 10:50:04 -08:00
Anders Hejlsberg fffd77457a Merge branch 'master' into fixContextualReturnTypes
# Conflicts:
#	src/compiler/checker.ts
2019-02-01 10:28:50 -08:00
Anders Hejlsberg 84250e3888 Increase accuracy of remaining subtype reduction work estimate 2019-02-01 06:57:07 -08:00
Anders Hejlsberg 2a91e7aab2 Revert previous changes, use flag to disable fixing during constraint check 2019-01-31 15:32:52 -08:00
Klaus Meinhardt 782622f9cd clarify error message for 'readonly' type operator 2019-01-31 19:44:49 +01:00
Klaus Meinhardt f4747f4667 Merge branch 'master' of github.com:Microsoft/TypeScript into add-to-types2 2019-01-31 11:25:01 +01:00
Ryan Cavanaugh aad609c74f Merge pull request #29298 from ajafff/this-reference-in-parameter
Allow referencing 'this' in parameters of functions in the constructor
2019-01-30 19:13:18 -08:00
Ryan Cavanaugh 2f7627b363 Merge pull request #28190 from ispedals/bug/24709
Support synthesized SourceFile parent in getOrCreateEmitNode (#24709)
2019-01-30 19:12:11 -08:00
Ryan Cavanaugh ec9652d9d6 Merge pull request #27934 from mayn/spelling
fix spelling errors
2019-01-30 19:09:22 -08:00
Anders Hejlsberg 96706a75ed Merge pull request #29510 from Microsoft/constContexts
Const contexts for literal expressions
2019-01-30 15:55:47 -08:00
Anders Hejlsberg eb513a2035 Merge pull request #29576 from Microsoft/fixContextuallyTypedParameters
Fix inference for contextually typed parameters with initializers
2019-01-30 15:51:29 -08:00
Sheetal Nandi 26e546aeaa Merge pull request #29626 from Microsoft/toLowerCase
Handle get from readFileCache correctly.
2019-01-30 13:10:40 -08:00
Sheetal Nandi 55b8e4fd29 Handle "" correctly when cacheing file text 2019-01-30 12:32:08 -08:00
Anders Hejlsberg 7a31706a9f Only check constraints after type argument inference is complete 2019-01-30 06:38:13 -08:00
Ron Buckton ae6c9cd051 Merge pull request #28489 from ajafff/shebang-comments
fix comment parsing at start of file
2019-01-29 17:45:13 -08:00
Ryan Cavanaugh 0df89cc96f Merge pull request #26941 from jack-williams/narrow-unknown-with-triple-equals
Fix #25172: Add narrowing for `unknown` with triple equals
2019-01-29 16:43:50 -08:00
Anders Hejlsberg 08fe06f527 Merge branch 'master' into constContexts
# Conflicts:
#	src/compiler/checker.ts
2019-01-29 12:29:30 -08:00
Anders Hejlsberg 332468441e Fix lint error 2019-01-28 16:30:49 -08:00
Anders Hejlsberg ff42c3d198 Handle readonly arrays and tuples in decorator metadata serialization 2019-01-28 16:09:55 -08:00
Anders Hejlsberg 151fac913c Merge branch 'master' into readonlyArrayTuple 2019-01-28 15:53:24 -08:00
Anders Hejlsberg e727845029 Higher complexity limit for unions of primitives only 2019-01-28 13:58:15 -08:00
Anders Hejlsberg ea3814676d Error on union types that are too complex to represent 2019-01-28 13:11:04 -08:00
Daniel Rosenwasser c899c2ee00 Bump version to 3.4. 2019-01-28 12:36:24 -08:00
Sheetal Nandi 604af5c621 Handle get from readFileCache correctly.
Fixes #29623
2019-01-28 12:30:05 -08:00