mAAdhaTTah
a0e94ec24d
Move PipelineStyle to types.js file
2018-11-03 14:03:17 -04:00
mAAdhaTTah
b593af17a9
Replace codePointToString with ES6 method
2018-11-03 14:00:42 -04:00
mAAdhaTTah
4521204ea0
Merge branch 'master' into implement-smart-pipeline-in-parser
...
* master: (222 commits)
Set correct methods name
Use toPropertyKey in the "decorate" helper
Allow function types in type params within arrow return types (#8954 )
Fix message when plugin of a wrong type is passed (#8950 )
rename colliding let bindings with for loop init (#8937 )
edge incomplete support for arrow destructuring (babel #8349 ) (#8926 )
fix single-arg async arrows when retainLines=true (#8868 )
[flow] Explicit inexact objects with `...` (#8884 )
Update preset-env data (#8898 )
Treat break inside block inside loop (#8914 )
fixed "source map" formatting in comment (#8878 ) [skip ci]
fix typo in contributing guidelines (#8901 ) [skip ci]
fix: Expression x === 'y' && '' should not evaluate to undefined. (#8880 )
fixed an extra word
Fixes #8865 (#8866 )
v7.1.4
v7.1.3
Bump Babel deps (#8770 )
flow-bin@0.82.0 (#8832 )
Insertafter jsx fix (#8833 )
...
# Conflicts:
# packages/babel-parser/src/tokenizer/index.js
# packages/babel-parser/test/fixtures/experimental/class-private-properties/failure-numeric-literal/options.json
# packages/babel-parser/test/fixtures/experimental/pipeline-operator/invalid-proposal/options.json
2018-11-03 14:00:12 -04:00
Daniel Tschinder
cd81b079ee
Allow function types in type params within arrow return types ( #8954 )
2018-11-01 09:10:46 -05:00
Jordan Brown
e4929e11f6
[flow] Explicit inexact objects with ... ( #8884 )
2018-10-29 15:09:17 -05:00
Byron Luk
929567523c
Fixes #8865 ( #8866 )
2018-10-12 09:28:15 -05:00
Henry Zhu
8ee857e268
v7.1.3
2018-10-11 11:52:19 -04:00
Brian Ng
ce1a6526e5
flow-bin@0.82.0 ( #8832 )
2018-10-10 12:29:23 -05:00
Retsam
d2c75c2d38
fix: corrects handling of newline after async with paren-less arrow function ( #8830 )
...
If async is followed by a newline, then a paren-less arrow function should be parsed as two expressions
2018-10-09 23:25:31 +02:00
Retsam
08454ece46
Typescript - Tuples can include rest elements ( #8805 )
2018-10-08 11:32:31 -05:00
Bruno Macabeus
850bc1d3dd
class private methods and properties: should not allow spaces between # and identifier ( #8756 )
2018-10-02 19:31:06 -07:00
Brian Ng
2575312d1f
Fix parsing of slash after class expression ( #8804 )
2018-10-02 20:45:53 -05:00
Retsam
a5b5ed928d
Typescript - Tuple elements can be optional ( #8720 )
2018-10-02 11:29:51 -05:00
Nicolò Ribaudo
3c87401714
[decorators] [typescript] Parse type parameters ( #8767 )
...
* [decorators] [typescript] Parse type parameters
* Add test for invalid code
2018-10-01 22:04:19 +02:00
Matthew Robertson
07862e7272
Fix perf issue in typescript parser plugin ( #8792 )
2018-10-01 12:59:16 -05:00
Henry Zhu
3f5b7554b8
v7.1.2
2018-09-28 18:19:38 -04:00
Henry Zhu
ead23d7112
v7.1.1
2018-09-28 16:02:43 -04:00
Pig Fang
f38be13113
TypeScript: reserve unknown as TSUnknownKeyword ( #8755 )
2018-09-25 12:19:32 -05:00
Brian Ng
38cf318f61
Bump lint-related deps ( #8765 )
2018-09-24 18:09:54 -05:00
Henry Zhu
fad74959f8
v7.1.0
2018-09-17 15:29:37 -04:00
Brian Ng
9b4b436e1f
Fix parsing of newline between 'async' and 'function' ( #8698 )
2018-09-16 22:09:23 -05:00
Brian Ng
380f2a0297
Fix typescript parsing typed object shorthand methods ( #8677 )
2018-09-14 10:20:59 -05:00
Logan Smyth
79b2af5997
Format fixture JSON with Prettier. ( #8658 )
2018-09-09 17:57:52 -07:00
Brian Ng
58017044a3
Bump flow to 0.80 and fix sourceType error ( #8630 )
2018-09-05 09:00:53 -05:00
Sven Sauleau
07fae82a8a
fix(types): missing unambiguous sourceType ( #8610 )
2018-09-04 10:03:48 -05:00
Sven Sauleau
fc9becfdf2
Merge pull request #8170 from AviVahl/master
...
@babel/parser: expose a TypeScript definition file from package
2018-09-03 08:15:56 +02:00
Sven Sauleau
6893b7e7d2
fix: [skip ci] consistent naming
2018-09-03 08:09:26 +02:00
Nicolò Ribaudo
9d244ae66b
More helpful error message for missing decoratorsBeforeExport in parser ( #8576 )
2018-08-29 09:02:18 -05:00
Henry Zhu
04d09cc754
add access public to all packages [skip ci] ( #8573 )
...
If people copy paste to make an new package they might miss this and we will get a publish error later so figured we should add it to all.
2018-08-29 09:54:53 -04:00
Henry Zhu
90fb82a535
v7.0.0
2018-08-27 17:41:21 -04:00
Henry Zhu
814c564c45
v7.0.0-rc.4
2018-08-27 12:42:00 -04:00
Justin Ridgewell
edbffda091
Cleanup getLineInfo ( #8540 )
...
Removes an ignore control comment
2018-08-26 13:27:06 -04:00
Justin Ridgewell
72ee1816a4
Update to ES6 String methods ( #8541 )
2018-08-26 13:26:51 -04:00
Justin Ridgewell
524d847763
Flatten TokenType class hierarchy ( #8537 )
...
`KeywordTokenType` and `BinopTokenType` were just meant to be factory
helpers, there's no reason for a class hierarchy.
2018-08-25 20:02:32 -04:00
Justin Ridgewell
5899940156
Update parser whitespace for clarity ( #8539 )
...
* Update parser whitespace for clarity
Has the nice benefit of not requiring a charCode to String conversion.
* Remove test262 exceptions
Per https://github.com/tc39/ecma262/pull/1218#issuecomment-395340891 ,
ECMA262 follows whatever the latest Unicode version specifies for Zs
Space_Separator category. MONGOLIAN VOWEL SEPARATOR was moved to the Cf
Other_Format category in Unicode 8.
2018-08-25 19:12:38 -04:00
Henry Zhu
cada040bec
v7.0.0-rc.3
2018-08-24 14:06:00 -04:00
Henry Zhu
f1d774b34f
v7.0.0-rc.2
2018-08-21 15:22:07 -04:00
Yi Li
b439013cd4
Fix trailingComments for FunctionExpression that is CallExpression arguments ( #8488 )
2018-08-21 12:29:11 -05:00
dnalborczyk
ab8555a867
Update dependencies ( #8364 )
2018-08-17 10:26:25 -05:00
Nicolò Ribaudo
d79b5eeeff
Require decoratorsBeforeExport option for decorators ( #8465 )
...
* Require decoratorsBeforeExport option for syntax-decorators
* Also babylon
* Enable test
2018-08-15 09:04:52 +02:00
James DiGioia
122906d525
Verify if MemberExpression is computed
...
If a property access is computed, e.g. a[b], then it's in topic style. Currently,
this isn't accounted for. Test & change ensures this doesn't parse.
2018-08-10 08:06:38 -04:00
James DiGioia
25d01460fd
Fix error message for #4 case
...
This impact private fields as well as smart pipeline, providing a clearer
error message for both.
2018-08-10 07:52:55 -04:00
James DiGioia
ba5642d4ee
Add test for computer properties
...
This seems to parse fine. Should it?
2018-08-09 22:08:39 -04:00
James DiGioia
15e6d844ae
Remove additional parser logic
...
These are parsable only in follow-on proposals, not in the base proposal,
so we'll introduce that in a separate PR.
2018-08-09 22:08:23 -04:00
James DiGioia
d1cae2dec2
Remove unneeded comment
...
This is no longer true, now that we return `tt.hash`.
2018-08-09 21:10:43 -04:00
James DiGioia
11aee13ff2
Swap Yoda condition
2018-08-09 21:04:47 -04:00
Henry Zhu
0a958861c9
v7.0.0-rc.1
2018-08-09 16:06:08 -04:00
Henry Zhu
8b1406127a
v7.0.0-rc.0
2018-08-09 11:56:00 -04:00
Henry Zhu
6695f5e2f7
v7.0.0-beta.56
2018-08-03 21:02:42 -04:00
kalenikalexander
5c728ea609
Fix private property parsing in Flow ( #8340 )
...
* Fix private property parsing in Flow
* Flow tests updated
* Fix type error
* Appropriate name was given to test folder
* Fix
* Empty
* Correct type annotation
* Add required changes in generator package
* Add required changes in flow-strip-types
2018-08-02 08:38:58 +02:00