Commit graph

604 commits

Author SHA1 Message Date
Ron Buckton
f531193557 Updates to emit and updated baselines 2015-03-24 17:00:29 -07:00
Ron Buckton
70bd582965 Changed emit for decorators 2015-03-24 14:16:52 -07:00
Ron Buckton
695c50bd78 Disallow decorators on multiple get/set accessors of the same name 2015-03-24 13:03:10 -07:00
Ron Buckton
335d5673d0 Comments and cleanup 2015-03-23 19:51:38 -07:00
Ron Buckton
8dd9b9f2cb Updated check and emit, updated baselines 2015-03-23 14:47:07 -07:00
Ron Buckton
5b988cdbe4 Some emit cleanup for ES6 classes, comments. 2015-03-23 14:09:38 -07:00
Ron Buckton
0fb624a58b PR feedback 2015-03-19 22:57:03 -07:00
Ron Buckton
ff356cef4c Added sourcemap tests 2015-03-17 18:15:02 -07:00
Ron Buckton
6c32a8bdb0 Updated baselines 2015-03-17 14:21:08 -07:00
Ron Buckton
bd4d7fc9ee Emit for decorators, updated to ES6 classes. 2015-03-17 14:20:57 -07:00
Mohamed Hegazy
a06ce61684 Merge branch 'master' into es6ImportExportEmit 2015-03-17 13:03:17 -07:00
Mohamed Hegazy
766cb68f7c Add comments 2015-03-17 13:03:13 -07:00
Anders Hejlsberg
ad75193528 Merge branch 'master' into cleanupDiagnostics
Conflicts:
	src/compiler/program.ts
2015-03-17 06:26:24 -07:00
Mohamed Hegazy
1932f720cb Handel export name bindings in internal modules in ES6 2015-03-16 21:58:57 -07:00
Mohamed Hegazy
3d802438f1 Export classes defined wihtin internal modules correctelly 2015-03-16 21:18:31 -07:00
Mohamed Hegazy
99108694d5 Do not emit "export" for classes within modules, and do not write the name of an export default class 2015-03-16 20:54:28 -07:00
Mohamed Hegazy
cb012e01fd Merge branch 'master' into es6ImportExportEmit
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
2015-03-16 20:47:08 -07:00
Mohamed Hegazy
eb954e1cb5 Respond to code review comments 2015-03-16 19:25:02 -07:00
Yui T
9b3fccd5c4 Address code review; Use for..of and use if-statement 2015-03-16 16:24:40 -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
c51983df3c Address code review 2015-03-16 15:48:03 -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
Mohamed Hegazy
5845d2d214 Merge branch 'master' into es6ImportExportEmit 2015-03-16 14:49:41 -07:00
Vladimir Matveev
7f8ef3881b addressed PR feedback 2015-03-16 13:36:34 -07:00
Vladimir Matveev
f5a4b0b31a use 'allowGeneratedIdentifiers' to explicitly tell when identifier can be renamed 2015-03-16 12:37:21 -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
Yui T
2a07d3f8db Address code review: do not emit default constructor 2015-03-15 12:33:29 -07:00
Yui T
13e55ae8cb Address code review 2015-03-14 16:53:33 -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
d8d4719765 Add experimental option to cache the .length access in downlevel for-of emit. 2015-03-13 16:15:25 -07:00
Cyrus Najmabadi
4a9187172e Use 'let' in the compiler layer. 2015-03-13 15:55:17 -07:00
Anders Hejlsberg
00ac8361aa Merge branch 'master' into cleanupDiagnostics 2015-03-13 15:06:14 -07:00
Anders Hejlsberg
99a6f2b194 Removing unused function from emitter 2015-03-13 14:49:54 -07:00
Cyrus Najmabadi
a6348c1e31 Use 'let' in the emitter. 2015-03-13 12:34:12 -07:00
Cyrus Najmabadi
29bfc15d9b use for-of in more places. 2015-03-13 09:41:54 -07:00
Cyrus Najmabadi
4642b869fa Use for-of in emitter.ts 2015-03-13 09:08:27 -07:00
Mohamed Hegazy
8e0626555b Merge branch 'master' into es6ImportExportEmit 2015-03-12 17:21:48 -07:00
Mohamed Hegazy
b3c8bcb319 Emit export default in ES6 2015-03-12 17:14:33 -07:00
Yui T
af05afdc50 Emit Super as super 2015-03-12 16:34:06 -07:00
Mohamed Hegazy
fe9fff506d Export * and export { names } emit in es6 format
Conflicts:
	src/compiler/emitter.ts
	tests/baselines/reference/es6ExportAll.js
	tests/baselines/reference/es6ExportClause.js
	tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.js
2015-03-12 11:51:32 -07:00
Mohamed Hegazy
680cf6d844 Emit export internal import equals declaration in es6 format 2015-03-12 10:34:39 -07:00
Mohamed Hegazy
6bcbe824aa Emit export class declaration in es6 format.
Note since we havent yet changed the emitting of class declaration to es6 format,
we are just exporting the constructor function

Conflicts:
	src/compiler/emitter.ts
2015-03-12 10:27:46 -07:00
Mohamed Hegazy
b091fa57ef Emit export function declaration in es6 format
Conflicts:
	src/compiler/emitter.ts
2015-03-12 10:11:37 -07:00
Mohamed Hegazy
58d19595f0 Emit ES6 module enum declaration
Conflicts:
	src/compiler/emitter.ts
2015-03-12 10:00:48 -07:00
Mohamed Hegazy
b9f63a85b1 Emit es6 export ModuleDeclaration
Conflicts:
	src/compiler/emitter.ts
	tests/baselines/reference/es6ExportAll.js
	tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.js
2015-03-12 01:38:35 -07:00
Sheetal Nandi
05932fdddf Es6 module emit for export VarDeclaration, export LexicalDeclaration
Conflicts:
	src/compiler/emitter.ts
	tests/baselines/reference/es6ExportAll.js
	tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.js
	tests/baselines/reference/es6ImportNamedImport.js
2015-03-12 01:29:53 -07:00