Граф коммитов

36176 Коммитов

Автор SHA1 Сообщение Дата
Anders Hejlsberg d85df9e9fa Addressing CR feedback.
Adding comment to explain source type instantiation.
Adding a test case.
2014-07-22 10:54:20 -07:00
Dan Quirk 99813d04d1 Merge pull request #180 from DickvdBrink/no-global-modules
Fixes browserify task when browserify isn't installed globally.
2014-07-22 09:58:28 -07:00
Daniel Rosenwasser f37cf1647d Fixed misleading comment
As per Cyrus's comment in #173.
2014-07-21 23:42:23 -07:00
Dick van den Brink 69d7a1085d Add node_modules\.bin to path.
Fixes browserify task when browserify isn't installed globally.
2014-07-22 07:08:27 +02:00
Jason Freeman 8cbe88b501 Give a semantic error on with statements 2014-07-21 17:10:04 -07:00
Daniel Rosenwasser 9bb17a66cd Merge pull request #173 from Microsoft/singleDefaultClause
Check for multiple 'default' clauses.
2014-07-21 16:54:44 -07:00
Daniel Rosenwasser 0f4e887155 Changed error message for annotated functions lacking return statements. 2014-07-21 16:42:48 -07:00
Daniel Rosenwasser 1728f7c654 Changed check on annotated functions/getters to only look for return statements. 2014-07-21 16:42:46 -07:00
Daniel Rosenwasser 69018e635a Minor renaming. 2014-07-21 16:42:45 -07:00
Daniel Rosenwasser b7343c214d Removed TODO relating to the task I just fixed. 2014-07-21 16:42:43 -07:00
Daniel Rosenwasser d33127ad34 Complain when a non-void/any function lacks a return expresson.
In effect this fixes #62.

Also
    - Changes the error message for get accessors lacking return expressions.
    - Actually checks for return expressions instead of return statements for get-accessors.
    - Removes fancy quotes.
    - Corrects errors in the compiler caught by the new check.
    - Simplified `checkAndAggregateReturnTypes` by extracting it out to `visitReturnStatements`.
