flow-parser 0.331.0 → 0.332.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/FlowParserDeserializer.js.flow +1 -0
- package/dist/FlowParserNodeDeserializers.js +101 -61
- package/dist/FlowParserWASM.js +1 -1
- package/dist/estree/TransformComponentSyntax.js +1 -0
- package/dist/estree/TransformComponentSyntax.js.flow +1 -0
- package/dist/estree/TransformRecordSyntax.js +4 -0
- package/dist/estree/TransformRecordSyntax.js.flow +4 -0
- package/dist/generated/ESTreeVisitorKeys.js +1 -1
- package/package.json +2 -2
|
@@ -580,6 +580,7 @@ function mapStatementList(stmts, options) {
|
|
|
580
580
|
type: 'ExportSpecifier',
|
|
581
581
|
exported: (0, _astNodeMutationHelpers.shallowCloneNode)(componentOrRef),
|
|
582
582
|
local: (0, _astNodeMutationHelpers.shallowCloneNode)(componentOrRef),
|
|
583
|
+
exportKind: 'value',
|
|
583
584
|
loc: node.loc,
|
|
584
585
|
range: node.range,
|
|
585
586
|
parent: EMPTY_PARENT
|
|
@@ -127,6 +127,8 @@ function mapRecordDeclaration(genID, node) {
|
|
|
127
127
|
computed: false,
|
|
128
128
|
static: false,
|
|
129
129
|
decorators: [],
|
|
130
|
+
override: false,
|
|
131
|
+
tsAccessibility: null,
|
|
130
132
|
value: {
|
|
131
133
|
type: 'FunctionExpression',
|
|
132
134
|
id: null,
|
|
@@ -194,6 +196,8 @@ function mapRecordDeclaration(genID, node) {
|
|
|
194
196
|
computed: false,
|
|
195
197
|
declare: false,
|
|
196
198
|
optional: false,
|
|
199
|
+
override: false,
|
|
200
|
+
tsAccessibility: null,
|
|
197
201
|
...(0, _Builders.etc)(),
|
|
198
202
|
parent: _Builders.EMPTY_PARENT
|
|
199
203
|
}));
|
|
@@ -171,6 +171,8 @@ function mapRecordDeclaration(
|
|
|
171
171
|
computed: false,
|
|
172
172
|
static: false,
|
|
173
173
|
decorators: [],
|
|
174
|
+
override: false,
|
|
175
|
+
tsAccessibility: null,
|
|
174
176
|
value: {
|
|
175
177
|
type: 'FunctionExpression',
|
|
176
178
|
id: null,
|
|
@@ -237,6 +239,8 @@ function mapRecordDeclaration(
|
|
|
237
239
|
computed: false,
|
|
238
240
|
declare: false,
|
|
239
241
|
optional: false,
|
|
242
|
+
override: false,
|
|
243
|
+
tsAccessibility: null,
|
|
240
244
|
...etc(),
|
|
241
245
|
parent: EMPTY_PARENT,
|
|
242
246
|
}));
|
|
@@ -160,7 +160,7 @@ module.exports = {
|
|
|
160
160
|
ObjectTypeCallProperty: ['value'],
|
|
161
161
|
ObjectTypeIndexer: ['id', 'key', 'value', 'variance'],
|
|
162
162
|
ObjectTypeInternalSlot: ['id', 'value'],
|
|
163
|
-
ObjectTypeMappedTypeProperty: ['keyTparam', 'propType', 'sourceType', 'variance'],
|
|
163
|
+
ObjectTypeMappedTypeProperty: ['keyTparam', 'propType', 'sourceType', 'nameType', 'variance'],
|
|
164
164
|
ObjectTypePrivateField: ['key'],
|
|
165
165
|
ObjectTypeProperty: ['key', 'value', 'variance'],
|
|
166
166
|
ObjectTypeSpreadProperty: ['argument'],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flow-parser",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.332.0",
|
|
4
4
|
"description": "JavaScript parser written in OCaml. Produces ESTree AST",
|
|
5
5
|
"homepage": "https://flow.org",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"test": "node test/run_tests.js"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"flow-estree": "0.
|
|
26
|
+
"flow-estree": "0.332.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@babel/generator": "7.7.4",
|