Commit graph

9704 commits

Author SHA1 Message Date
Vladimir Matveev
ef1a82fb49 Merge pull request #5108 from Microsoft/elideExportStarForNonValues
do not emit exportsStar function if module does not expose any values
2015-12-08 13:52:09 -08:00
Vladimir Matveev
f3e4befc3e merge with master 2015-12-08 13:28:55 -08:00
Vladimir Matveev
268e7c0d09 Merge remote-tracking branch 'origin/master' into elideExportStarForNonValues 2015-12-08 13:15:56 -08:00
Zhengbo Li
998372709b Merge pull request #5982 from zhengbli/updateLib
Weekly update of lib.d.ts ported from TSJS repo
2015-12-08 11:37:25 -08:00
Ryan Cavanaugh
964fbea9c1 Fix up for 'async' 2015-12-08 10:57:33 -08:00
Mohamed Hegazy
fbb908694a Merge pull request #5988 from SaschaNaz/formatArrows
Format spaces before arrows
2015-12-08 10:20:19 -08:00
Ryan Cavanaugh
92d7d1c953 Disallow modifiers in object literal property assignment
Fixes bug #5994
2015-12-08 10:11:29 -08:00
Ryan Cavanaugh
51c547428b Parse JSX attributes as AssignmentExpressions
We should issue an error when parsing `<div x={1, 2} />` as the comma operator is not a legal production in a JSX Expression