2014-07-21 16:42:41 -07:00
unknown b24b28eaaa Added contextual signature instantiation during type inference.
Fixes #88.
2014-07-21 16:38:02 -07:00
Mohamed Hegazy 42f6a995ec Merge pull request #169 from DickvdBrink/browser-test-patch
Fix browser tests not working when not cloned in TypeScript directory
2014-07-21 16:30:07 -07:00
Daniel Rosenwasser fa04d4d699 Changed error spans for duplicate default clauses, added tests for it. 2014-07-21 15:57:30 -07:00
Daniel Rosenwasser 4ac676f718 Added checking for switch statements with multiple default clauses. 2014-07-21 15:19:54 -07:00
Dick van den Brink 4635215209 Fix browser tests not working when not cloned in TypeScript directory 2014-07-22 00:13:48 +02:00
unknown c3624c9b24 Addressing CR feedback. 2014-07-21 11:31:37 -07:00
Anders Hejlsberg a25d3c1865 Accepting baselines. 2014-07-21 11:26:26 -07:00
Anders Hejlsberg 24dbe2dd79 Improving code and addressing code review feedback.
Binder now builds more generally useful linked list of all container declarations.
Emitter uses original spelling when creating unique local container names.
2014-07-21 11:26:24 -07:00
Anders Hejlsberg 175dba4977 Ensuring local module names are unique in emit.
Fixes #41 and #42.
2014-07-21 11:23:08 -07:00
Anders Hejlsberg 393be4687c Improving code and addressing code review feedback.
Binder now builds more generally useful linked list of all container declarations.
Emitter uses original spelling when creating unique local container names.
2014-07-21 11:17:47 -07:00
Anders Hejlsberg 85225c8f29 Ensuring local module names are unique in emit.
Fixes #41 and #42.
2014-07-21 11:17:44 -07:00
Mohamed Hegazy 5d8773aa25 Update README.md
Fix link to node
2014-07-21 10:40:39 -07:00
Mohamed Hegazy b7d525d394 Update README.md
Update the building and usage instructions
2014-07-21 10:38:22 -07:00
Jason Freeman 585d9bdc5f Condense all error spans to just the name for variable, class, interface, module, enum and enum member 2014-07-21 09:55:43 -07:00
Jason Freeman 3580a999c8 Address PR feedback 2014-07-21 09:40:41 -07:00
Jason Freeman c2fc52e92b Update baselines for not emitting when module flag is not specified 2014-07-21 09:40:39 -07:00
Jason Freeman 837a8935c7 Remove error about missing module flag from checker 2014-07-21 09:40:38 -07:00
Jason Freeman 91d31c7f51 Add error about missing module flag to createProgram 2014-07-21 09:38:59 -07:00
Vladimir Matveev f7d7623706 Merge pull request #155 from Microsoft/check_this
added collision check for '_this'
2014-07-20 21:22:58 -07:00
Vladimir Matveev 96cf47d10f fixed typo in comment 2014-07-20 21:22:18 -07:00
Vladimir Matveev ea46b974e8 Merge pull request #157 from Microsoft/use_strict_in_functions
emit 'use strict' at the beginning of the function
2014-07-18 22:20:23 -07:00
Sheetal Nandi 9fd95fcb95 Report errors if the type parameter uses constraint that is using private type/module
Fixes #86
2014-07-18 18:11:04 -07:00
Sheetal Nandi 09ec1bb9ae Report error on Class/Interface heritage clause if it cant be accessed
Fixes #78 and #83
2014-07-18 18:07:38 -07:00
Sheetal Nandi 999b7fed92 Checker and emitter changes to report errors on inaccessibility of symbols when writing types in declaration file 2014-07-18 18:06:37 -07:00
Sheetal Nandi bbb36dc933 Make the symbol writing api on the text writer 2014-07-18 17:50:12 -07:00
Vladimir Matveev 36c22d10c7 emit 'use strict' at the beginning of the function 2014-07-18 16:59:52 -07:00
Daniel Rosenwasser 1ec29c6557 Addressed code review feedback. 2014-07-18 16:55:20 -07:00
Daniel Rosenwasser 819ea95953 Better error recovery for when an arrow function is missing a curly brace.
Also better identification of arrow function expressions.
2014-07-18 16:55:18 -07:00
Vladimir Matveev 30ecd19029 added collision check for '_this' 2014-07-18 16:16:28 -07:00
Sheetal Nandi 1abedc30c4 Merge pull request #142 from Microsoft/declFileErrorReporting
Compile the generated decl files and report those errors in the baseline so we can verify the result of dts file for correctness
2014-07-18 12:42:07 -07:00
Sheetal Nandi e0ce0e97d5 Updating with code review feedback 2014-07-18 12:32:27 -07:00
Mohamed Hegazy 91b8a4531f Merge pull request #145 from Microsoft/restConstructorParam
Issue #144: Do not emit the name of the rest paramter in constructors
2014-07-18 09:57:49 -07:00
Mohamed Hegazy c9c0166b04 fix typo in function name 2014-07-18 09:56:18 -07:00
Sheetal Nandi 2c7946ee00 Pulled out the d.ts compilation into separate it block 2014-07-17 22:43:59 -07:00
Sheetal Nandi 3665e45d19 Merge pull request #141 from Microsoft/typoInDeclFileEmit
Fixed the typo in declaration emitter of implements clause
2014-07-17 22:21:51 -07:00
Mohamed Hegazy b744633656 Issue# 144: Do not emit the name of the rest paramter in constructors 2014-07-17 19:54:21 -07:00
Vladimir Matveev 42234668ef Merge pull request #140 from Microsoft/prologuedirectives
emit prologue directives as first lines in file, fixes #44
2014-07-17 18:36:59 -07:00
Vladimir Matveev 52ab9f110e added new strict mode test 2014-07-17 18:32:26 -07:00
Sheetal Nandi d09e5508e2 Report global errors and re-enable assert for the number of errors reported 2014-07-17 18:16:40 -07:00