795 Commits

Author SHA1 Message Date
Andy Hanson
b65729e5b2 Merge branch 'master' into common_source_directory 2016-11-11 13:10:29 -08:00
Zhengbo Li
4dc58dde38 Exclude js files in non-configured projects compile-on-save emitting (#12118)
* Exclude js files in non-configured projects CoS emitting

* remove unnecessary method
2016-11-10 14:12:24 -08:00
Sheetal Nandi
c87bce1119 Merge pull request #11978 from Microsoft/errorReportingInJsFile
Report all the js file errors and skip only the nodes that are not allowed in JS file
2016-11-10 10:37:16 -08:00
Nathan Shively-Sanders
25462c9571 Merge pull request #12028 from Microsoft/object-rest
Object rest
2016-11-10 09:18:13 -08:00
Sheetal Nandi
78bb276216 Merge branch 'master' into errorReportingInJsFile 2016-11-09 11:38:11 -08:00
Nathan Shively-Sanders
567f5636e3 Create spread property types eagerly
This avoids the need for a synthetic symbol and later code called from
getTypeOfSymbol.
2016-11-07 13:02:05 -08:00
Nathan Shively-Sanders
609cd0016b Merge branch 'object-spread' into object-rest 2016-11-07 11:10:29 -08:00
Nathan Shively-Sanders
a84c7aeea4 Rename SpreadElementExpression -> SpreadAssignment
and SpreadExpression (formerly SpreadElementExpression) -> SpreadElement
2016-11-07 08:36:03 -08:00
Andy Hanson
2eca0af91b Leave files from node_modules out when calculating getCommonSourceDirectory 2016-11-03 07:50:07 -07:00
Nathan Shively-Sanders
a7c18367ca Parse, bind and check rest elements 2016-11-02 14:55:24 -07:00
Nathan Shively-Sanders
2ae6ecc1a5 Merge branch 'master' into object-spread 2016-11-02 10:57:20 -07:00
Sheetal Nandi
d896d3f8a9 Add test cases to report errors for decorators in js file 2016-11-01 11:05:09 -07:00
Anders Hejlsberg
6b28d21a82 Merge branch 'master' into keyoftypes
# Conflicts:
#	src/compiler/diagnosticMessages.json
2016-10-31 16:04:40 -07:00
Ron Buckton
4371889854 Merge pull request #11430 from Microsoft/fixAsyncReturnTypeCheck
Fix async return type check
2016-10-31 15:18:11 -07:00
Ron Buckton
884e9f47db Merge branch 'master' into fixAsyncReturnTypeCheck 2016-10-31 15:17:26 -07:00
Andy
ecb7b00e1c Forbid augmentation of untyped module (#11962)
* Forbid augmentation of untyped module

* Just use `undefined` for untyped modules
2016-10-31 15:04:22 -07:00
Anders Hejlsberg
6c205330a1 Improved error messages for invalid assignments to properties 2016-10-30 18:08:43 -07:00
Anders Hejlsberg
5515dcea34 Improved error messages for invalid assignments to identifiers 2016-10-30 16:01:15 -07:00
Andy Hanson
12f6dcefa1 Revert "Merge pull request #11354 from Microsoft/map4"
This reverts commit adfdae0dc47db5ad8248d26929a7b31cb895a539, reversing
changes made to aad663cebf6a89f7029af57d8cb6a0a011854978.
2016-10-27 15:50:21 -07:00
Nathan Shively-Sanders
58ffb4e668 Merge branch 'master' into object-spread 2016-10-27 15:29:21 -07:00
Andy Hanson
bcc0807198 Respond to PR comments 2016-10-27 13:14:56 -07:00
Andy Hanson
867093707b Merge branch 'master' into map4 2016-10-27 12:36:50 -07:00
Andy Hanson
dec5f4b39a Merge branch 'master' into map4 2016-10-27 12:21:06 -07:00
Andy
6f519d8a27 Merge pull request #11899 from Microsoft/optional_extension
Make `extension` property of `ResolvedModule` optional
2016-10-27 12:05:29 -07:00
Andy Hanson
0f8003fb39 Make extension property of ResolvedModule optional; introduce ResolvedModuleFull interface for when the extension is provided. 2016-10-27 11:35:20 -07:00
Andy Hanson
4937d9c8b4 Allow untyped imports 2016-10-27 08:54:19 -07:00
Andy
b5ba3152ff Merge pull request #11704 from Microsoft/refactor_module_resolution
Return both ts and js results from module resolution
2016-10-27 06:03:29 -07:00
Ron Buckton
e6bea90a1f Merge pull request #11769 from Microsoft/moveModuleTransformToEnd
Move module transformers to end of transformations
2016-10-26 17:51:34 -07:00
Andy Hanson
c958c47ef5 Merge branch 'master' into map4 2016-10-26 11:05:51 -07:00
Andy Hanson
718d57ff3c Move helper functions to core (fix build) 2016-10-26 10:13:34 -07:00
Andy Hanson
9130fbd731 Merge branch 'master' into refactor_module_resolution 2016-10-26 08:27:34 -07:00
Andy Hanson
07bb2582b6 Don't require resolvedTsFileName and resolvedJsFileName, just resolvedFileName and extension. Also, change search order to do all TS searching before searching for JS. 2016-10-26 08:13:58 -07:00
Vladimir Matveev
7890f63250 use unresolved imports as a source of used typings (#11828) 2016-10-25 15:24:21 -07:00
Zhengbo Li
d0170d1ac8 Support dotted name in @typedef tag (#11695)
* Support dotted name in @typedef tag

* Use a new node flag to get rid of the extra logics

* replace jsdoc namespace node flag with optional property

* Fix linting error
2016-10-25 13:32:48 -07:00
Nathan Shively-Sanders
32af04660f Merge branch 'master' into object-spread 2016-10-24 15:46:09 -07:00
Ron Buckton
c40c7f9679 Merge branch 'master' into moveModuleTransformToEnd 2016-10-20 17:07:07 -07:00
Ron Buckton
5e2bd6b063 Move System module transform to end. 2016-10-20 16:44:51 -07:00
Andy Hanson
fab0859869 Allow destructuring in catch clauses 2016-10-20 13:35:46 -07:00
Nathan Shively-Sanders
3cbac6576c Merge branch 'master' into object-spread 2016-10-20 10:59:41 -07:00
Ron Buckton
84dc99ba1e Moved AMD/CJS/UMD transform to end 2016-10-19 16:04:53 -07:00
Andy Hanson
5e7e5421fa Add noop, notImplemented, and notYetImplemented helpers 2016-10-19 14:21:48 -07:00
Andy Hanson
a11838215c Merge branch 'master' into map4 2016-10-19 13:16:55 -07:00
Andy Hanson
df20cf33f1 Remove "ResolvedModuleFromHost" type and just make resolvedTsFileName and resolvedJsFileName optional properties
(but still automatically infer one of them to supply if the host supplied neither)
2016-10-19 12:55:57 -07:00
Andy Hanson
1d201c1add Merge branch 'master' into refactor_module_resolution 2016-10-19 09:20:45 -07:00
Nathan Shively-Sanders
f9fe01a6e3 Merge branch 'master' into object-spread 2016-10-19 09:03:51 -07:00
Andy Hanson
7685e6af15 Forbid unused locals/parameters in compiler 2016-10-18 14:00:52 -07:00
Andy Hanson
8dc9523fb0 Allow number too 2016-10-18 11:54:34 -07:00
Andy Hanson
f828bc3fae Merge branch 'master' into map4 2016-10-18 09:07:00 -07:00
Andy Hanson
1f7f67de17 Type arguments to formatStringFromArgs as strings instead of implicitly stringifying 2016-10-18 08:48:40 -07:00
Andy Hanson
b557211a37 Return both ts and js results from module resolution, and don't have moduleNameResolver responsible for omitting files based on compiler options 2016-10-18 07:09:43 -07:00