Fixes (mitigates?) bug #5991
2015-12-08 09:53:47 -08:00
SaschaNaz
595f134e8b space around arrow 2015-12-09 00:02:10 +09:00
SaschaNaz
34b303a9c5 directly expose nodeWillIndentChild 2015-12-08 21:39:46 +09:00
Iain Monro
46f1a2cc5d Revert change to abstract-method-with-body error location 2015-12-08 12:25:45 +00:00
SaschaNaz
c8958dece0 Merge remote-tracking branch 'refs/remotes/Microsoft/master' 2015-12-08 16:17:54 +09:00
Zhengbo Li
da009c5b21 update lib.d.ts from TSJS repo 2015-12-07 22:28:02 -08:00
Mohamed Hegazy
64681394d8 Merge pull request #5981 from plantain-00/issue4448-2
Improve 'Cannot compile modules unless the '--module' flag is provided.' message
2015-12-07 20:03:14 -08:00
Wesley Wigham
be6e341d2a Fix narrowing, interfaces. Expose issue with generic instantiation 2015-12-07 18:16:05 -08:00
yaoyao
e95ae4f100 Improve 'Cannot compile modules unless the '--module' flag is provided.' message 2015-12-08 08:56:41 +08:00
York Yao
bf8812ee57 Merge pull request #1 from Microsoft/master
update
2015-12-08 07:21:48 +08:00
Daniel Rosenwasser
b4f4dadeb6 Merge pull request #5979 from DanCorder/5058
Fix for #5058 - Exclude implemented interface functions from autocompletion suggestions.
2015-12-07 15:06:53 -08:00
Dan Corder
c6feaa016a Remove unnecessary I2 from test case 2015-12-07 22:43:44 +00:00
Ryan Cavanaugh
7c1ef22cff Merge pull request #5974 from RyanCavanaugh/fix5955
Identify JSX closing tags as identifiers so they emit correctly
2015-12-07 12:40:39 -08:00
Ryan Cavanaugh
05c17032a9 Actually include the fix.... 2015-12-07 11:57:54 -08:00
Ryan Cavanaugh
c97dffff3b Support 'this' in inferred method bodies 2015-12-07 11:55:30 -08:00
Dan Corder
ff4147af01 Fix for #5058 - Exclude implemented interface functions from autocompletion suggestions. 2015-12-07 19:47:56 +00:00
Vladimir Matveev
2dbf621e97 merge with origin/master, add trace message with type of 'typings' field is not 'string' 2015-12-07 11:40:35 -08:00
Ryan Cavanaugh
04f8c32d32 Identify JSX closing tags as identifiers so they emit correctly
Fixes bug #5955
2015-12-07 11:07:37 -08:00
Nathan Shively-Sanders
31f56fdbfd Merge pull request #5973 from Microsoft/improve-type-of-Promise.all
Explicitly list tuple overloads for `Promise.all`.
2015-12-07 10:19:57 -08:00
Mohamed Hegazy
a405afd40c Merge pull request #5971 from pimterry/typings-non-string
Gracefully handle errors where 'typings' is not a string (fixes #4828)
2015-12-07 10:03:22 -08:00
Nathan Shively-Sanders
3bf39d6df1 Explicitly list tuple overloads for Promise.all.
Previously, the array type would infer a union type for multiple arguments
of differing types. The original overload remains, but I added 9
tuple-based overloads to support up to 10 heterogeneously-typed arguments.
2015-12-07 09:51:00 -08:00
Iain Monro
e22863238a Limit error reporting for methods to the method name 2015-12-07 17:37:27 +00:00
Mohamed Hegazy
37c883d6e8 Merge pull request #5970 from DanCorder/5497
Fix for issue #5947
2015-12-07 09:37:15 -08:00
Tim Perry
384ee18c7b Gracefully handle errors where 'typings' is not a string (fixes #4828) 2015-12-07 18:25:25 +01:00
Dan Corder
57c595a49d Fix for issue #5947 2015-12-07 16:26:53 +00:00
Daniel Rosenwasser
2ef436f082 Merge pull request #5559 from MartyIX/issue-4045
Improve error messages for property declarations
2015-12-07 01:12:05 -08:00
Anders Hejlsberg
30dbf9c48e Addressing CR feedback 2015-12-06 15:51:51 -08:00
Anders Hejlsberg
6fcceb491b Fix linting errors 2015-12-05 17:09:51 -08:00
Anders Hejlsberg
2e56012ac3 Accepting new baselines 2015-12-05 16:57:22 -08:00
Anders Hejlsberg
c700bf9e7d Fix length check in typeArgumentsRelatedTo 2015-12-05 16:57:02 -08:00
Anders Hejlsberg
99e6542842 Merge branch 'master' into typeParametersAsConstraints
Conflicts:
	tests/baselines/reference/functionConstraintSatisfaction2.errors.txt
2015-12-05 10:42:25 -08:00
Anders Hejlsberg
3ce91c438a Merge pull request #5942 from Microsoft/fixUnionToUnionTypeInference
Fix union/union or intersection/intersection type inference
2015-12-05 09:28:18 -08:00
Anders Hejlsberg
6901a98c85 Adding a bit more text to comments 2015-12-05 08:53:21 -08:00
vladima
bb9498f72f Merge remote-tracking branch 'origin/master' into pathMappingModuleResolution 2015-12-04 21:28:57 -08:00
Wesley Wigham
4735c00f05 Merge pull request #5420 from weswigham/undefined-unique
Error on redeclarations of undefined
2015-12-04 17:43:12 -08:00
Anders Hejlsberg
ae9d93b41a Adding test 2015-12-04 16:05:01 -08:00
Anders Hejlsberg
e6259a5570 Fix union/union and intersection/intersection type inference 2015-12-04 16:04:47 -08:00
Wesley Wigham
cb4a40867e add baselines 2015-12-04 15:44:35 -08:00
Wesley Wigham
00576527bd break down tests, make more clear whats doing done, remove specific logic from mergeSymbolTable 2015-12-04 15:41:11 -08:00
Ryan Cavanaugh
fcd00a59d2 Simplified JS prototype class inference 2015-12-04 14:58:32 -08:00
Nathan Shively-Sanders
b1fac590c3 Merge pull request #5934 from Microsoft/inherit-construct-signature-from-extended-interface
Inherit construct signature from extended interface
2015-12-04 14:23:07 -08:00
Wesley Wigham
63fef5083a Merge branch 'master' into undefined-unique 2015-12-04 14:21:35 -08:00
Wesley Wigham
9b441d8343 Merge pull request #5148 from weswigham/duplicate-export-behavior
Make export var or export *'s with duplicate identifiers an error
2015-12-04 14:18:58 -08:00