4011 Commits

Author SHA1 Message Date
Richard Knoll
a26d3108c2 Merge remote-tracking branch 'origin/master' into import_completions_pr 2016-09-06 11:04:39 -07:00
Anders Hejlsberg
0536fccd9a Add repro from #10697 2016-09-04 11:43:35 -07:00
Andy Hanson
cbd00b9a92 Use undefined instead of empty array, and check for existence of "node_modules/@types" instead of just for "node_modules". 2016-09-02 07:31:14 -07:00
Andy Hanson
0e8e5ec3e5 Search up for all node_modules directories available 2016-09-02 07:07:43 -07:00
Andy Hanson
c5c6acf883 Update test baselines: We no longer search in node_modules/@types if it does not exist. 2016-09-01 10:50:05 -07:00
Richard Knoll
c742d16ff1 Merge remote-tracking branch 'origin/master' into import_completions_pr 2016-09-01 10:46:21 -07:00
Andy Hanson
22ba111e66 Search for node_modules in parent directories when getting type roots. 2016-09-01 09:25:20 -07:00
Yui
0b95731184 Fix 10408 : Better error message for set/get with noImplicitAny error (#10597)
* Giving more explicit error message when there is no-implicit-any on get/set accessor

* Update error message number

* Add new test and baselines

* Address PR: assert that getter must existed

* Address PR: undo renumbering of error messages
2016-08-30 16:07:36 -07:00
Daniel Rosenwasser
0485bb6b56 Merge pull request #10506 from Microsoft/ctorTag
Issue error when tagging templates and decorating with only-constructable entities
2016-08-28 22:42:04 -07:00
Nathan Shively-Sanders
3f8cd82301 Update other tests and baselines 2016-08-26 13:30:59 -07:00
Nathan Shively-Sanders
0a985ee287 Parse untyped object type members separated by ','
Previously if the first member was untyped and the separator was ',',
then parsing would fail.
2016-08-26 13:25:19 -07:00
Ryan Cavanaugh
0116abdcf2 First in UMD global wins
Fixes #9771
2016-08-26 08:49:43 -07:00
Mohamed Hegazy
c72f5e28e8 Merge pull request #10543 from Microsoft/port10212
Port #10212
2016-08-25 21:01:10 -07:00
Nathan Shively-Sanders
0041d5ce79 Merge pull request #10538 from Microsoft/find-declarations-of-js-module-export
Fix crash when checking module exports for export=
2016-08-25 16:14:13 -07:00
Yui
15ff0f7956 [Release 2.0] fix10179: 2.0 emits optional class properties defined in constructors, which breaks compatibility (#10212)
* Do not emit "?" for in property declaration in .d.ts when the property is declared as optional parameter property declaration

* Update baselines
2016-08-25 12:17:39 -07:00
Nathan Shively-Sanders
6ee749f8b3 Get rid of absolute paths 2016-08-25 11:02:26 -07:00
Nathan Shively-Sanders
751b0a65de Clean up maxNodeModuleJsDepth test 2016-08-25 10:25:17 -07:00
Nathan Shively-Sanders
c0309fa78e Fix crash when checking module exports for export=
Also make maxNodeModuleJsDepth default to 0 so that incorrect tsconfigs
now let the compiler spend less time compiling JS that is found in
node_modules (especially since most people will already have the d.ts
and want ignore the JS anyway). jsconfig still defaults to 2.
2016-08-25 09:21:31 -07:00
Daniel Rosenwasser
5ce285c367 Accepted baselines. 2016-08-23 11:30:57 -07:00
Daniel Rosenwasser
d6ec5f2979 Accepted baselines. 2016-08-23 11:14:33 -07:00
Nathan Shively-Sanders
ddb5a00410 Merge pull request #10446 from YuichiNukiyama/fix10351
Add error message
2016-08-23 09:34:20 -07:00
Yuichi Nukiyama
590755b8a0 change error message 2016-08-23 21:54:01 +09:00
Daniel Rosenwasser
310e9c3a51 Accepted baselines. 2016-08-22 23:25:37 -07:00
Daniel Rosenwasser
e7798c002e Accepted baselines. 2016-08-22 23:10:16 -07:00
Nathan Shively-Sanders
93de502656 Merge pull request #10486 from Microsoft/allowSyntheticDefaultImports-resolves-to-module
allowSyntheticDefaultImports resolves to modules instead of variables
2016-08-22 16:50:55 -07:00
Nathan Shively-Sanders
f028fa3f52 Merge pull request #9746 from Microsoft/instantiate-this-for-contextually-typed-type-parameters
Instantiate this for contextually typed type parameters
2016-08-22 16:47:13 -07:00
Yui
36130ffa64 Fix 10472: Invalid emitted code for await expression (#10483)
* Properly emit await expression with yield expression

* Add tests and update baselines

* Move parsing await expression into parse unary-expression

* Update incorrect comment
2016-08-22 16:37:04 -07:00
Nathan Shively-Sanders
046b55e9f1 allowSyntheticDefaultImports resolves to modules instead of variables
Fixes #10429 by improving the fix in #10096
2016-08-22 16:27:44 -07:00
Anders Hejlsberg
3fb0840e48 Merge pull request #10466 from Microsoft/tupleTypeReferences
Unify representation of tuples and other generic types
2016-08-22 15:30:46 -07:00
Nathan Shively-Sanders
a0137597f9 Merge pull request #10399 from Microsoft/jsdoc-never-undefined-null-types
JSDoc supports null, undefined and never types
2016-08-22 13:48:37 -07:00
Andy Hanson
92eb8df68c Allow "typings" in a package.json to be missing its extension (but also allow it to have an extension) 2016-08-22 13:03:49 -07:00
Anders Hejlsberg
2e8d11e9c0 Accept new baselines 2016-08-21 17:01:07 -07:00
Yuichi Nukiyama
bc0c137a89 remove extra code 2016-08-20 21:36:17 +09:00
Yuichi Nukiyama
0c01874b31 follow advise 2016-08-20 21:24:46 +09:00
Yuichi Nukiyama
806e142cbf Add error message
Add error message when trying to relate primitives to the boxed/apparent
backing types.
2016-08-20 12:36:57 +09:00
Richard Knoll
473be82572 Merge remote-tracking branch 'origin/master' into import_completions_pr 2016-08-19 16:59:48 -07:00
Wesley Wigham
0168ab2051 Check return code paths on getters (#10102)
* Check return paths on getters

* Remove TODO comment
2016-08-19 13:34:06 -07:00
Andy
d2d5d42359 Merge pull request #9646 from Microsoft/no_ts_extension
Don't allow `.ts` to appear in an import
2016-08-19 06:49:33 -07:00
Andy Hanson
b482fa58f4 Merge branch 'master' into cast_of_await 2016-08-19 06:16:57 -07:00
Andy Hanson
b452469419 Fix tests 2016-08-19 06:14:28 -07:00
Andy Hanson
297cb50cbf Merge branch 'master' into no_ts_extension 2016-08-19 06:11:46 -07:00
Mohamed Hegazy
a621c09606 Merge pull request #8241 from Microsoft/noImplicitAnyDestructuring
Do not report errors of implicit any during contexual type checking of binding pattern element
2016-08-18 16:18:52 -07:00
Andy Hanson
2e572201fd Add more tests for export = foo.bar. 2016-08-18 07:38:20 -07:00
Nathan Shively-Sanders
aa834d7f17 JSDoc supports null, undefined and never types 2016-08-17 15:49:57 -07:00
Yui
da8fc5d5a9 Fix 10289: correctly generate tsconfig.json with --lib (#10355)
* Separate generate tsconfig into its own function and implement init with --lib

# Conflicts:
#	src/compiler/tsc.ts

* Add tests and baselines; Update function name

Add unittests and baselines
Add unittests and baselines for generating tsconfig

Move unittest into harness folder

Update harness tsconfig.json

USe correct function name

* Use new MapLike interstead. Update unittest

# Conflicts:
#	src/compiler/commandLineParser.ts

* Update JakeFile

* Add tests for incorrect cases

* Address PR : remove explicity write node_modules
2016-08-17 15:23:28 -07:00
Mohamed Hegazy
5843bbbd76 Merge branch 'noErrorTruncation' of https://github.com/gcnew/TypeScript into gcnew-noErrorTruncation
# Conflicts:
#	src/compiler/diagnosticMessages.json
2016-08-17 14:22:01 -07:00
Nathan Shively-Sanders
0f483d6546 Assign and instantiate contextual this type if not present 2016-08-17 14:21:49 -07:00
Anders Hejlsberg
4880e7ea9e Merge pull request #10396 from Microsoft/fixNestedLoopTypeGuards
Fix nested loop type guards
2016-08-17 14:05:02 -07:00
Mohamed Hegazy
ef2d6ab014 Merge pull request #10342 from Microsoft/ambient_shorthand_is_explicit_any
Treat ambient shorthand declarations as explicit uses of the `any` type
2016-08-17 13:33:13 -07:00
Anders Hejlsberg
b93cdecdf5 Add regression test 2016-08-17 13:30:13 -07:00