Sheetal Nandi
37a080bca9
tsserver's typingInstaller test into typingsInstaller unittest
2018-12-20 12:12:37 -08:00
Sheetal Nandi
1b6db32ecd
Move error tests from tsserver project system to projectErrors
2018-12-20 12:12:19 -08:00
Sheetal Nandi
53a6968f06
More refactoring for compile on save
2018-12-20 12:11:59 -08:00
Sheetal Nandi
347f89c851
tsc-watch emit tests in to its own tests
2018-12-20 12:11:36 -08:00
Sheetal Nandi
7b9b0f8da7
Split resolutionCache and watchApi tests into its own unittest
2018-12-20 12:11:07 -08:00
Sheetal Nandi
47200acfcd
Split watch environment into its own unittest
2018-12-20 12:10:28 -08:00
Sheetal Nandi
2a02077e37
Add name of test in all describe blocks in it
2018-12-20 12:09:42 -08:00
Anders Hejlsberg
93acaac087
Fix discriminant property check
2018-12-20 07:17:42 -08:00
Wesley Wigham
08022d57c8
Allow calls on unions of dissimilar signatures ( #29011 )
...
* Add core of new union signature logic and test - needs intersection signature logic to fully work
* Add inversion of variance for class props lookup from union sig returns
* Fix lints
* Combine parameter names for nicer quick info
* PR feedback 1
* Fix miscopy
* PR feedback round 2
* Remove argument name combining because loc :(
* Nit cleanup round 3
* Reinline getTupleTypeForArgumentAtPos
* Remove a tad more
* No step on sneky off-by-one error
2018-12-19 16:35:01 -08:00
Daniel Rosenwasser
ab2a38ebef
Merge pull request #29102 from Microsoft/declarationEmitForDefaultExportClassExtendingExpression
...
Declaration emit for default exported class extending expression
2018-12-19 16:19:36 -08:00
Daniel Rosenwasser
9277c03666
Check whether class declarations have a name, falling back to "default".
2018-12-19 15:51:31 -08:00
Sheetal Nandi
fcd502502a
Merge pull request #28886 from Microsoft/sourceMapDecoder
...
Enhancements to SourceMap decoder from tsserver
2018-12-19 12:51:42 -08:00
Anders Hejlsberg
3e0639add5
Merge pull request #29053 from Microsoft/fixDestructuringControlFlow
...
Fix destructuring control flow analysis
2018-12-19 11:12:41 -08:00
Anders Hejlsberg
63273394e4
No public API changes
2018-12-19 10:23:13 -08:00
Anders Hejlsberg
676338971d
Improve error message for out-of-bounds tuple element access
2018-12-19 08:45:18 -08:00
Wesley Wigham
d23effc200
Non-latebound computed property names should print as their underlying name type ( #29084 )
2018-12-18 17:02:34 -08:00
Anders Hejlsberg
8ac18be108
Merge pull request #29082 from Microsoft/widenIntersectionTypes
...
Properly widen intersection types
2018-12-18 12:53:33 -08:00
Wesley Wigham
4e3bc9e35a
Reset constEnumOnlyModule flag on relevant symbol merges in binder ( #29079 )
2018-12-18 12:31:53 -08:00
Anders Hejlsberg
67491414f1
Handle intersection types in getWidenedType
2018-12-18 11:50:29 -08:00
Daniel Rosenwasser
3edd2d6893
Merge pull request #28896 from JoshuaKGoldberg/n-identifier-after-numeric-literal-error
...
Better error message for invalid bigint literals ending with n
2018-12-18 11:38:06 -08:00
Wesley Wigham
4f7184a587
Fix all new lint failures ( #29080 )
2018-12-18 11:34:02 -08:00
Josh Goldberg
0d7e3f82d4
Stretched the error to the end of 'n's
2018-12-18 00:56:00 -08:00
Alexander T
78707b206a
Merge branch 'master' of https://github.com/Microsoft/TypeScript into bug/24542-bad-error-message-for-import-ing-an-export
2018-12-18 10:41:31 +02:00
Alexander T
332c88e57d
PR feedback: change error #2497 message
2018-12-18 10:39:32 +02:00
Alexander
d4a534bfb5
Merge branch 'master' of https://github.com/Microsoft/TypeScript into feature/28086
2018-12-18 08:52:37 +02:00
Alexander T
c70cd38e98
--downlevelIteration errors should mention using later targets
2018-12-18 08:50:31 +02:00
Daniel Rosenwasser
65b230e5ab
Merge pull request #29069 from weswigham/remove-duplicate-function
...
Remove duplicate function from checker
2018-12-17 16:48:14 -08:00
Anders Hejlsberg
c52e5985b7
Merge pull request #29068 from Microsoft/noGenericEmptyObject
...
Generic types should never be considered empty objects
2018-12-17 15:59:42 -08:00
Anders Hejlsberg
54b46d74b5
Address CR feedback, take two
2018-12-17 15:59:12 -08:00
Wesley Wigham
55852c495e
Remove duplicate function from checker
2018-12-17 15:52:32 -08:00
Anders Hejlsberg
109fcd5d43
Address CR feedback
2018-12-17 15:06:15 -08:00
Anders Hejlsberg
93c0f0ca0f
isEmptyObjectType should check that argument is not generic mapped type
2018-12-17 14:08:01 -08:00
Anders Hejlsberg
92f47a7a7b
Use synthetic access expressions for destructuring control flow analysis
2018-12-15 16:49:53 -08:00
Ali Sabzevari
1a5ecbb6ac
#28977 Change error message according to review comments
2018-12-14 23:42:59 +01:00
Ali Sabzevari
99c7fc4a88
#28977 Change const enum error message
2018-12-14 21:23:46 +01:00
Daniel Rosenwasser
4d74f67325
Merge pull request #28888 from Microsoft/numericPropertyAccess
...
Avoid adding a dot when comment a property acccess's expression has trailing comments
2018-12-13 15:18:27 -08:00
Anders Hejlsberg
43811dd16f
Use getIndexedAccessType when computing destructured types
2018-12-13 12:13:13 -08:00
Kerem
de4803658e
Disable truncation for codefixes in signatureToMethodDeclaration. ( #28188 )
2018-12-13 11:21:36 -08:00
Sheetal Nandi
f97a2b3f90
Add more tests that verify semantic diagnostics cache
2018-12-12 16:33:00 -08:00
Wesley Wigham
5788446aa1
Use contextual parameter types over binding pattern initializer types ( #28967 )
...
* Use contextual parameter types over binding pattern initializer types
* Remove unneeded check
2018-12-12 15:39:32 -08:00
Sheetal Nandi
7c92d09e23
When removing the errors for the exports from the file, apart from removing transitive exports, remove the diagnostics of file that import these exports
...
Fixes #28983
2018-12-12 15:23:51 -08:00
Anders Hejlsberg
fecbdb68bd
Merge pull request #28965 from Microsoft/simplifyIndexedAccess
...
Simplify indexed access types applied to mapped types
2018-12-11 17:56:03 -08:00
Daniel Rosenwasser
2999a1eb47
Merge remote-tracking branch 'origin/master' into numericPropertyAccess
2018-12-11 16:52:23 -08:00
Anders Hejlsberg
0dcaaa5c50
Simplify indexed accesses on mapped types with no depth limit
2018-12-11 15:11:57 -08:00
Daniel Rosenwasser
5ab24ed7e0
Merge pull request #28951 from Microsoft/fixLibToIterableAndES5
...
Only use 'es2015.iterable' to avoid accidental es2015 feature usage.
2018-12-11 13:29:39 -08:00
Anders Hejlsberg
44116b5241
Simplify indexed accesses on mapped types up to five levels deep
2018-12-11 12:11:07 -08:00
Philip Pesca
e6aa992095
Fix error message when type argument arity is wrong ( #28366 )
...
* Fix error message when type argument arity is wrong
* Parenthesize 's' in plurals
* Update baseline
* Update baseline
* Use old error message
* Revert parantheses
2018-12-11 09:54:38 -08:00
Daniel Rosenwasser
28c3663e62
Don't use 'fill' in 'fill'.
2018-12-10 21:20:32 -08:00
Daniel Rosenwasser
cc477ee891
Only use 'es2015.iterable' to avoid accidental es2015 feature usage.
2018-12-10 17:46:17 -08:00
Anders Hejlsberg
c5c4908ab6
Merge pull request #28948 from Microsoft/discriminatedUnionIndexSignature
...
Fix crash related to discriminated unions with index signatures
2018-12-10 17:16:30 -08:00