2527 Commits

Author SHA1 Message Date
Mohamed Hegazy
8964b8e5b6 Merge branch 'master' into rootDir
Conflicts:
	tests/baselines/reference/APISample_compile.types
	tests/baselines/reference/APISample_linter.types
	tests/baselines/reference/APISample_transform.types
	tests/baselines/reference/APISample_watcher.types
2015-04-16 16:52:51 -07:00
Mohamed Hegazy
b6ef32346b Respond to code review comments 2015-04-16 16:35:48 -07:00
Daniel Rosenwasser
13c3129665 Only error in <ES6. 2015-04-16 13:08:57 -07:00
Ron Buckton
3b74503898 Merge pull request #2750 from Microsoft/fixES6Clodule
Elide var when emitting a module merged with an ES6 class
2015-04-16 11:53:24 -07:00
Jason Freeman
edf1ae6d36 Merge branch 'master' of https://github.com/Microsoft/TypeScript into destructuringFixes
Conflicts:
	src/compiler/utilities.ts
2015-04-15 17:23:12 -07:00
Jason Freeman
1cda3dc45d Fix parenthesizeForAccess to always parenthesize NewExpressions and NumberLiterals 2015-04-15 17:22:19 -07:00
CyrusNajmabadi
0b13ca4751 Merge pull request #2734 from Microsoft/singletonScanner
Use a single scanner for all parsing tasks.
2015-04-15 16:46:49 -07:00
Cyrus Najmabadi
b51230f794 CR feedback. Use a module instead. 2015-04-15 16:16:45 -07:00
Cyrus Najmabadi
ed12bef3cc Update diagnostics. 2015-04-15 15:53:24 -07:00
Cyrus Najmabadi
030276d517 Merge branch 'master' into singletonScanner 2015-04-15 15:48:59 -07:00
Jason Freeman
e05a94457e Fix up comment 2015-04-15 11:49:13 -07:00
Jason Freeman
628a5baf4a Improve error message for type parameter extending union 2015-04-15 11:49:10 -07:00
Jason Freeman
1d8fb49f4c Source type parameter extending union works even when target is a type parameter 2015-04-15 11:49:06 -07:00
Jason Freeman
65790d1663 Check assignability recursively when source is type parameter with union constraint 2015-04-15 11:49:02 -07:00
Ron Buckton
3eb0a3abab PR Feedback and updated baselines 2015-04-14 23:22:58 -07:00
Mohamed Hegazy
97e1973b4d Merge branch 'master' into exposeHelpers 2015-04-14 23:09:35 -07:00
Mohamed Hegazy
27b79ff99a respond to code review commment 2015-04-14 22:57:06 -07:00
Mohamed Hegazy
af661ae23e Merge branch 'master' into rootDir
Conflicts:
	tests/baselines/reference/APISample_compile.types
	tests/baselines/reference/APISample_linter.types
	tests/baselines/reference/APISample_transform.types
	tests/baselines/reference/APISample_watcher.types
