Commit Graph

28909 Commits

Author SHA1 Message Date
Sheetal Nandi a41d546f6e Store commonSourceDirectory 2019-02-01 11:42:39 -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 42be36d182 Accept new baselines 2019-02-01 10:48:58 -08:00
Anders Hejlsberg c58157573e Add breaking change repros 2019-02-01 10:48:52 -08:00
Sheetal Nandi 66dab21565 More refactoring 2019-02-01 10:46:37 -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 44fae8c29a Merge pull request #29685 from Microsoft/fixSubtypeReductionEstimate
Increase accuracy of subtype reduction remaining work estimate
2019-02-01 10:25:02 -08:00
Anders Hejlsberg 84250e3888 Increase accuracy of remaining subtype reduction work estimate 2019-02-01 06:57:07 -08:00
kpreisser 97d2ea8f32 Minor improvements of code and comments. 2019-02-01 11:59:30 +01:00
kpreisser 9140cbc29e Correctly adjust the backward reference of the next entry when deleting an entry. 2019-02-01 11:59:28 +01:00
kpreisser c4960d3c11 Adjust the unit test to spot a missed bug in the delete() implementation. 2019-02-01 11:59:26 +01:00
kpreisser 472157e523 Revert a few unneeded (stylistic) changes. 2019-02-01 11:59:25 +01:00
kpreisser c8e329bcbc Rework the implementation of the shimMap to ensure iterators will behave the same as with native Maps.
This includes:
- Entries are visited in insertion order
- New entries added during iteration will be visited
- Entries that are removed during iteration (before being visited) will not be visited

Fixes #26090
2019-02-01 11:59:24 +01:00
kpreisser b502ae98e1 Add a unit test for the shimMap (currently failing).
This will test that iteration is in insertion order, new entries added during iteration will be visited by the iterator, and values can be deleted while an iterator is running.
2019-02-01 11:59:22 +01:00
kpreisser 41bef5f77c PR review: Fix typo. 2019-02-01 11:59:20 +01:00
kpreisser c0c71bf65e Fix lint issues. 2019-02-01 11:59:17 +01:00
kpreisser bff5436ac9 Follow-Up: Avoid the memory leak problem by simply not allowing existing iterators to continue once an entry has been deleted from the map.
Fixes #26090
2019-02-01 11:59:15 +01:00
kpreisser 8626b927be Adjust the iteration behavior of the shimMap (used for IE 11) to visit values that are added while forEach is running.
Fixes #26090
2019-02-01 11:59:13 +01:00
Sheetal Nandi 03fa5bd90f Merge branch 'master' into usePrependToSkipBuild 2019-01-31 22:05:51 -08:00
Sheetal Nandi 79b5992247 Verify header updates 2019-01-31 22:01:54 -08:00
Sheetal Nandi 10f01318a3 Dont do base build again for each incremental scenario 2019-01-31 21:24:46 -08:00
Sheetal Nandi b7defb3cac Some more reorg in test 2019-01-31 20:06:52 -08:00
Sheetal Nandi 3cf46f16bf Dont diff with only sources in incremental compilation, diff with the base build 2019-01-31 19:43:30 -08:00
Sheetal Nandi 4205eaf021 Baseline incremental build baselines 2019-01-31 19:30:15 -08:00
Sheetal Nandi db3a4fe25d Separate out the tests for tsbuild into its own folder 2019-01-31 15:36:34 -08:00
Anders Hejlsberg 51ccfb1201 Accept new baselines 2019-01-31 15:33:00 -08:00
Anders Hejlsberg 2a91e7aab2 Revert previous changes, use flag to disable fixing during constraint check 2019-01-31 15:32:52 -08:00
TypeScript Bot d2909a14aa Update user baselines (#29660) 2019-01-31 15:02:49 -08:00
Sheetal Nandi f7281e3fb5 Use same property name for BundleFileSection and UnparsedNode for easy node creation 2019-01-31 11:51:52 -08:00
Sheetal Nandi 38e0d4df0f Add SourceMapUrl to section 2019-01-31 11:19:55 -08:00
Klaus Meinhardt 782622f9cd clarify error message for 'readonly' type operator 2019-01-31 19:44:49 +01:00
Sheetal Nandi b15cb6b097 Create nodes for unparsed text, prepend text 2019-01-31 10:44:17 -08:00
Sheetal Nandi 362c78ee40 Create prepend text sections in .buildInfo 2019-01-31 10:24:13 -08:00
Sheetal Nandi 39e37a2c57 Generate .tsbuildInfo if bundle uses references with prepend 2019-01-31 10:24:13 -08:00
Sheetal Nandi bd769406ca If the project only needs prepend output to be changed, prepare to just manipulate output
Step 1: Update the verbose log to reflect it
2019-01-31 10:24:12 -08:00
Sheetal Nandi aa74fa1076 Fix UnparsedPrologue kind 2019-01-31 10:17:14 -08:00
Ryan Cavanaugh 5d3685d041 Merge pull request #28240 from ajafff/add-to-types2
Only suggest adding to types if present in compilerOptions
2019-01-31 09:34:59 -08:00
Klaus Meinhardt d72271b800 update baseline 2019-01-31 11:29:29 +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 caa8dc25a8 Merge pull request #29115 from KromDaniel/patch-1
Duplicate `wait` instead of `wait` and `notify` at `es2017.sharedmemory.d.ts`
2019-01-30 19:12:46 -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
Benjamin Lichtman 62cf44cb9b Allow per-file setting for rename default behavior preferences (#29593)
<!--
Thank you for submitting a pull request!

Here's a checklist you might find useful.
* [ ] There is an associated issue that is labeled
  'Bug' or 'help wanted' or is in the Community milestone
* [ ] Code is up-to-date with the `master` branch
* [ ] You've successfully run `jake runtests` locally
* [ ] You've signed the CLA
* [ ] There are new or updated unit tests validating the change

Refer to CONTRIBUTING.MD for more details.
  https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md
-->

Fixes #29585.
#29314 and #29385 made it so their respective settings are only recognized when provided to the host as a whole.
This PR makes it so that the relevant settings for the preferences on the file override those of the preferences on the host.
2019-01-30 19:08:30 -08:00
Sheetal Nandi d1f3aca2d0 Test case when final project isnt composite project 2019-01-30 17:57:44 -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 bb76259e7a More logs verification 2019-01-30 14:52:04 -08:00