flow-parser 0.319.0 → 0.320.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/flow_parser.js +9498 -9488
- package/oxidized/FlowParserNodeDeserializers.js +26 -12
- package/oxidized/FlowParserWASM.js +1 -1
- package/oxidized/babel/TransformESTreeToBabel.js +11 -3
- package/oxidized/babel/TransformESTreeToBabel.js.flow +12 -4
- package/oxidized/estree/StripFlowTypesForBabel.js +33 -18
- package/oxidized/estree/StripFlowTypesForBabel.js.flow +40 -18
- package/oxidized/estree/TransformComponentSyntax.js +25 -12
- package/oxidized/estree/TransformComponentSyntax.js.flow +29 -11
- package/oxidized/generated/ESTreeVisitorKeys.js +1 -1
- package/oxidized/oxidized-src/FlowParserNodeDeserializers.js +26 -12
- package/oxidized/oxidized-src/babel/TransformESTreeToBabel.js +11 -3
- package/oxidized/oxidized-src/estree/StripFlowTypesForBabel.js +33 -18
- package/oxidized/oxidized-src/estree/TransformComponentSyntax.js +25 -12
- package/oxidized/oxidized-src/generated/ESTreeVisitorKeys.js +1 -1
- package/package.json +2 -2
|
@@ -816,14 +816,16 @@ module.exports = [function () {
|
|
|
816
816
|
return {
|
|
817
817
|
type: 'DeclareVariable',
|
|
818
818
|
loc: this.addEmptyLoc(),
|
|
819
|
-
|
|
820
|
-
kind: this.deserializeString()
|
|
819
|
+
declarations: this.deserializeNodeList(),
|
|
820
|
+
kind: this.deserializeString(),
|
|
821
|
+
implicitDeclare: this.deserializeBoolean()
|
|
821
822
|
};
|
|
822
823
|
}, function () {
|
|
823
824
|
return {
|
|
824
825
|
type: 'DeclareFunction',
|
|
825
826
|
loc: this.addEmptyLoc(),
|
|
826
827
|
id: this.deserializeNode(),
|
|
828
|
+
implicitDeclare: this.deserializeBoolean(),
|
|
827
829
|
predicate: this.deserializeNode()
|
|
828
830
|
};
|
|
829
831
|
}, function () {
|
|
@@ -835,7 +837,8 @@ module.exports = [function () {
|
|
|
835
837
|
extends: this.deserializeNodeList(),
|
|
836
838
|
implements: this.deserializeNodeList(),
|
|
837
839
|
mixins: this.deserializeNodeList(),
|
|
838
|
-
body: this.deserializeNode()
|
|
840
|
+
body: this.deserializeNode(),
|
|
841
|
+
implicitDeclare: this.deserializeBoolean()
|
|
839
842
|
};
|
|
840
843
|
}, function () {
|
|
841
844
|
return {
|
|
@@ -845,13 +848,15 @@ module.exports = [function () {
|
|
|
845
848
|
params: this.deserializeNodeList(),
|
|
846
849
|
rest: this.deserializeNode(),
|
|
847
850
|
rendersType: this.deserializeNode(),
|
|
848
|
-
typeParameters: this.deserializeNode()
|
|
851
|
+
typeParameters: this.deserializeNode(),
|
|
852
|
+
implicitDeclare: this.deserializeBoolean()
|
|
849
853
|
};
|
|
850
854
|
}, function () {
|
|
851
855
|
return {
|
|
852
856
|
type: 'DeclareHook',
|
|
853
857
|
loc: this.addEmptyLoc(),
|
|
854
|
-
id: this.deserializeNode()
|
|
858
|
+
id: this.deserializeNode(),
|
|
859
|
+
implicitDeclare: this.deserializeBoolean()
|
|
855
860
|
};
|
|
856
861
|
}, function () {
|
|
857
862
|
return {
|
|
@@ -873,20 +878,25 @@ module.exports = [function () {
|
|
|
873
878
|
default: this.deserializeBoolean(),
|
|
874
879
|
declaration: this.deserializeNode(),
|
|
875
880
|
specifiers: this.deserializeNodeList(),
|
|
876
|
-
source: this.deserializeNode()
|
|
881
|
+
source: this.deserializeNode(),
|
|
882
|
+
implicitDeclare: this.deserializeBoolean()
|
|
877
883
|
};
|
|
878
884
|
}, function () {
|
|
879
885
|
return {
|
|
880
886
|
type: 'DeclareExportAllDeclaration',
|
|
881
887
|
loc: this.addEmptyLoc(),
|
|
882
|
-
source: this.deserializeNode()
|
|
888
|
+
source: this.deserializeNode(),
|
|
889
|
+
implicitDeclare: this.deserializeBoolean()
|
|
883
890
|
};
|
|
884
891
|
}, function () {
|
|
885
892
|
return {
|
|
886
893
|
type: 'DeclareNamespace',
|
|
887
894
|
loc: this.addEmptyLoc(),
|
|
895
|
+
global: this.deserializeBoolean(),
|
|
888
896
|
id: this.deserializeNode(),
|
|
889
|
-
body: this.deserializeNode()
|
|
897
|
+
body: this.deserializeNode(),
|
|
898
|
+
implicitDeclare: this.deserializeBoolean(),
|
|
899
|
+
keyword: this.deserializeString()
|
|
890
900
|
};
|
|
891
901
|
}, function () {
|
|
892
902
|
return {
|
|
@@ -895,7 +905,8 @@ module.exports = [function () {
|
|
|
895
905
|
id: this.deserializeNode(),
|
|
896
906
|
typeParameters: this.deserializeNode(),
|
|
897
907
|
body: this.deserializeNode(),
|
|
898
|
-
extends: this.deserializeNodeList()
|
|
908
|
+
extends: this.deserializeNodeList(),
|
|
909
|
+
implicitDeclare: this.deserializeBoolean()
|
|
899
910
|
};
|
|
900
911
|
}, function () {
|
|
901
912
|
return {
|
|
@@ -903,14 +914,16 @@ module.exports = [function () {
|
|
|
903
914
|
loc: this.addEmptyLoc(),
|
|
904
915
|
id: this.deserializeNode(),
|
|
905
916
|
typeParameters: this.deserializeNode(),
|
|
906
|
-
right: this.deserializeNode()
|
|
917
|
+
right: this.deserializeNode(),
|
|
918
|
+
implicitDeclare: this.deserializeBoolean()
|
|
907
919
|
};
|
|
908
920
|
}, function () {
|
|
909
921
|
return {
|
|
910
922
|
type: 'DeclareEnum',
|
|
911
923
|
loc: this.addEmptyLoc(),
|
|
912
924
|
id: this.deserializeNode(),
|
|
913
|
-
body: this.deserializeNode()
|
|
925
|
+
body: this.deserializeNode(),
|
|
926
|
+
implicitDeclare: this.deserializeBoolean()
|
|
914
927
|
};
|
|
915
928
|
}, function () {
|
|
916
929
|
return {
|
|
@@ -1698,7 +1711,8 @@ module.exports = [function () {
|
|
|
1698
1711
|
impltype: this.deserializeNode(),
|
|
1699
1712
|
lowerBound: this.deserializeNode(),
|
|
1700
1713
|
upperBound: this.deserializeNode(),
|
|
1701
|
-
supertype: this.deserializeNode()
|
|
1714
|
+
supertype: this.deserializeNode(),
|
|
1715
|
+
implicitDeclare: this.deserializeBoolean()
|
|
1702
1716
|
};
|
|
1703
1717
|
}, function () {
|
|
1704
1718
|
return {
|