2015-04-14 22:46:31 -07:00
Mohamed Hegazy
261adffe50 Add rootDir option 2015-04-14 22:11:25 -07:00
Jason Freeman
2cadea2137 Merge branch 'master' of https://github.com/Microsoft/TypeScript into destructuringFixes 2015-04-14 17:13:06 -07:00
Jason Freeman
cb9954bd20 The element/iterated type of any is any 2015-04-14 17:12:53 -07:00
Yui
2861fc2869 Merge pull request #2765 from Microsoft/moveAsKeywordOutFromStrict
Move asKeyword into correct section
2015-04-14 16:20:15 -07:00
Yui T
4783d9f252 Move asKeyword into correct section 2015-04-14 16:05:03 -07:00
Mohamed Hegazy
e7895c59d4 Move commonSourceDirectory computation to its own function 2015-04-14 15:05:08 -07:00
unknown
9a2846ef72 Addressing CR feedback 2015-04-14 14:51:08 -07:00
unknown
7393898076 Merge branch 'master' into reducedUnionTypes 2015-04-14 14:03:05 -07:00
Jason Freeman
8f57867601 Merge branch 'master' of https://github.com/Microsoft/TypeScript into destructuringFixes 2015-04-14 12:58:50 -07:00
unknown
56e0fb0b35 Addressing CR feedback 2015-04-14 10:01:11 -07:00
Mohamed Hegazy
fe75002450 Fix #2724: ensure checkIteratedTypeOrElementType returns a type 2015-04-13 19:41:29 -07:00
Jason Freeman
15e39f72ea Change parenthesizeForAccess to check isLeftHandSideExpression 2015-04-13 17:29:42 -07:00
Jason Freeman
66b50a1d62 Simplify handling of rest parameters with binding patterns in the checker 2015-04-13 17:29:39 -07:00
Jason Freeman
70c06ce8c6 Fix crash in emitter on rest parameters with binding patterns 2015-04-13 17:29:35 -07:00
Jason Freeman
2b83dfbf40 Properly emit nested destructuring in rest elements (fixes #2587) 2015-04-13 17:29:32 -07:00
Jason Freeman
051aa39f0d Some cleanup in emitDestructuring 2015-04-13 17:29:28 -07:00
Jason Freeman
1ec6164293 Remove unnecessary parameter to emitDestructuring 2015-04-13 17:29:25 -07:00
Jason Freeman
2b21cd9825 Disallow initializers in assignment rest elements 2015-04-13 17:29:21 -07:00
Jason Freeman
e6ffb33adf Fix crash in rest element destructuring 2015-04-13 17:29:18 -07:00
Jason Freeman
5bfbcdcd25 Assignment rest element pretends to get the contextual element type 2015-04-13 17:29:14 -07:00
Jason Freeman
f84ebba852 Rest assignment element allows nested destructuring (fixes #2156) 2015-04-13 17:29:11 -07:00
Jason Freeman
e9f5acce75 Disallow binding patterns in rest parameters 2015-04-13 17:29:07 -07:00
Jason Freeman
2d3b22cbba Disallow binding patterns in binding rest elements (fixes #2519) 2015-04-13 17:21:19 -07:00
Cyrus Najmabadi
20961cdbd7 Insert @internal when we generate diagnostic messages. 2015-04-13 15:55:56 -07:00
Ron Buckton
1c9e9e0f19 Elide var when emitting a module merged with an ES6 class 2015-04-13 13:57:26 -07:00
Cyrus Najmabadi
4e0c26347f Use const. 2015-04-12 22:47:25 -07:00
Cyrus Najmabadi
362320dc45 Use a singleton parser as well. 2015-04-12 14:25:19 -07:00
Cyrus Najmabadi
61951e5d94 Use a single scanner for all parsing tasks. 2015-04-12 14:02:58 -07:00
Mohamed Hegazy
b6bb4ff67f expose text span helpers 2015-04-12 12:30:17 -07:00
Mohamed Hegazy
27c1bb8ca5 Expose getDefaultLibFileName 2015-04-12 12:12:55 -07:00
Anders Hejlsberg
e4b7cf9882 Merge branch 'master' into reducedUnionTypes
Conflicts:
	src/compiler/types.ts
	tests/baselines/reference/APISample_compile.js
	tests/baselines/reference/APISample_compile.types
	tests/baselines/reference/APISample_linter.js
	tests/baselines/reference/APISample_linter.types
	tests/baselines/reference/APISample_transform.js
	tests/baselines/reference/APISample_transform.types
	tests/baselines/reference/APISample_watcher.js
	tests/baselines/reference/APISample_watcher.types
2015-04-12 11:08:03 -07:00
Anders Hejlsberg
e8ee500539 Consistently reduce union types in property access 2015-04-12 10:35:57 -07:00