Commit Graph

35940 Commits

Author SHA1 Message Date
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
Mohamed Hegazy c877b1e0a5 Add tests 2015-03-15 18:24:12 -07:00
Mohamed Hegazy c984e81053 Fix issue of the default binding not elided if namedImport is reference
Conflicts:
	src/compiler/checker.ts
	src/compiler/emitter.ts
	tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport.js
	tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5.js
	tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.js
	tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts.js
	tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.js
	tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingWithExport.js
2015-03-15 18:23:48 -07:00
Yui T 9bf5a11bef Update baselines 2015-03-15 16:29:41 -07:00
Mohamed Hegazy b6a6d85e6b Merge branch 'master' into es6ImportExportEmit
Conflicts:
	src/compiler/checker.ts
	src/compiler/emitter.ts
	src/compiler/program.ts
2015-03-15 15:48:23 -07:00
Mohamed Hegazy 44a5343c1e Upate error message 2015-03-15 14:37:12 -07:00
Mohamed Hegazy 7430f3c9c7 Merge branch 'master' into exportDefaultType
Conflicts:
	src/compiler/checker.ts
2015-03-15 14:23:40 -07:00
Mohamed Hegazy a02f85d71e Merge pull request #2368 from Microsoft/exportDefaultLS2
Enable navbar for export defaults
2015-03-15 14:05:23 -07:00
Mohamed Hegazy ebcb86b077 enable navbar for export defaults
Conflicts:
	src/services/navigationBar.ts
2015-03-15 13:22:54 -07:00
Yui T 2a07d3f8db Address code review: do not emit default constructor 2015-03-15 12:33:29 -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
Vladimir Matveev fac3cf8b55 addressed PR feedback 2015-03-14 18:50:05 -07:00
Caitlin Potter 02d356800f Share SourceFile with other grammar checker that needs it 2015-03-14 20:12:10 -04:00
Yui T 13e55ae8cb Address code review 2015-03-14 16:53:33 -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 3dc5faf707 Restore earlier behaviour when parsing non-simple arrow function bodies 2015-03-14 19:51:42 -04:00
Caitlin Potter bd828e3024 Parse arrow function body as identifier if missing => or {
Restores functionality broken in previous commit
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 fdc673f5eb Fix line wrapping 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
Jason Freeman a29b6fe8c7 Add tests for type parameter fixing 2015-03-13 18:36:16 -07:00
Jason Freeman a0b96079c2 Get rid of inferenceFailureType, just set the failedTypeParameterIndex directly 2015-03-13 18:36:12 -07:00
Jason Freeman 495caf0f67 Optimize the clearing of inferredTypes 2015-03-13 18:33:07 -07:00
Jason Freeman df6f856ad5 Persist inference context object throughout the signature, and add isFixed property 2015-03-13 18:32:25 -07:00
Jason Freeman f6de919407 Add assert in reportNoCommonSupertypeError 2015-03-13 18:23:02 -07:00
CyrusNajmabadi 1bb4a62988 Merge pull request #2352 from Microsoft/forOf2
Use 'let' in the services layer.
2015-03-13 17:24:00 -07:00
Vladimir Matveev a7dac51e84 merge with master 2015-03-13 17:23:42 -07:00
Cyrus Najmabadi beb7fc4f85 Preserve newlines in our own compiler. This aids debugging as it keeps lines at a reasonable length and more closely matches the original source. 2015-03-13 17:03:56 -07:00
Cyrus Najmabadi 9445b03110 Do not include experimental options in the public API. 2015-03-13 16:56:19 -07:00
Cyrus Najmabadi 8e9e5e2184 Update LKG. 2015-03-13 16:52:49 -07:00
Cyrus Najmabadi e5cd5eca3c Update LKG. 2015-03-13 16:49:22 -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 5e85595df6 Use the new option to cache .length access 2015-03-13 16:19:17 -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 4a9187172e Use 'let' in the compiler layer. 2015-03-13 15:55:17 -07:00
Cyrus Najmabadi bed79ccd52 Update LKG 2015-03-13 15:48:42 -07:00
Cyrus Najmabadi b99761ac05 Use 'let' in the compiler layer. 2015-03-13 15:27:05 -07:00
Cyrus Najmabadi d7e218b3a1 Use 'let' in the compiler layer. 2015-03-13 15:20:11 -07:00
Cyrus Najmabadi b51d33e262 Use 'let' in the compiler layer. 2015-03-13 15:07:40 -07:00
Anders Hejlsberg 00ac8361aa Merge branch 'master' into cleanupDiagnostics 2015-03-13 15:06:14 -07:00
Cyrus Najmabadi 2e8eb4e17a Use 'let' in the ompiler layer. 2015-03-13 15:03:17 -07:00
Cyrus Najmabadi 1ab0ef9f16 Use 'let' in the services layer. 2015-03-13 14:54:05 -07:00
Anders Hejlsberg 99a6f2b194 Removing unused function from emitter 2015-03-13 14:49:54 -07:00
Anders Hejlsberg c4b0302acf Clean up diagnostic timers and -diagnostic output 2015-03-13 14:49:32 -07:00
Vladimir Matveev db324db202 merge with master 2015-03-13 14:44:54 -07:00