Commit graph

5638 commits

Author SHA1 Message Date
Daniel Rosenwasser 535efd1b5d Encode the conditional presence of 'error' in the type system. 2015-09-10 14:28:57 -07:00
Daniel Rosenwasser 4b15c5f628 Added error for bad argument, fixed diagnostic for '--help' message. 2015-09-10 14:23:33 -07:00
Daniel Rosenwasser fae7a129eb Assert condition to track root cause of issue. 2015-09-10 13:50:12 -07:00
Vladimir Matveev ee56e60ca0 do not emit '=' in jsx attribute if initializer is missing 2015-09-10 11:39:06 -07:00
Daniel Rosenwasser 96a815878c Merge pull request #4657 from Microsoft/emptyVariableDeclarationBindingPattern
Fix emitted code for variable statement with no bound variables
2015-09-09 16:47:45 -07:00
Mohamed Hegazy 3d8c336a4f Merge pull request #4632 from Microsoft/fixCompletionAssert
Fix completion assert
2015-09-08 15:39:19 -07:00
Daniel Rosenwasser 5297a7f319 Ensure that zero-element binding patterns don't try to reuse assigned identifiers. 2015-09-04 17:53:56 -07:00
Vladimir Matveev 97b846c444 handle jsx identifiers correctly, indent content of JsxSelfClosingElement 2015-09-04 13:03:47 -07:00
Sheetal Nandi 0573c0b006 Merge pull request #4599 from Microsoft/decoratorInferredType
If Type annotation is missing, emit design:Type as Object
2015-09-04 11:19:17 -07:00
Mohamed Hegazy a579d41a57 Do not add symbol if it is undefined 2015-09-03 13:53:00 -07:00
Vladimir Matveev ff640e415f fix 'findPrecedingToken' for jsxText 2015-09-03 13:33:22 -07:00
SaschaNaz 58c732b47d format class expression indentation 2015-09-03 13:33:05 -07:00
SaschaNaz b8071f99bc format intersection type 2015-09-03 13:32:34 -07:00
Vladimir Matveev e484305c98 allow backslashes in fileName argument of the transpile function 2015-09-03 13:31:57 -07:00
Daniel Rosenwasser fafbec60de Merge pull request #4552 from Microsoft/bettErrErrorsForObjectLiteralExcessProperties
Better error spans for object literal excess properties
2015-09-03 10:03:53 -07:00
Zhengbo Li 3c568251bb Merge pull request #4557 from gwicksted/patch-1
Add parameters to toLocaleDateString
2015-09-02 17:29:31 -07:00
Vladimir Matveev cd6152ebe6 remove 'experimental' from 'moduleResolution' command line argument 2015-09-02 10:01:28 -07:00
Sheetal Nandi 5f78d39662 If Type annotation is missing, emit design:Type as Object
Fixes #4549
2015-09-01 13:46:44 -07:00
Daniel Rosenwasser 712d5c483f Added comment, inlined function. 2015-08-31 14:53:02 -07:00
Daniel Rosenwasser 42e08686be Style. 2015-08-31 01:09:48 -07:00
Daniel Rosenwasser 19e54fe1af Improve error message spans when object literals have excess properties. 2015-08-31 01:07:30 -07:00
Anders Hejlsberg 565696217f Addressing CR feedback 2015-08-28 17:51:07 -07:00
Anders Hejlsberg 0e52555d4c Restoring union type subtype reduction 2015-08-28 17:50:39 -07:00
Ron Buckton 1ea378859c Fixes fallback checks that cause an exception during call resolution for an async function 2015-08-28 15:13:32 -07:00
Ryan Cavanaugh 90aff0c654 Use synthetic identifier during emit instead 2015-08-28 14:00:36 -07:00
Vladimir Matveev 4aec447dba Merge pull request #4488 from Microsoft/fixRWC
Move RWC runner to use Harness.IO instead of sys
2015-08-27 18:16:22 -07:00
Vladimir Matveev 24a65f4f79 merge with master 2015-08-27 17:15:49 -07:00
Vladimir Matveev 8df7cbb515 pass IO when getting default library instead of reading it to prevent
memory leaks, do not count errors in library files twice
2015-08-27 16:59:37 -07:00
Mohamed Hegazy 0369ecd213 Merge branch 'master' into mergeMasterInRelease1.6 2015-08-27 16:27:31 -07:00
Mohamed Hegazy 6cd2a47d97 Merge branch 'master' into mergeMasterInRelease1.6 2015-08-27 16:26:04 -07:00
Anders Hejlsberg 29ec6b0042 Merge pull request #4509 from Microsoft/noDedupeTupleTypes
Fix stack overflow with recursive tuple types
2015-08-27 16:25:25 -07:00
Anders Hejlsberg 5856cc5503 Merge pull request #4501 from Microsoft/checkClassExpressions
Properly check expressions in class extends clause
2015-08-27 16:21:02 -07:00
Anders Hejlsberg c56683caf3 Merge pull request #4484 from Microsoft/suppressExcessPropertyErrors
Adding -suppressExcessPropertyErrors compiler option
2015-08-27 16:20:28 -07:00
Anders Hejlsberg 98de9de281 No deduplication in union of tuple element types 2015-08-27 15:59:00 -07:00
Mohamed Hegazy 155a8870f3 Revert "Update version to 1.7"
This reverts commit 6fbf4494b5.
2015-08-27 15:49:50 -07:00
Mohamed Hegazy 6fbf4494b5 Update version to 1.7 2015-08-27 15:46:25 -07:00
Mohamed Hegazy 6975626581 Merge branch 'release-1.6' 2015-08-27 15:23:04 -07:00
Ron Buckton 89ac1940ee Fixes declaration emit for a class that extends null 2015-08-27 15:21:31 -07:00
Daniel Rosenwasser cabc0fff11 Merge pull request #4442 from SaschaNaz/formatFunctionType
Format function type (and others)
2015-08-27 14:52:52 -07:00
Yui T 5f3c7623aa Add class expression if existed to classifiable-name map 2015-08-27 14:01:27 -07:00
Ron Buckton f76528e6f7 Merge pull request #4502 from Microsoft/fixClassExtendsNullDeclEmit
Fixes declaration emit for a class that extends null
2015-08-27 13:58:54 -07:00
Yui 4a75f93934 Merge pull request #4503 from Microsoft/fixClassExpClassfication
Fix classification for class expression
2015-08-27 13:58:30 -07:00
Yui T 945eb1145d Revert change to the harness that break the unittest 2015-08-27 13:48:25 -07:00
Yui T bff8caa54c Add class expression if existed to classifiable-name map 2015-08-27 13:15:03 -07:00
Ron Buckton 08f4f3774c Fixes declaration emit for a class that extends null 2015-08-27 12:53:17 -07:00
Anders Hejlsberg ff47fa124a Property check expressions in class extends clause 2015-08-27 12:52:34 -07:00
SaschaNaz 96174ba1a7 adding tests 2015-08-27 22:59:10 +09:00
SaschaNaz b23215986c adding constructor/parenthesized type 2015-08-27 19:03:35 +09:00
SaschaNaz be97d03af0 union type rules 2015-08-27 18:26:00 +09:00
Vladimir Matveev af2a49992f Move RWC runner to use Harness.IO 2015-08-26 18:54:25 -07:00