Commit graph

135 commits

Author SHA1 Message Date
Daniel Rosenwasser
fc7be363f1 Added tests from 'captureArguments' branch. 2015-04-16 12:29:49 -07:00
Jason Freeman
cb9954bd20 The element/iterated type of any is any 2015-04-14 17:12:53 -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
2d3b22cbba Disallow binding patterns in binding rest elements (fixes #2519) 2015-04-13 17:21:19 -07:00
Ron Buckton
042b96592a Merge branch 'master' into fixArrowBindingPattern 2015-04-10 09:54:13 -07:00
Daniel Rosenwasser
ad477c7fc9 Merge pull request #2691 from Microsoft/isRegExpWeHardlyKnewYe
Remove 'Symbol.isRegExp' and introduce 'RegExp.prototype.flags'
2015-04-10 01:51:59 -07:00
Ron Buckton
19695f9bca Simplified lookahead and added ES6 test cases 2015-04-09 17:45:45 -07:00
Daniel Rosenwasser
c25170558e Added test for super method calls in ES6 classes. 2015-04-09 16:06:26 -07:00
Daniel Rosenwasser
8aeff70e48 Fix a test so that we don't get duplicate declaration errors. 2015-04-09 14:14:55 -07:00
Daniel Rosenwasser
33028d5199 Replace uses of 'Symbol.isRegExp' with 'Symbol.toPrimitive'. 2015-04-09 14:06:57 -07:00
Jason Freeman
d459c59028 Merge branch 'master' of https://github.com/Microsoft/TypeScript into iteratorSpreadDestructure 2015-04-08 16:14:24 -07:00
Cyrus Najmabadi
b363a459ff Add support for semicolons in class bodies 2015-03-31 14:29:45 -07:00
Cyrus Najmabadi
f7aaf09603 Add support for parsing and emitting class expressions. 2015-03-31 13:54:43 -07:00
Jason Freeman
197a42a692 Optimize direct Iterable reference in getIteratedType 2015-03-25 18:38:14 -07:00
Jason Freeman
e1f2fbff63 Add tests for array destructuring of iterables 2015-03-25 18:04:11 -07:00
Jason Freeman
4a0af76064 Add tests for iterator spread in call 2015-03-25 18:03:45 -07:00
Jason Freeman
376574d1be Add tests for iterator spread in an array literal 2015-03-25 18:03:42 -07:00
Mohamed Hegazy
d47445b175 Merge branch 'exportEquals' of https://github.com/Microsoft/TypeScript into exportEquals 2015-03-23 12:37:41 -07:00
Anders Hejlsberg
e63854b40e Adding basic tests 2015-03-22 12:18:56 -07:00
Yui T
513b45d101 Merge branch 'master' into emitClass
Conflicts:
	src/compiler/checker.ts
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	src/compiler/emitter.ts
	src/compiler/parser.ts
2015-03-16 15:55:57 -07:00
Yui T
91c5bae6e5 Address code review 2015-03-16 15:41:51 -07:00
Yui T
2c7ea7f6b2 Update Baselines 2015-03-16 14:28:29 -07:00
Caitlin Potter
10925c1e9b Make sure arrow function grammar rules can deal with type annotations 2015-03-14 19:51:42 -04:00
Caitlin Potter
231f522d89 Add additional test-cases for arrow function grammar
As suggested by @DanielRosenwasser
2015-03-14 19:50:55 -04:00
Caitlin Potter
84634ac25d Disallow line terminator after arrow function parameters, before =>
Closes #2282
2015-03-14 19:50:24 -04:00
Yui T
af05afdc50 Emit Super as super 2015-03-12 16:34:06 -07:00
Yui T
800c523f4f Clean up redundant tests 2015-03-12 16:02:43 -07:00
Yui T
0672923323 Parse classDeclaration in strict mode code for ES6 2015-03-12 15:19:45 -07:00
Yui T
56839604da Disallow refering to static property in computed property name 2015-03-12 08:40:09 -07:00
Yui T
7ee587c43f Emit class with export and export default 2015-03-11 16:45:55 -07:00
Yui T
a0a506b11b Emit class declaration with static property assignment 2015-03-11 16:13:08 -07:00
Yui T
da12d465d0 Add tests for extension, type arguments, overload 2015-03-10 19:11:07 -07:00
Yui T
890aa4a84d test cases for constructor overload, non-static property assignment, getter/setter, method, static method, 2015-03-10 17:39:13 -07:00
Daniel Rosenwasser
7212912307 Merge pull request #2169 from Microsoft/withANameLikeUnicodeYoudThinkThereWouldntBeSoManyWaysToDoIt
Add support for extended Unicode escape sequences in strings and templates
2015-03-03 12:16:42 -08:00
Jason Freeman
7dd7b43448 Add one more test 2015-03-02 13:53:59 -08:00
Jason Freeman
cb97686496 Add tests for scoping 2015-03-01 18:16:20 -08:00
Jason Freeman
3de73e6a1f Merge branch 'master' of https://github.com/Microsoft/TypeScript into for-ofES6
Conflicts:
	src/compiler/checker.ts
	tests/baselines/reference/constDeclarations-errors.errors.txt
2015-02-28 16:30:10 -08:00
Vladimir Matveev
7be2e50fb3 merge with master 2015-02-26 21:47:18 -08:00
Jason Freeman
84a22be433 Add a few more tests 2015-02-26 18:17:58 -08:00
Jason Freeman
f8150d3734 Support assignment patterns in 'for...of' statements 2015-02-26 18:17:54 -08:00
Jason Freeman
00408a68d3 Add tests for for-of destructuring 2015-02-26 18:17:44 -08:00
Jason Freeman
f3543b718f In ES6, an Iterable should contextually type an array literal 2015-02-26 18:17:41 -08:00
Jason Freeman
034bd09526 Add tests for circular references in for...of loops 2015-02-26 18:17:35 -08:00
Jason Freeman
0049b21d6c Check for assignability to the relevant iteratable type 2015-02-26 18:17:31 -08:00
Jason Freeman
732637dd54 Fix getIteratedType to work with 'any' at all levels 2015-02-26 18:17:28 -08:00
Jason Freeman
057108646d More tests 2015-02-26 18:17:25 -08:00
Jason Freeman
3d5c113bee Iterator tests 2015-02-26 18:17:21 -08:00
Jason Freeman
ec9e563238 Add tests and accept correct baselines 2015-02-26 18:17:08 -08:00
Jason Freeman
aa06622695 Basic tests 2015-02-26 18:17:02 -08:00