Arthur Ozga
384d54603f
Basic parens handling and stubbed TypeFormatFlags
2017-05-04 15:27:50 -07:00
Anders Hejlsberg
9e7cdb4df5
Support string valued members in literal enums
2017-04-29 08:37:33 -07:00
Yui T
feb41f7d7c
Merge branch 'master' into master-dynamicImport
...
# Conflicts:
# src/compiler/diagnosticMessages.json
# src/compiler/program.ts
2017-04-26 15:35:30 -07:00
Arthur Ozga
10afa2f642
No space in empty type litereal
2017-04-19 11:11:19 -07:00
Arthur Ozga
cddccf1f43
Merge branch 'master' into typeToStringViaTypeNode
2017-04-19 10:48:38 -07:00
Kanchalai Tanglertsampan
4fa23127fc
Fixing consuming whitespace in children
2017-04-12 12:08:12 -07:00
Ron Buckton
fd081f40a8
Clean up literal emit
2017-04-03 14:17:03 -07:00
Arthur Ozga
7e2517975c
Basic functionality
...
* pass context as argument in xToNode methods
* make sourcefile optional in printer
* start consolidating NodeBuilderFlags and TypeFormatFlags
2017-03-30 14:14:15 -07:00
Kanchalai Tanglertsampan
9715052591
Merge branch 'master' into master-dynamicImport
2017-03-29 10:58:26 -07:00
Kanchalai Tanglertsampan
11f6eaec5b
Merge branch 'master' into master-dynamicImport
...
# Conflicts:
# src/compiler/commandLineParser.ts
2017-03-29 10:51:05 -07:00
Kanchalai Tanglertsampan
63f3520d31
Address PR: fix spelling
2017-03-29 08:42:39 -07:00
Kanchalai Tanglertsampan
91d9ecf3e2
Simply parse dynamic import as call-expression....
2017-03-22 11:10:47 -07:00
Kanchalai Tanglertsampan
3600ccc833
Merge branch 'master' into master-14217
...
# Conflicts:
# tests/baselines/reference/bestChoiceType.symbols
# tests/baselines/reference/classExpressionWithStaticProperties3.symbols
# tests/baselines/reference/classExpressionWithStaticPropertiesES63.symbols
# tests/baselines/reference/declarationEmitPromise.symbols
# tests/baselines/reference/keyofAndIndexedAccess.symbols
# tests/baselines/reference/mapOnTupleTypes01.symbols
# tests/baselines/reference/mapOnTupleTypes02.symbols
# tests/baselines/reference/mappedTypeRelationships.errors.txt
# tests/baselines/reference/noImplicitAnyInContextuallyTypesFunctionParamter.symbols
# tests/baselines/reference/specializationsShouldNotAffectEachOther.symbols
# tests/baselines/reference/tsxSpreadChildren.symbols
# tests/baselines/reference/typedArrays.symbols
2017-03-21 07:36:08 -07:00
Vladimir Matveev
2b10611fbf
initial revision of infrastructure to produce text changes that uses existing node factory, formatter and printer ( #14441 )
...
initial revision of infrastructure to produce text changes that uses existing node factory, formatter and printer
2017-03-15 11:44:36 -07:00
Kanchalai Tanglertsampan
ddf5ed944b
Emit dynamic import when module kind is es2018
2017-03-13 15:12:10 -07:00
Andy
6117ed7708
Merge pull request #14391 from Microsoft/lint_better
...
Update tslint to `latest` (`next` is still on 4.3) and lint for BOM
2017-03-07 11:41:55 -08:00
Mike Busyrev
1f46dd9949
FIX : #14507 Function parameter default value wrongly emmited by Printer
2017-03-07 19:35:57 +03:00
Kanchalai Tanglertsampan
b7ce6f05ce
Address PR comment
2017-03-06 09:57:37 -08:00
Yui T
51e40112ec
Address PR comments
2017-03-02 10:51:51 -08:00
Andy Hanson
8371eb6401
Update tslint to latest
(next
is still on 4.3) and lint for BOM
2017-03-01 10:37:13 -08:00
Kanchalai Tanglertsampan
097bc77d0b
Emit unique prologue directives at the top of bundle output file
2017-02-24 11:37:34 -08:00
Kanchalai Tanglertsampan
d219f8afc5
Fix comment
2017-02-23 15:31:19 -08:00
Kanchalai Tanglertsampan
231c3cb8ab
Emit first encounter shebang at the top of a output file
2017-02-23 15:27:22 -08:00
Vladimir Matveev
eb34f0ca03
a few fixed in printer/factory ( #14239 )
2017-02-22 15:24:29 -08:00
Ron Buckton
4db86f78b0
Merge branch 'master' into publicTransformers
2017-02-16 17:52:57 -08:00
Ron Buckton
cf72ceb093
Merge branch 'master' into asyncGenerators
2017-02-16 17:22:43 -08:00
Ron Buckton
0f495fb694
Merge branch 'strictNullFactories' into publicTransformers
2017-02-16 12:41:58 -08:00
Kanchalai Tanglertsampan
e5cfe5c348
Merge branch 'master' into wip-master-statelessOverload
...
# Conflicts:
# src/compiler/factory.ts
2017-02-14 15:21:06 -08:00
Ron Buckton
3e427f4860
Merge branch 'master' into asyncGenerators
2017-02-10 09:46:06 -08:00
Ron Buckton
cd22d81c67
Merge branch 'master' into publicTransformers
2017-02-09 15:44:51 -08:00
Ron Buckton
a295aa8fd1
Reduce stack depth due to substitution
2017-02-09 13:10:17 -08:00
Yui
f7b20624cf
Merge pull request #13916 from Microsoft/master-fix13602
...
[Master] Fix 13602 preserve comment following element in node list
2017-02-09 12:51:22 -08:00
Kanchalai Tanglertsampan
8da2bd97bd
Address code review
2017-02-09 12:32:50 -08:00
Ron Buckton
3b20d82ba6
allow 'transform()' to transform arbitrary nodes.
2017-02-08 17:02:07 -08:00
Kanchalai Tanglertsampan
8b8c490ff6
Address code review: fix indentation
2017-02-08 13:36:19 -08:00
Kanchalai Tanglertsampan
a928ad3bd3
Address code review: move only expose emitLeadingCommentsOfPosition
2017-02-08 10:17:58 -08:00
Ron Buckton
2f624f5df3
Expose transformations as public API
2017-02-07 14:36:15 -08:00
Kanchalai Tanglertsampan
80eae169ee
Emit leading comment before brace token
2017-02-07 11:56:44 -08:00
Kanchalai Tanglertsampan
188e9df9b5
Emit missing trailing comment of an element in node list
2017-02-06 18:13:17 -08:00
Ron Buckton
7a539d0b85
Identifier escaping/unescaping for unique names
2017-02-03 12:40:39 -08:00
Ron Buckton
5d415cac52
Merge branch 'master' into asyncGenerators
2017-02-02 12:11:44 -08:00
Ron Buckton
bc611d9e7d
Merge pull request #13761 from Microsoft/extractPrinter
...
Expose printing functionality of emitter as a public API
2017-02-01 16:29:29 -08:00
Ron Buckton
984541316a
Added comments and a few Debug assertions
2017-02-01 16:16:04 -08:00
Kanchalai Tanglertsampan
42c0816164
Merge branch 'master' into wip-master-statelessOverload
2017-01-31 11:33:07 -08:00
Kanchalai Tanglertsampan
ceb77202aa
Address PR: fix typo
2017-01-31 11:11:49 -08:00
Ron Buckton
f0563ac287
Printer API unit tests
2017-01-30 13:50:34 -08:00
Ron Buckton
0165b71549
Embed comment emit inside of printer
2017-01-30 12:38:18 -08:00
gdh1995
cc8bd6fc09
remove an odd new-line for catch clause
2017-01-30 19:32:19 +08:00
Ron Buckton
028e4e2b13
Extract printer from emitter for reusability.
2017-01-29 11:25:39 -08:00
Kanchalai Tanglertsampan
3e07398aee
Merge branch 'master' into wip-master-statelessOverload
2017-01-24 14:18:39 -08:00
Ron Buckton
20249e5c4a
More exhaustive needsDotDotForPropertyAccess
2017-01-24 13:42:05 -08:00
Andy Hanson
a32914f687
Combine forEachExpectedEmitFile
and forEachEmittedFile
2017-01-23 11:14:29 -08:00
Andy Hanson
8886cefe58
Clean up code for getting emitted files
2017-01-20 10:46:15 -08:00
Kanchalai Tanglertsampan
41108dbaae
Update emitter to use JSXAttributes node instead of JSXAttribute node array
...
# Conflicts:
# src/compiler/visitor.ts
2017-01-18 15:12:36 -08:00
Ron Buckton
0d7c9dc4e0
Merge branch 'master' into asyncGenerators
2016-12-30 13:05:01 -08:00
Andy Hanson
a67771265d
Merge branch 'master' into map5
2016-12-29 09:11:19 -08:00
rbuckton
4098058907
Merge branch 'master' into es6-new-target
2016-12-28 13:41:44 -08:00
Andy Hanson
346a86582b
Merge branch 'master' into map5
2016-12-28 09:36:30 -08:00
Ron Buckton
3b114f4a1e
Fix UMD header to work with r.js
2016-12-27 15:54:23 -08:00
Andy Hanson
9e33585a80
Merge branch 'master' into map5
2016-12-27 12:56:05 -08:00
Nathan Shively-Sanders
88ef816a49
Merge branch 'master' into spread-jsx-expression-children
2016-12-22 14:12:44 -08:00
Andy Hanson
b53b5cf4ab
Remove the "set" function and use map.set
with multiple lines of code if necessary.
2016-12-12 08:42:12 -08:00
Ron Buckton
6a1ccd8de4
Adds support for new.target
2016-12-08 17:31:18 -08:00
Andy Hanson
6b1cc8972d
Use native maps when they're available
2016-12-08 06:40:31 -08:00
Ron Buckton
8434fdef2d
Improve SourceMap emit for down-level async functions
2016-12-05 12:30:14 -08:00
Ron Buckton
8af87dce8b
Merge branch 'master' into asyncGenerators
2016-11-30 12:47:50 -08:00
Tim Lancina
61204cc05d
Re-add sourceFiles to program emit callback
...
Addresses https://github.com/Microsoft/TypeScript/issues/12444 .
2016-11-22 14:20:47 -06:00
Ron Buckton
c72509b190
Added iterationMode switch, consolidate some tests, cleanup
2016-11-18 16:50:43 -08:00
Ron Buckton
28d23ce8de
Add for-await-of, always use Symbol for iterables.
2016-11-16 14:22:42 -08:00
Ron Buckton
ab1dc522a4
Merge branch 'emitHelper' into asyncGenerators
2016-11-16 12:23:32 -08:00
Ron Buckton
346d488c62
Merge branch 'master' into emitHelper
2016-11-15 17:13:57 -08:00
Nathan Shively-Sanders
bb46e789d5
Fix spread/rest emit for symbols.
...
It used the index of the symbol property as the name, not the symbol
itself.
2016-11-15 11:31:21 -08:00
Nathan Shively-Sanders
47f331926e
Improve rest/spread emit for symbols
...
Previously, symbols were not handled.
2016-11-15 10:58:33 -08:00
Nathan Shively-Sanders
b9fa06f90b
Address PR commennts
...
Update baselines with smaller emit as part of that.
2016-11-15 09:10:55 -08:00
Nathan Shively-Sanders
6f274eaabe
Spread+rest fixes
...
1. Rename finds identifiers in spread assignment expressions.
2. Spreads with computed properties of type number or any no longer
crash the compiler.
3. Rest emit uses indexOf === -1 instead of !indexOf to filter properties.
4. Rest emit correctly refers to computed properties' generated temps.
2016-11-14 16:20:43 -08:00
Anders Hejlsberg
cd185f2cf6
Add declaration emit support
2016-11-10 15:20:29 -08:00
Ron Buckton
4f3fb80b98
Parse, check, and downlevel emit for for-await-of
2016-11-09 17:40:17 -08:00
Ron Buckton
74ec093d01
Merge branch 'emitHelper' into asyncGenerators
2016-11-08 18:13:31 -08:00
Ron Buckton
bac9350847
Merge branch 'master' into emitHelper
2016-11-08 16:36:31 -08:00
Nathan Shively-Sanders
9977936190
Do not emit __rest for --target esnext
2016-11-07 11:34:37 -08:00
Nathan Shively-Sanders
609cd0016b
Merge branch 'object-spread' into object-rest
2016-11-07 11:10:29 -08:00
Nathan Shively-Sanders
7b9a42f995
Add --target esnext
...
Currently, this disables the rest and spread transforms. This will
change as proposals enter and leave stage 3.
2016-11-07 09:54:48 -08:00
Nathan Shively-Sanders
6a82ae4cbb
Add SpreadAssignment to visitors
...
1. visitNode
2. reduceNode
3. emit
This fixes an emit bug for setters.
2016-11-07 09:04:00 -08:00
Nathan Shively-Sanders
a84c7aeea4
Rename SpreadElementExpression -> SpreadAssignment
...
and SpreadExpression (formerly SpreadElementExpression) -> SpreadElement
2016-11-07 08:36:03 -08:00
Nathan Shively-Sanders
71f3157a35
Address PR comments
...
1. Remove extra line in __rest shim.
2. Improve __rest vs __assign check for destructuring assignment.
2016-11-04 09:03:03 -07:00
Ron Buckton
fea68278f6
Merge branch 'master' into asyncGenerators
2016-11-03 17:01:59 -07:00
Ron Buckton
a2e0b19a94
Emit for full down-level generators
2016-11-03 11:14:12 -07:00
Nathan Shively-Sanders
e3a08ed663
Downlevel emit of rest elements
2016-11-02 14:56:01 -07:00
Nathan Shively-Sanders
2ae6ecc1a5
Merge branch 'master' into object-spread
2016-11-02 10:57:20 -07:00
Ron Buckton
5f5b117406
Merge branch 'master' into emitHelper
2016-10-28 10:52:00 -07:00
Andy Hanson
12f6dcefa1
Revert "Merge pull request #11354 from Microsoft/map4"
...
This reverts commit adfdae0dc4
, reversing
changes made to aad663cebf
.
2016-10-27 15:50:21 -07:00
Ron Buckton
81c7e9677d
Merge branch 'master' into emitHelper
2016-10-27 13:55:40 -07:00
Andy Hanson
bcc0807198
Respond to PR comments
2016-10-27 13:14:56 -07:00
Ron Buckton
c1505a0ed9
Added RawExpression to move the UMD helper out of the emitter
2016-10-26 18:38:59 -07:00
Ron Buckton
83f5d3f25c
Move emit helpers into related transformers
2016-10-26 17:54:09 -07:00
Anders Hejlsberg
e7cfbfe185
Support parametric property access expressions + some renaming
2016-10-26 13:39:12 -07:00
Ron Buckton
86091d7217
Clean up and consolidate destructuring transform
2016-10-25 17:25:28 -07:00
Anders Hejlsberg
c21592ede1
Initial implementation of 'T[K]' property access types
2016-10-25 14:32:20 -07:00
Ron Buckton
6453fde400
Move emit helpers into related transformers
2016-10-24 16:21:46 -07:00
Anders Hejlsberg
ad88109420
Initial implementation of 'keyof T' type operator
2016-10-24 15:24:26 -07:00