Anders Hejlsberg
52a9cfb0a9
Infer to partially homomorphic mapped types (such as Pick<T, K>)
2019-02-06 14:23:49 -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
Ron Buckton
056028b4c6
Modifies the jakefile to use the LKG by default unless USE_BUILT=true is set
2019-02-06 13:10:36 -08:00
Benedikt Meurer
0c7a7df09d
Also initialize transformFlags properly in NodeObjects.
2019-02-06 20:57:02 +01:00
Benedikt Meurer
edc9b35e1f
Ran gulp baseline-accept to rebaseline the JSDoc tests
2019-02-06 20:05:11 +01:00
Nathan Shively-Sanders
33af4ea250
assertNever no longer crashes on string input ( #29764 )
2019-02-06 08:57:24 -08:00
Benedikt Meurer
fb65adbd23
Fix initialization of TokenOrIdentifierObject#transformFlags.
...
This should start with `TransformFlags.None` just like in the `Node`
constructor in `src/compiler/utilities.ts`.
2019-02-06 16:51:32 +01: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
e35ab96c0b
Accepted baselines.
2019-02-05 18:01:41 -08:00
Daniel Rosenwasser
3382a2ea54
Give good error messages on more types.
2019-02-05 18:01:41 -08:00
Daniel Rosenwasser
341f9cf1d6
Added test.
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
Sheetal Nandi
e6b74ef7f1
Factor out baseline generation into tsbuild helper so that sample can generate baselines as well
2019-02-05 15:13:13 -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
16cf5d11cc
Accept new baselines
2019-02-05 13:08:25 -08:00
Anders Hejlsberg
2d44a40202
Add regression test
2019-02-05 13:08:18 -08:00
Anders Hejlsberg
2256d761a2
Revert change to strict property initialization checks
2019-02-05 12:40:25 -08:00
Sheetal Nandi
207ab9c2b7
Since dts file doesnt change the dts bundle info doesnt change either so no need to save the new buildInfo for dts emit
2019-02-05 12:34:15 -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
f8eb67195c
Accept new baselines
2019-02-04 17:49:00 -08:00
Anders Hejlsberg
bee9f1a5e7
Add regression tests
2019-02-04 17:48:53 -08:00
Anders Hejlsberg
9639434d72
Accept new baselines
2019-02-04 17:37:11 -08:00
Anders Hejlsberg
ee10c247b7
Less aggressive logic for detecting circular mapped arrays and tuples
2019-02-04 17:36:09 -08:00
Sheetal Nandi
87bb6c9c90
Merge branch 'master' into usePrependToSkipBuild
2019-02-04 15:43:44 -08:00
Sheetal Nandi
3593685269
Use prologue directive information in buildInfo to emit prologues when manipulating js output bundle file
2019-02-04 15:31:10 -08:00
Nathan Shively-Sanders
2f9218f346
DOM update February 2019 ( #29690 )
...
* DOM update February 2019
* Update some baselines
* Update mappedTypeRecursiveInference baselines
2019-02-04 15:25:41 -08:00
Sheetal Nandi
a0a4e6b0c2
Update test baselines
2019-02-04 15:02:35 -08:00
Sheetal Nandi
16914cc940
Factor out unparsed source file for own creation
2019-02-04 15:02:29 -08:00
Sheetal Nandi
d9ead78e8c
Map dts file to sections to write and fix from
2019-02-04 15:02:11 -08:00
Sheetal Nandi
a64e5ad3f3
Even though .d.ts doesnt change, the map file most likely changes, so emit that
2019-02-04 15:02:06 -08:00
Sheetal Nandi
acec3c193a
Use stored helpers to emit incrementally
2019-02-04 15:02:00 -08:00
Sheetal Nandi
aa5d62a72c
Perform only emit on js file if no decl file change
2019-02-04 15:01:54 -08:00
Sheetal Nandi
00917a4649
Store pologue information in bundle info
2019-02-04 15:00:17 -08:00
Ryan Cavanaugh
4ff71ecb98
Merge pull request #29696 from Microsoft/filter-unknown
...
Use unknown for array predicates' return types
2019-02-04 13:26:29 -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
Gabriela Britto
1d1c82095c
add tests for rest parameters
2019-02-04 12:53:02 -08:00
Gabriela Britto
674800f25e
implement refactor for functions with a rest parameter
2019-02-04 12:52:27 -08:00
Anders Hejlsberg
b7c5c073f8
Merge pull request #29714 from Microsoft/fixInstanceofTypeofControlFlow
...
Fix instanceof and typeof control flow
2019-02-04 12:22:52 -08:00
Anders Hejlsberg
f86b635122
Merge pull request #29705 from Microsoft/fixParametersAndReturnType
...
Less restrictive Parameters<T> and ReturnType<T>
2019-02-04 12:08:29 -08:00
Ron Buckton
4756373967
Merge branch 'master' into fixDtsTypeReferenceEmit
2019-02-04 11:39:16 -08:00
TypeScript Bot
530a09a6e2
Update user baselines ( #29682 )
2019-02-04 07:55:39 -08:00
Benedikt Meurer
97c557eb04
Make modifierFlagsCache mandatory for Node objects
...
The `modifierFlagsCache` property is among the top properties that cause
megamorphic stub cache misses when having `tsc` build itself. This is
because it's added sort of randomly to a whole lot of different objects,
at arbitrary points after their initialization.
This also means that `modifierFlagsCache` is often not present on the
instances, which means that when missing on the megamorphic stub cache,
Node/V8 has to compute `NonExistent` handlers for the relevant inline
caches.
It's a lot cheaper to just make sure that the property is always
existent on the instance, and ideally also at the same offset. This
change ensures exactly that.
Drive-by-fix: Also make sure that `transformFlags` (and `parent`)
is always at the same offset for `Node` objects.
2019-02-04 14:46:27 +01:00
Anders Hejlsberg
026225997e
Accept new baselines
2019-02-03 15:23:49 -08:00
Anders Hejlsberg
0c5471ba5c
Add regression test
2019-02-03 15:23:21 -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
Jack Williams
54801cbd17
Merge branch 'master' into switch-on-unknown
2019-02-03 22:36:40 +00:00
Anders Hejlsberg
dcfbe5a7a7
Merge branch 'master' into fixInstanceofTypeofControlFlow
2019-02-03 14:30:22 -08:00
Anders Hejlsberg
4d85acb387
Merge pull request #29712 from jack-williams/update-baseline-for-json-changes
...
Fix build break: Update baselines for types affected by JSON change
2019-02-03 14:29:00 -08:00