Wesley Wigham
d7390c03f0
Avoid elaborating on generic indexes ( #28294 )
2018-11-06 12:51:11 -08:00
Daniel Rosenwasser
41d3f0ad57
Merge pull request #28071 from pesca/improveCodeFix
...
Improve code fix for missing members
2018-11-06 11:29:51 -08:00
Wesley Wigham
cc36e294cc
Add related span pointing to this-shadowing location for implicitly-any this ( #28299 )
...
* Add diagnostic pointing to this-shadowing location
* Fix almost-top-level-this case
* Change message on span
2018-11-06 11:27:07 -08:00
Andy
772f6cdf48
Remove JSDocTag#atToken ( #28376 )
2018-11-06 09:54:23 -08:00
TypeScript Bot
a323d98512
Update user baselines ( #28371 )
2018-11-06 08:57:05 -08:00
Anders Hejlsberg
76a742191f
Remove usage of TypeFlags.FreshLiteral for fresh literal types
2018-11-06 06:25:10 -08:00
Anders Hejlsberg
aa023eb6e3
Remove TypeFlags.UnionOfPrimitiveTypes
2018-11-05 18:04:57 -08:00
Wesley Wigham
929791868f
Make for..in expressions allowed to be null/undefined ( #28348 )
2018-11-05 17:23:19 -08:00
Anders Hejlsberg
85dbc0438f
Merge pull request #28312 from Microsoft/genericRest
...
Generic object rest variables and parameters
2018-11-05 16:36:45 -08:00
TypeScript Bot
b28e411734
Update user baselines ( #28341 )
2018-11-05 16:20:52 -08:00
Andy
c22c7e687d
Strcter testing for global completions; and 'excludes' can only be a string ( #28349 )
2018-11-05 16:16:28 -08:00
Sheetal Nandi
597aacad88
Merge pull request #28346 from Microsoft/transitiveExports
...
When removing old diagnostics for files referencing modules that export affected file with signature change, delete the diagnostics of the module as well as anything that exports that module
2018-11-05 15:58:22 -08:00
Anders Hejlsberg
f9dd44517a
Merge branch 'master' into genericRest
...
# Conflicts:
# src/compiler/checker.ts
2018-11-05 15:41:53 -08:00
Sheetal Nandi
576fdf98d7
Merge pull request #25886 from calebsander/feature/bigint
...
BigInt support
2018-11-05 13:08:48 -08:00
Andy
f37101e871
Fix bug when augmenting parent-less symbol ( #28345 )
2018-11-05 12:57:33 -08:00
Caleb Sander
bb99c41230
Don't error on bigint literal used in type
2018-11-05 12:23:02 -08:00
Sheetal Nandi
23e7330ddb
When removing old diagnostics for files referencing modules that export affected file with signature change, delete the diagnostics of the module as well as anything that exports that module
...
Fixes #28328
2018-11-05 12:17:41 -08:00
Caleb Sander
6c59a3b890
Fix ambient initializer emit for bigint
2018-11-05 11:36:33 -08:00
Caleb Sander
ecd12453f4
Add test for bigint property
2018-11-05 11:36:32 -08:00
Caleb Sander
6f97fb5f02
Fix error numbers
2018-11-05 11:36:32 -08:00
Caleb Sander
28e9ec497c
Address review comments
2018-11-05 11:36:32 -08:00
Caleb Sander
a93131319e
Add bigint tests
2018-11-05 11:36:32 -08:00
Caleb Sander
95c24c6c6a
experimentalBigInt compiler flag
2018-11-05 11:36:31 -08:00
Caleb Sander
188c07865a
Scan bigint literals
2018-11-05 11:36:31 -08:00
Caleb Sander
0499f5d801
Add "bigint" to typeof x in baselines
2018-11-05 11:36:31 -08:00
Caleb Sander
ac2a118f07
Add bigint type
2018-11-05 11:36:31 -08:00
Caleb Sander
3e10dedbce
Add diagnostic messages for bigints
2018-11-05 11:36:30 -08:00
Caleb Sander
ece27eb177
Utilities for PseudoBigInt
2018-11-05 11:36:30 -08:00
Caleb Sander
0c1bf316a2
Declaration files for BigInt
2018-11-05 11:36:30 -08:00
Nathan Shively-Sanders
4cb210ce2e
Parameters infer from body and call sites ( #28342 )
...
* Parameters infer from body usage and call sites
* Function expressions infer from variable decl usages
If the function expression is the initialiser of a variable declaration.
* Update isApplicableFunctionForInference too
* Update baseline
2018-11-05 11:29:16 -08:00
Nathan Shively-Sanders
4742a28771
Update baselines
...
mappedTypeRecursiveInference uses the DOM to ensure it operates on a
big-enough type to be a valid test.
2018-11-05 10:22:30 -08:00
Nathan Shively-Sanders
b830ef8214
Nov 2018 DOM update
2018-11-05 10:19:05 -08:00
Kagami Sascha Rosylight
8ed21a8a6a
adjust test: always indented inside a list
2018-11-05 21:45:19 +09:00
Kagami Sascha Rosylight
7fa447b56f
strict types
2018-11-05 21:45:19 +09:00
Kagami Sascha Rosylight
7bc40cead8
indent size 8 based on list startline indentation
2018-11-05 21:45:19 +09:00
Kagami Sascha Rosylight
c6174f6914
resolve TODO
2018-11-05 21:45:19 +09:00
Kagami Sascha Rosylight
90d5413ccb
tests
2018-11-05 21:45:19 +09:00
Kagami Sascha Rosylight
ac517336c4
indent using list start position
2018-11-05 21:45:18 +09:00
Kagami Sascha Rosylight
655bf203d0
indent using list start position before first list item
2018-11-05 21:45:18 +09:00
Kagami Sascha Rosylight
cd19a8910d
add getListByPosition
2018-11-05 21:45:18 +09:00
Kagami Sascha Rosylight
d7f1935c30
remove deprecated function
2018-11-05 21:45:18 +09:00
Kagami Sascha Rosylight
7561ec0f39
use last line indentation on formatter
...
... and add explicit delta suppressor for list end tokens
2018-11-05 21:45:18 +09:00
Alexander
66539b4378
accept baseline for changed error message #2540
2018-11-03 16:10:56 +02:00
Alexander
ae8d54658a
exclude mention about constant from error message 'a-constant-or-a-read-only-property' to be more specific.
2018-11-03 16:07:20 +02:00
Alexander T
28fc0a28b0
add new error message 'Cannot assign to {0} because it is a constant.'
2018-11-03 15:42:00 +02:00
Wesley Wigham
eba83f4ea7
Add related span for mixin constructor error ( #28319 )
...
* Add related span for mixin constructor error
* Remove unneeded casts
* Nicer style
2018-11-02 17:29:05 -07:00
Andy
92a48d8880
Improve error message when scriptInfo is missing in mapTextChangeToCodeEdit ( #28258 )
...
* Improve error message when scriptInfo is missing in mapTextChangeToCodeEdit
* Include both fileName and path, and use in more places
* Move logErrorForScriptInfoNotFound to editorServices.ts
* Update API
2018-11-02 16:12:46 -07:00
Nathan Shively-Sanders
ce85ee5115
Move infer-from-usage earlier in codefix list ( #28318 )
...
This makes it appear before the ts-ignore codefix, specifically.
2018-11-02 15:39:27 -07:00
Andy
4e59096ea5
Exclude keywords from import completions ( #28114 )
...
* Exclude keywords from import completions
* Still allow contextual keywords
* Add excludes tests
2018-11-02 14:33:02 -07:00
Andy
afbf89e3b3
Refactors can return ReadonlyArray<ApplicableRefactorInfo> ( #28305 )
...
* Refactors can return ReadonlyArray<ApplicableRefactorInfo>
* Remove unnecessary type assertions
2018-11-02 10:07:21 -07:00