Yui
be2ca35b00
Fix 8467: Fix incorrect emit for accessing static property in static propertyDeclaration ( #8551 )
...
* Fix incorrect emit for accessing static property in static propertyDeclaration
* Update tests and baselines
* Update function name
* Fix when accessing static property inside arrow function
* Add tests and baselines
2016-06-24 17:40:07 -07:00
Sarangan Rajamanickam
a0a96667ed
Unused identifiers compiler code ( #9200 )
...
* Code changes to update references of the Identifiers
* Added code for handling function, method and coonstructor level local variables and parameters
* Rebased with origin master
* Code changes to handle unused private variables, private methods and typed parameters
* Code changes to handle namespace level elements
* Code changes to handle unimplemented interfaces
* Code to optimize the d.ts check
* Correct Code change to handle the parameters for methods inside interfaces
* Fix for lint error
* Remove Trailing whitespace
* Code changes to handle interface implementations
* Changes to display the error position correctly
* Compiler Test Cases
* Adding condition to ignore constructor parameters
* Removing unnecessary tests
* Additional changes for compiler code
* Additional changes to handle constructor scenario
* Fixing the consolidated case
* Changed logic to search for private instead of public
* Response to PR Comments
* Changed the error code in test cases as result of merge with master
* Adding the missing file
* Adding the missing file II
* Response to PR comments
* Code changes for checking unused imports
* Test Cases for Unused Imports
* Response to PR comments
* Code change specific to position of Import Declaration
* Code change for handling the position for unused import
* New scenarios for handling parameters in lambda function, type parameters in methods, etc.
* Additional scenarios based on PR comments
* Removing a redundant check
* Added ambient check to imports and typeparatmeter reporting
* Added one more scenario to handle type parameters
* Added new scenario for TypeParameter on Interface
* Refactoring the code
* Added scenario to handle private class elements declared in constructor.
* Minor change to erro reporting
2016-06-24 15:38:39 -07:00
Ryan Cavanaugh
14774d6438
Merge pull request #9305 from RyanCavanaugh/fix9293
...
Properly detect circular constructor-declared `this` properties (JS)
2016-06-23 10:30:07 -07:00
Nathan Shively-Sanders
9134ed3b7d
Merge pull request #9303 from Microsoft/signatures-use-jsdoc-for-minArgumentCount
...
Signatures use JSDoc to determine optionality
2016-06-22 15:04:14 -07:00
Ron Buckton
12bfb7e987
Merge pull request #9204 from Microsoft/promiseAndAsyncUpdates
...
Update Promise and PromiseLike, fix async functions issues with never.
2016-06-21 18:09:28 -07:00
Ryan Cavanaugh
0e3ffb5fbe
Don't crash when JS class property is self-referential.
...
Fixes #9293
2016-06-21 15:40:26 -07:00
Nathan Shively-Sanders
553d727148
Signatures use JSDoc to determine optionality
2016-06-21 13:01:26 -07:00
Mohamed Hegazy
dfed7625af
Add libcheck tests
2016-06-18 12:40:22 -07:00
Mohamed Hegazy
2b4378daa3
Merge pull request #9180 from HerringtonDarkholme/interface
...
[Fix #9004 ] Improve error message for extending interface
2016-06-17 15:29:26 -07:00
Herrington Darkholme
2a9636b1be
address code style
2016-06-17 11:31:56 +08:00
Herrington Darkholme
877977a450
add new tests for extends interface
2016-06-17 11:07:18 +08:00
Herrington Darkholme
c721b5f981
add tests & add branches for module interface
2016-06-17 01:19:34 +08:00
Ron Buckton
fb9806b5f9
Updates type definitions for Promise and PromiseLike, fixes issues in async functions due to introduction of never type.
...
Fixes #9193 .
2016-06-15 17:36:27 -07:00
Andy
a1e0504ed4
Merge pull request #9189 from Microsoft/js_property_declaration
...
Allow property declarations in .js files
2016-06-15 12:20:41 -07:00
Mohamed Hegazy
97be083d99
Merge pull request #9100 from Microsoft/Fix9098
...
Fix #9098 : report missing function implementation errors for merged …
2016-06-15 11:53:31 -07:00
Andy Hanson
9b6472aec0
Remove old test
2016-06-15 11:00:27 -07:00
Anders Hejlsberg
28b241e615
Add regression test
2016-06-15 09:28:45 -07:00
Daniel Rosenwasser
8917ddf8a1
Merge pull request #9151 from Microsoft/commonjsShorthands
...
Fix emit for shorthand properties when they refer to CommonJS exports.
2016-06-14 10:32:20 -07:00
Andy Hanson
f6cee27af9
Emit 'Promise' decorator metadata return type for async methods
2016-06-14 06:11:00 -07:00
Andy
b92a8f2b53
Merge pull request #9144 from Microsoft/decorator_metadata_rest_parameter
...
Fix decorator metadata emit for rest arg with no type
2016-06-14 05:43:24 -07:00
Daniel Rosenwasser
318e957377
Added tests.
2016-06-13 23:33:23 -07:00
Andy Hanson
c0c707c37f
Fix decorator metadata emit for rest arg with no type
2016-06-13 13:16:13 -07:00
Mohamed Hegazy
e86f1837d0
Fix #9098 : report missing function impelementation errors for merged classes and namespaces
2016-06-11 13:12:08 -07:00
Ryan Cavanaugh
576f09f531
Merge
2016-06-10 15:47:51 -07:00
Ryan Cavanaugh
9827b638b4
Implicit type inclusion changes
2016-06-10 15:44:11 -07:00
Mohamed Hegazy
97d7aa5fb5
Merge pull request #9042 from Microsoft/ES6ModulesES5Target
...
Fix #6319 : Add support for `--t: es5` and `--m es6`
2016-06-10 10:23:39 -07:00
Nathan Shively-Sanders
2b46656b4a
Merge pull request #9061 from Microsoft/fix-this-resolution-in-parameter-initializers
...
Fix this resolution in parameter initializers
2016-06-09 16:20:45 -07:00
Mohamed Hegazy
f0a430aef8
Code review comments
2016-06-09 15:52:17 -07:00
Nathan Shively-Sanders
e307295fb9
Resolve function-this in parameter initialisers when explicitly provided
2016-06-09 15:20:51 -07:00
Yui
574a64dec9
Fix7334 Disallow async in functionExpression and ArrowFunction ( #9062 )
...
* Error when using async modifier in function-expression and arrow-function when target es5
* Add tests and baselines
2016-06-09 15:01:08 -07:00
Andy Hanson
7a2ef428cd
Contextually type return statement in async function
2016-06-09 10:55:45 -07:00
Mohamed Hegazy
475c1c24fc
Add more tests
2016-06-08 17:48:37 -07:00
Mohamed Hegazy
33137f68c5
Add more tests for target=es5 module=es6
2016-06-08 16:46:55 -07:00
Mohamed Hegazy
8360bc7961
Add handleing for classes
2016-06-08 16:43:56 -07:00
Nathan Shively-Sanders
9fac99e692
Add test case
...
The test passes in 1.8 and fails in master.
2016-06-08 14:23:42 -07:00
Vladimir Matveev
8b7fb8e7e8
Merge pull request #8739 from evansb/fix-8738
...
Fix #8738 : Handles Re-assignment of Exported Clause Member
2016-06-07 16:23:02 -07:00
Andy
849ab7c5ec
Merge pull request #8942 from Microsoft/param_trailing_commas
...
Allow trailing commas in function parameter and argument lists
2016-06-07 07:35:30 -07:00
Anders Hejlsberg
3b1effb7df
Adding regression test
2016-06-04 14:50:37 -07:00
Anders Hejlsberg
87ee72b25a
Add regression test
2016-06-03 17:31:28 -07:00
Andy Hanson
8b0974a77e
Update tests
2016-06-03 09:29:21 -07:00
Anders Hejlsberg
706683d51b
Add regression test
2016-06-02 06:54:27 -07:00
Vladimir Matveev
92938cd8df
check that default clause is non-empty in reachability checks
2016-05-27 15:38:59 -07:00
Nathan Shively-Sanders
154729d40e
Merge pull request #8770 from Microsoft/apparent-members-for-type-parameters-constrained-by-any
...
Apparent members for type parameters constrained by any
2016-05-26 16:26:28 -07:00
Mohamed Hegazy
b70d07954c
Merge pull request #8845 from Microsoft/Fix8834
...
Fix #8834 : exclude paramters and variables from flag checks
2016-05-26 14:35:50 -07:00
Nathan Shively-Sanders
0a623f8a71
Merge pull request #8822 from Microsoft/excess-property-check-numeric-indexers
...
Excess property check numeric indexers
2016-05-26 13:39:29 -07:00
Mohamed Hegazy
5e49b57fea
Fix #8834 : exclude paramters and variables from flag checks
2016-05-26 13:00:38 -07:00
Mohamed Hegazy
cbbc0ca8de
Merge branch 'master' into Fix8795-1
2016-05-25 12:35:58 -07:00
Nathan Shively-Sanders
5138e8be8e
Correct tests and update baselines.
...
A lot of tests used non-numeric property names for object literals that
are contextually typed only by a numeric indexer.
2016-05-25 11:37:10 -07:00
Anders Hejlsberg
6a27289b2d
Add test
2016-05-25 11:17:03 -07:00
Nathan Shively-Sanders
89fb304eee
Add test case for excess checking of numeric properties
2016-05-25 10:18:49 -07:00