Commit Graph
13089 Commits
Author SHA1 Message Date
kpreisser 5043bf72f5 PR feedback. 2019-02-07 09:01:27 +01: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 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 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
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
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
Anders Hejlsberg 4335f4462c Tuples are known to be covaraint 2019-01-28 08:58:18 -08:00
Matthew Aynalem f30e8a284a fix spelling errors 2019-01-27 20:33:33 -08:00
Klaus Meinhardt 451ff29263 revert change of trailing comment parsing 2019-01-27 17:41:20 +01:00
Klaus Meinhardt 68133e5fad Merge branch 'master' into shebang-comments 2019-01-27 17:37:10 +01:00
Anders Hejlsberg 4706a060a5 Merge branch 'master' into readonlyArrayTuple 2019-01-26 14:44:15 -08:00
Anders Hejlsberg 25ac1ed262 Merge branch 'master' into fixContextuallyTypedParameters
# Conflicts:
#	src/compiler/checker.ts
2019-01-25 16:43:46 -08:00
Wesley Wigham 4da9d8bc87 Include index signatures of the source in mapped type template target inferences (#29253) 2019-01-25 15:22:35 -08:00
Wesley Wigham 5f782bf58a Fixup restrictive instantiations to actually erase type parameter constraints (#29592) 2019-01-25 15:18:07 -08:00
Ron Buckton bd8c6259b9 Merge pull request #29422 from Microsoft/fix29006
Fix crash in getTextOfPropertyName
2019-01-25 14:08:35 -08:00
Anders Hejlsberg c6ccc5b6cb Address CR feedback 2019-01-25 09:43:12 -08:00
Anders Hejlsberg 22d46ace7f Don't report circularities when parameter has itself as contextual type 2019-01-25 09:11:59 -08:00
Klaus Meinhardt 6eb83650ea Merge branch 'master' into add-to-types2 2019-01-25 16:56:11 +01:00
Jack Williams 6f30537d13 Simplify type flag check 2019-01-25 09:41:35 +00:00
Jack Williams 36cc154985 Narrow to any primitive or object and update tests 2019-01-25 09:41:34 +00:00
Jack Williams 267e5989cd Add narrowing for unknown with strict equal 2019-01-25 09:41:34 +00:00
Ron Buckton 469ab3fdd0 Merge branch 'master' into fix29006 2019-01-24 16:50:50 -08:00
Sheetal Nandi 1b12a855e8 Merge branch 'master' into inputFiles 2019-01-24 15:44:45 -08:00
Wesley Wigham 0ddcab3469 Fix master: handle generating type name for late bound dupe message more nicely (#29572)
* Fix master: handle generating type name for late bound dupe message more nicely

* Make literal type casts more specific in many places to better reflect the checks performed
2019-01-24 15:37:13 -08:00
Sheetal Nandi ec817f55f3 Fix unnecessary union 2019-01-24 15:27:39 -08:00
Ryan Cavanaugh 1a742e6f27 Merge pull request #27918 from collin5/b27914
Improve error message for duplicate property with computed name
2019-01-24 14:35:51 -08:00
Sheetal Nandi 399f987918 Add todos for sourcemap that accidently got reverted. 2019-01-24 13:54:45 -08:00
Sheetal Nandi 216ed1b385 Get dts content from sourceFile if present 2019-01-24 13:47:27 -08:00
Sheetal Nandi 50d98aee0e Create getters for js sourcemap, dts and dts map text getters in prepend nodes 2019-01-24 13:38:25 -08:00