Ron Buckton
4eb2a82dca
Merge branch 'transforms' into transforms-generators
2016-06-15 11:41:21 -07:00
Ron Buckton
ea61f2b32b
Added tests and fixed related emit issues.
2016-06-14 17:59:44 -07:00
Ron Buckton
6ad04375c4
PR feedback
2016-06-14 13:35:52 -07:00
Ron Buckton
0948f73f2a
Cleanup, only support generators for async functions, added emit helper.
2016-06-13 12:39:55 -07:00
Ron Buckton
f6f1a0dca1
Adds support for importing external helpers.
2016-06-11 00:12:04 -07:00
Ron Buckton
cfa4388822
Replace legacy emitter with tree transforming emitter.
2016-06-07 10:32:03 -07:00
Ron Buckton
66514a2810
Merge branch 'transforms' into transforms-commentsPerf
2016-05-31 18:44:16 -07:00
Ron Buckton
a07965aad8
Merge branch 'master' into transforms
2016-05-31 18:43:51 -07:00
Ron Buckton
43e3f357ee
Reduce allocations/gc by avoiding the creation of some CommentRange objects.
2016-05-27 17:07:49 -07:00
Ron Buckton
ee39c4e8d4
Merge branch 'master' into transforms-merge
2016-05-25 14:14:32 -07:00
Rado Kirov
699dc4f9bb
do not emit double assigment of class expressions.
...
Closure compiler ES6 support rejects expressions of the form `let A = B
= class {}`
With a small rewriting of the emitted code the case of decorated and
staticly referenced classes, TypeScript ES6 emit satisfies this
requirement.
Before:
let C_1;
let C = C_1 = class C {};
After:
let C_1 = class C {};
let C_1 = C;
2016-05-24 16:26:01 -07:00
Ron Buckton
81d5d2b6b6
Added 'extendedDiagnostics' option for comments/sourcemap measurements.
2016-05-24 13:18:24 -07:00
Andy
7806de0f45
Merge pull request #8555 from Microsoft/readonly_ctr
...
Fix #7590 : Allow 'readonly' to be used in constructor parameters
2016-05-12 10:29:22 -07:00
Andy Hanson
d713c58c6b
Fix 8532: Correct source map output for computed getter of object literal
2016-05-12 09:30:21 -07:00
Andy Hanson
a9742c5861
Change name from ConstructorParameterModifier to ParameterPropertyModifier
2016-05-11 09:48:37 -07:00
Andy Hanson
ad2634e343
Fix #7590 : Allow 'readonly' to be used in constructor parameters
2016-05-11 08:32:17 -07:00
Yui
71fc58197c
Fix8256 ( #8292 )
...
* Consider identifier in await expression to be expression
* Add tests
* Update baselines
2016-04-25 16:31:01 -07:00
Sheetal Nandi
1bccef7f8f
Do not transform the emit of function with rest parameter unless declared in AST
...
Fixes #7749
2016-04-20 11:48:34 -07:00
Sheetal Nandi
6f24144f05
Do not transform the emit of function with rest parameter unless declared in AST
...
Fixes #7749
2016-04-19 16:02:29 -07:00
Yuichi Nukiyama
d48f6179f1
fix 8117
2016-04-19 12:50:50 +00:00
Nathan Shively-Sanders
f8ab1a5ca6
Merge branch 'master' into transforms
2016-04-18 13:27:33 -07:00
Ron Buckton
9899cda6d3
PR Feedback, also removes cloneEntityName.
2016-04-13 10:43:01 -07:00
Daniel Rosenwasser
a7bf6902ff
Merge pull request #7952 from Microsoft/objectAssignPoly
...
Use an emit helper (or Object.assign) for JsxSpreadAttributes
2016-04-08 13:24:12 -07:00
Daniel Rosenwasser
fb6f4aefd9
Changed emit to use 'Object.prototype.hasOwnProperty'.
2016-04-08 12:34:25 -07:00
Daniel Rosenwasser
a90d471b87
Remove unnecessary 'null'/'undefined' check, removed temp for args length.
2016-04-07 23:25:32 -07:00
Daniel Rosenwasser
bb0ec3bbd4
Use an emit helper for JSX Spread Attributes.
2016-04-07 18:30:26 -07:00
Paul van Brenk
58efc2ee05
Merge pull request #7883 from Microsoft/listEmittedFiles2
...
Add option to list the emitted files as part of the compiler output.
2016-04-07 17:50:26 -07:00
Daniel Rosenwasser
9b6f8d1b7a
Merge pull request #7924 from Microsoft/correctStrictPrologueCheck
...
Emit "use strict" if a prologue only contains "use strict" somewhere inside of it
2016-04-07 12:37:33 -07:00
Daniel Rosenwasser
1e18618170
Ensure that the entire contents are simply 'use strict'.
2016-04-07 00:56:39 -07:00
Daniel Rosenwasser
e9e8837474
Ensure that the entire contents are simply 'use strict'.
2016-04-07 00:47:29 -07:00
Paul van Brenk
5363b2d7ad
Add option to list the emitted as part of the compiler output.
...
This is useful for incremental build scenarios.
2016-04-06 13:25:29 -07:00
Ron Buckton
15780a9a4c
Fixes some comment emit and other changes
2016-04-01 17:45:18 -07:00
Nathan Shively-Sanders
ce68932475
Merge branch 'master' into this-function-types
2016-03-31 10:46:03 -07:00
Anton Tolmachev
7ce43d4716
Fix #7101
2016-03-29 22:53:30 +03:00
Nathan Shively-Sanders
9e5f26048b
Merge branch 'master' into this-function-types
2016-03-28 10:12:25 -07:00
Ron Buckton
1c760efdfd
Minor update to source map emit and fix for positions
2016-03-22 12:23:30 -07:00
Anders Hejlsberg
413d9a639f
Merge branch 'master' into strictNullChecks
...
Conflicts:
src/compiler/diagnosticMessages.json
src/compiler/types.ts
tests/baselines/reference/typeGuardOfFormTypeOfEqualEqualHasNoEffect.symbols
tests/baselines/reference/typeGuardOfFormTypeOfNotEqualHasNoEffect.symbols
2016-03-21 16:21:02 -07:00
Ron Buckton
3c344987de
Merge branch 'master' into transforms
2016-03-18 17:13:55 -07:00
Vladimir Matveev
51e8f7dd7a
Merge pull request #7555 from Microsoft/destructuring-variable-declarations
...
Destructuring in variable declarations when module kind is not ES6
2016-03-17 10:37:34 -07:00
Vladimir Matveev
c9ef8be16c
addressed PR feedback
2016-03-17 07:05:33 -07:00
Vladimir Matveev
57d9a5ada5
emit top level classes as class expressions when target=ES6 and module=System
2016-03-16 21:56:53 -07:00
Vladimir Matveev
6cf57b1bca
fix comments
2016-03-16 16:42:23 -07:00
Vladimir Matveev
3ede567fbc
use downlevel destructuring for exported variables for target=ES6 if module kind is not ES6
2016-03-16 16:40:35 -07:00
Chuck Jazdzewski
8bf9da614f
Adding sourceFiles to the Program emit callback
...
This implements #7438
2016-03-15 13:25:18 -07:00
Ron Buckton
5b8cf96028
Moved modifier related flags to separate enum
2016-03-10 11:12:24 -08:00
Nathan Shively-Sanders
fa22250110
Merge branch 'master' into this-function-types
2016-03-09 13:36:42 -08:00
Anders Hejlsberg
cf9e08b75c
Merge branch 'master' into strictNullChecks
...
Conflicts:
src/compiler/checker.ts
2016-03-09 13:00:59 -08:00
Oskar Segersvärd
ccd5352eb8
System doesn't have direct identifier access in TS's generated code.
2016-03-09 12:13:27 +01:00
Oskar Segersvärd
d742ca50f4
Fix shorthand properties for non-es6 module formats
2016-03-09 11:22:47 +01:00
Ron Buckton
30433c2c67
ES6 cleanup
2016-03-02 11:38:30 -08:00