Andy Hanson
c90897ccdd
Treat "." and ".." as relative module names
2016-07-13 06:51:00 -07:00
Tetsuharu OHZEKI
1ee3f99e55
Fix #9550 : exclude 'this' type parameters from unusedParameters checks.
2016-07-08 02:23:42 +09:00
Mohamed Hegazy
bf240d2c69
Fix #9531 : account for async as an contextual keyword when parsing export assignments
2016-07-06 14:08:21 -07:00
Anders Hejlsberg
829c3bc264
Add regression test
2016-07-04 20:38:00 -07:00
Mohamed Hegazy
1d03be0f90
Merge pull request #9464 from Microsoft/excludeUnderscoreFromUnusedParamterChecks
...
Fix #9458 : exclude parameters starting with underscore from unusedParamter checks
2016-07-01 16:04:50 -07:00
Mohamed Hegazy
5de7ca2cb1
Fix #9458 : exclude parameters starting with underscore from unusedParamter checks
2016-06-30 19:35:30 -07:00
Mohamed Hegazy
9429176c63
Merge branch 'release-2.0'
2016-06-30 17:33:25 -07:00
Mohamed Hegazy
54b4bef8c8
Handel Swtich statements
...
check for locals on for statments
only mark private properties
2016-06-30 15:18:17 -07:00
Andy
ae4bb62dbe
Merge pull request #9445 from Microsoft/export_default_async_function
...
Parse `export default async function` as a declaration
2016-06-30 13:55:24 -07:00
Mohamed Hegazy
07d7ec3a92
Merge pull request #9422 from Microsoft/allow-destructuring-assignment-with-default-of-undefined-optional-property
...
Destructuring assignment removes undefined from type when default value is given
2016-06-30 12:41:06 -07:00
Mohamed Hegazy
1fa69caf13
handel private properties correctelly
2016-06-30 10:38:59 -07:00
Andy Hanson
4195eb3670
Parse export default async function as a declaration
2016-06-30 07:11:36 -07:00
Mohamed Hegazy
8fb3b25c1e
add tests
2016-06-29 23:46:50 -07:00
Mohamed Hegazy
f81a8e7382
Add tests
2016-06-29 14:08:20 -07:00
Mohamed Hegazy
62f47fe995
Add tests
2016-06-29 13:35:10 -07:00
Nathan Shively-Sanders
c5e680c8be
Destructuring assignment removes undefined from type when default value is given
2016-06-29 09:12:50 -07:00
Nathan Shively-Sanders
8ff873e7a6
Fix crash in async functions when targetting ES5.
...
When targetting ES5 and with --noImplicitReturns,
an async function whose return type could not be determined would cause
a compiler crash.
2016-06-28 13:34:01 -07:00
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