Commit Graph
1281 Commits
Author SHA1 Message Date
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 88933d54cc Address code review 2015-03-16 15:20:40 -07:00
Yui T 2c7ea7f6b2 Update Baselines 2015-03-16 14:28:29 -07:00
Vladimir Matveev f5a4b0b31a use 'allowGeneratedIdentifiers' to explicitly tell when identifier can be renamed 2015-03-16 12:37:21 -07:00
Yui T 0eeb7ce7b8 Update baselines 2015-03-15 21:40:15 -07:00
Yui T 3bb4b50b4f Update baselines for symbol 2015-03-15 21:35:06 -07:00
Yui T c70385c257 Update baselines 2015-03-15 21:27:54 -07:00
Daniel Rosenwasser ad98fadb0a Merge pull request #2283 from caitp/issue-2282
Disallow line terminator after arrow function parameters, before =>
2015-03-15 21:59:54 -04:00
Yui T 9bf5a11bef Update baselines 2015-03-15 16:29:41 -07:00
Vladimir Matveev 3cea68d955 Merge pull request #2353 from Microsoft/shadowingNameViaBindingPattern
consider binding elements as always initialized with doing shadow check
2015-03-15 11:53:42 -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 5e107e6042 Address slew of review comments 2015-03-14 19:51:41 -04:00
Caitlin Potter aa3cefb63d Check that arrow is on same line as parameters 2015-03-14 19:51:41 -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 dd16fed21e Perform error reporting in checker 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
Cyrus Najmabadi 9445b03110 Do not include experimental options in the public API. 2015-03-13 16:56:19 -07:00
Cyrus Najmabadi 285497edf8 Reserve _i and _n as names we often want to generate 2015-03-13 16:45:58 -07:00
Cyrus Najmabadi d8d4719765 Add experimental option to cache the .length access in downlevel for-of emit. 2015-03-13 16:15:25 -07:00
Vladimir Matveev d163205da6 accepted baselines 2015-03-13 15:59:22 -07:00
Cyrus Najmabadi b51d33e262 Use 'let' in the compiler layer. 2015-03-13 15:07:40 -07:00
Vladimir Matveev db324db202 merge with master 2015-03-13 14:44:54 -07:00
Vladimir Matveev 0675a92acc consider binding elements as always initialized with doing shadow check 2015-03-13 14:34:10 -07:00
Cyrus Najmabadi e90a5dc5bb Update baselines. 2015-03-13 13:43:46 -07:00
Vladimir Matveev 82a940df06 Merge pull request #2323 from Microsoft/letConstInDestructuringInNotStrictMode
correctly parse destructuring in let outside of strict mode
2015-03-13 13:34:06 -07:00
Vladimir Matveev 64fa7fbecb use Value meaning as a filter when resolving names to prevent skipping other value in favor of block-scoped variables 2015-03-13 11:52:14 -07: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
Jason Freeman 6691408147 Address PR feedback 2015-03-12 14:56:58 -07:00
Jason Freeman 22f80b9582 Adjust baselines after merge 2015-03-12 13:38:11 -07:00
Jason Freeman 1204d3186b Merge branch 'master' of https://github.com/Microsoft/TypeScript into for-ofES5 2015-03-12 13:32:17 -07:00
Vladimir Matveev 171a5f8098 correctly parse destructuring in let outside of strict mode 2015-03-12 10:59:59 -07:00
Yui T 56839604da Disallow refering to static property in computed property name 2015-03-12 08:40:09 -07:00
Vladimir Matveev d3246a340a addressed PR feedback 2015-03-11 23:49:35 -07:00
Jason Freeman 7d2d55e44e Rebaseline tests that will be affected by #2308 2015-03-11 18:53:04 -07:00
Vladimir Matveev 751b1aee16 disallow recursive references for block-scoped bindings 2015-03-11 16:54:18 -07:00
Yui T 7ee587c43f Emit class with export and export default 2015-03-11 16:45:55 -07:00
Jason Freeman 03176d33ef Add tests for downlevel for-of type checking 2015-03-11 16:34:18 -07:00
Jason Freeman 32aee67c4f Change a test to be more interesting 2015-03-11 16:34:11 -07:00
Jason Freeman 61cd2a7543 Introduce checkElementTypeOfArrayOrString for downlevel for..of type checking 2015-03-11 16:34:08 -07:00
Jason Freeman 5b46f5f9ae Remove error for using 'for...of' in ES3/ES5 2015-03-11 16:34:04 -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
Vladimir Matveev 76dcfb660b Merge pull request #2291 from Microsoft/letConstInSwitchStatements
introduce CaseBlock as a block-scoped container for switch statements
2015-03-10 18:33:54 -07:00
Vladimir Matveev efcf0e6f57 introduce CaseBlock as a block-scoped container for switch statements 2015-03-10 17:50:54 -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 aa08300cbf Merge pull request #2238 from caitp/issue-2090
Improve array destructuring error message
2015-03-10 16:13:19 -07:00
Caitlin Potter bd2c239161 Add tests for tuple type compatibility
Tests suggested by @DanielRosenwasser
2015-03-10 13:33:59 -04:00