Commit Graph

1196 Commits

Author SHA1 Message Date
Cyrus Najmabadi
c2e178ee51 CR feedback. 2015-04-17 12:06:21 -07:00
Cyrus Najmabadi
605ee10768 Merge branch 'master' into getTypeFromTypeNode 2015-04-17 11:59:25 -07:00
Cyrus Najmabadi
89bfbd0cf3 Make StringLiterals and HeritageClauses into TypeNodes. It makes the checker much simpler and nicer. 2015-04-16 22:48:18 -07:00
Mohamed Hegazy
9cda1df18c Merge branch 'master' into moduleFixes 2015-04-16 17:37:11 -07:00
Mohamed Hegazy
39d9720dd1 wire module lookcups for default import in ambient module declarations 2015-04-16 14:54:47 -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
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
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
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
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
66b50a1d62 Simplify handling of rest parameters with binding patterns in the checker 2015-04-13 17:29:39 -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
Ron Buckton
1c9e9e0f19 Elide var when emitting a module merged with an ES6 class 2015-04-13 13:57:26 -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
Yui T
63a2359d1a Merge branch 'master' into migrateStrictModeCheck 2015-04-11 21:02:56 -07:00
Yui T
a01bdcfab3 Address code review 2015-04-11 20:58:42 -07:00
Yui T
3c2196bf54 Address code review 2015-04-11 12:15:22 -07:00
CyrusNajmabadi
1c7d8a2e21 Merge pull request #2706 from Microsoft/emitYieldStart
Emit generator functions and yield expressions in ES6.
2015-04-11 02:40:42 -07:00
Yui T
a60cf02715 Address CR 2015-04-10 19:00:31 -07:00
Yui T
fe7a3a5d02 Address CR 2015-04-10 18:52:37 -07:00
Ron Buckton
28b5217169 Merge pull request #2718 from Microsoft/fixEmitDecorate
Fix for __decorate emit on undecorated file following a decorated file
2015-04-10 18:23:52 -07:00
Yui T
8448ba7b13 Allow IdentifierName in memberExpression 2015-04-10 16:22:09 -07:00
Mohamed Hegazy
431dce7b84 Merge branch 'master' into APIReviewCleanup
Conflicts:
	src/services/outliningElementsCollector.ts
2015-04-10 16:11:03 -07:00
Ron Buckton
cd6bfb169f Fix for __decorate emit on undecorated file following a decorated file 2015-04-10 15:38:10 -07:00
Mohamed Hegazy
f231d6aba8 Merge pull request #2700 from Microsoft/removeOptionalTypeOnExportDefault
Remove optional type on export default
2015-04-10 15:31:31 -07:00
Yui T
5bab826c6b Address issue with propertyAccessExpression and QualifiedName in TypeReference 2015-04-10 14:23:54 -07:00
Cyrus Najmabadi
9e56c61542 Don't report errors for empty generator functions with type annotations. 2015-04-10 13:47:08 -07:00
Yui T
33d6a81a35 update property in Identifier 2015-04-09 16:50:43 -07:00
Mohamed Hegazy
afe35c810a Revert "Support an optional type annotation on export default statement"
This reverts commit a6a8a96249.
2015-04-09 16:32:23 -07:00
Daniel Rosenwasser
fb8cc0c40a Don't emit '_this' declaration in ES6 or later. 2015-04-09 16:29:38 -07:00
Yui T
8771212d58 Remove incorrect check of module declartion 2015-04-09 15:58:56 -07:00
Yui T
4b7d2f2411 Address code review 2015-04-09 14:46:02 -07:00