@stylexjs/babel-plugin 0.10.0 → 0.11.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_modules/@babel/traverse/index.js.flow +286 -282
- package/lib/index.js +221 -232
- package/lib/utils/add-sourcemap-data.d.ts +23 -0
- package/lib/utils/add-sourcemap-data.js.flow +25 -0
- package/lib/utils/js-to-ast.d.ts +1 -8
- package/lib/utils/js-to-ast.js.flow +1 -8
- package/lib/utils/state-manager.d.ts +32 -10
- package/lib/utils/state-manager.js.flow +23 -2
- package/lib/visitors/imports.js.flow +1 -1
- package/package.json +7 -7
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
* @flow strict
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
+
/* eslint-disable */
|
|
11
|
+
|
|
10
12
|
import * as t from '../types';
|
|
11
13
|
|
|
12
14
|
export type Node = t.Node;
|
|
@@ -53,7 +55,10 @@ declare export var visitors: {
|
|
|
53
55
|
visitor: Visitor<S>,
|
|
54
56
|
) => { [key: $Keys<t._NodeMap>]: ?VisitNodeObject<S, Node> },
|
|
55
57
|
+verify: (visitor: Visitor<>) => void,
|
|
56
|
-
+merge: <S = {}>(
|
|
58
|
+
+merge: <S = {}>(
|
|
59
|
+
visitors: Array<Visitor<S>>,
|
|
60
|
+
states?: S[],
|
|
61
|
+
) => Visitor<object>,
|
|
57
62
|
};
|
|
58
63
|
|
|
59
64
|
// TODO: Change to object type
|
|
@@ -236,7 +241,7 @@ declare export class Binding {
|
|
|
236
241
|
type _VisitorNodeKeys<S: object> = {
|
|
237
242
|
+[K in keyof t._NodeMap]: ?VisitNode<S, t._NodeMap[K]>,
|
|
238
243
|
};
|
|
239
|
-
type
|
|
244
|
+
type _VisitorAliases<S: object> = {
|
|
240
245
|
+[K in keyof t.Aliases]: ?VisitNode<S, t.Aliases[K]>,
|
|
241
246
|
};
|
|
242
247
|
|
|
@@ -244,7 +249,7 @@ export type Visitor<S: object = object> = $ReadOnly<
|
|
|
244
249
|
Partial<{
|
|
245
250
|
...VisitNodeObject<S, Node>,
|
|
246
251
|
..._VisitorNodeKeys<S>,
|
|
247
|
-
...
|
|
252
|
+
..._VisitorAliases<S>,
|
|
248
253
|
}>,
|
|
249
254
|
>;
|
|
250
255
|
|
|
@@ -274,10 +279,9 @@ export type VisitNodeObject<S, P: Node> = {
|
|
|
274
279
|
type _NodeToTuple<T: Node | $ReadOnlyArray<Node>> =
|
|
275
280
|
T extends $ReadOnlyArray<Node> ? T : [T];
|
|
276
281
|
|
|
277
|
-
export type NodePaths<T: Node | $ReadOnlyArray<Node>> =
|
|
278
|
-
_NodeToTuple<T>,
|
|
279
|
-
|
|
280
|
-
>;
|
|
282
|
+
export type NodePaths<T: Node | $ReadOnlyArray<Node>> = {
|
|
283
|
+
[K in keyof _NodeToTuple<T>]: NodePath<_NodeToTuple<T>[K]>,
|
|
284
|
+
};
|
|
281
285
|
|
|
282
286
|
type TParentPath<T: Node> = T extends t.Program ? null : NodePath<>;
|
|
283
287
|
|
|
@@ -689,281 +693,281 @@ declare export class NodePath<+T: Node = Node> {
|
|
|
689
693
|
//#endregion
|
|
690
694
|
|
|
691
695
|
//#region ------------------------- isXXX -------------------------
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
// isGenerated(props?: object | null):
|
|
960
|
-
// isPure(props?: object | null):
|
|
961
|
-
// isReferenced(props?: object | null):
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
// isUser(props?: object | null):
|
|
966
|
-
|
|
696
|
+
isAnyTypeAnnotation(props?: object | null): this is NodePath<t.AnyTypeAnnotation>;
|
|
697
|
+
isArrayExpression(props?: object | null): this is NodePath<t.ArrayExpression>;
|
|
698
|
+
isArrayPattern(props?: object | null): this is NodePath<t.ArrayPattern>;
|
|
699
|
+
isArrayTypeAnnotation(props?: object | null): this is NodePath<t.ArrayTypeAnnotation>;
|
|
700
|
+
isArrowFunctionExpression(props?: object | null): this is NodePath<t.ArrowFunctionExpression>;
|
|
701
|
+
isAssignmentExpression(props?: object | null): this is NodePath<t.AssignmentExpression>;
|
|
702
|
+
isAssignmentPattern(props?: object | null): this is NodePath<t.AssignmentPattern>;
|
|
703
|
+
isAwaitExpression(props?: object | null): this is NodePath<t.AwaitExpression>;
|
|
704
|
+
isBigIntLiteral(props?: object | null): this is NodePath<t.BigIntLiteral>;
|
|
705
|
+
isBinary(props?: object | null): this is NodePath<t.Binary>;
|
|
706
|
+
isBinaryExpression(props?: object | null): this is NodePath<t.BinaryExpression>;
|
|
707
|
+
isBindExpression(props?: object | null): this is NodePath<t.BindExpression>;
|
|
708
|
+
isBlock(props?: object | null): this is NodePath<t.Block>;
|
|
709
|
+
isBlockParent(props?: object | null): this is NodePath<t.BlockParent>;
|
|
710
|
+
isBlockStatement(props?: object | null): this is NodePath<t.BlockStatement>;
|
|
711
|
+
isBooleanLiteral(props?: object | null): this is NodePath<t.BooleanLiteral>;
|
|
712
|
+
isBooleanLiteralTypeAnnotation(props?: object | null): this is NodePath<t.BooleanLiteralTypeAnnotation>;
|
|
713
|
+
isBooleanTypeAnnotation(props?: object | null): this is NodePath<t.BooleanTypeAnnotation>;
|
|
714
|
+
isBreakStatement(props?: object | null): this is NodePath<t.BreakStatement>;
|
|
715
|
+
isCallExpression(props?: object | null): this is NodePath<t.CallExpression>;
|
|
716
|
+
isCatchClause(props?: object | null): this is NodePath<t.CatchClause>;
|
|
717
|
+
isClass(props?: object | null): this is NodePath<t.Class>;
|
|
718
|
+
isClassBody(props?: object | null): this is NodePath<t.ClassBody>;
|
|
719
|
+
isClassDeclaration(props?: object | null): this is NodePath<t.ClassDeclaration>;
|
|
720
|
+
isClassExpression(props?: object | null): this is NodePath<t.ClassExpression>;
|
|
721
|
+
isClassImplements(props?: object | null): this is NodePath<t.ClassImplements>;
|
|
722
|
+
isClassMethod(props?: object | null): this is NodePath<t.ClassMethod>;
|
|
723
|
+
isClassPrivateMethod(props?: object | null): this is NodePath<t.ClassPrivateMethod>;
|
|
724
|
+
isClassPrivateProperty(props?: object | null): this is NodePath<t.ClassPrivateProperty>;
|
|
725
|
+
isClassProperty(props?: object | null): this is NodePath<t.ClassProperty>;
|
|
726
|
+
isCompletionStatement(props?: object | null): this is NodePath<t.CompletionStatement>;
|
|
727
|
+
isConditional(props?: object | null): this is NodePath<t.Conditional>;
|
|
728
|
+
isConditionalExpression(props?: object | null): this is NodePath<t.ConditionalExpression>;
|
|
729
|
+
isContinueStatement(props?: object | null): this is NodePath<t.ContinueStatement>;
|
|
730
|
+
isDebuggerStatement(props?: object | null): this is NodePath<t.DebuggerStatement>;
|
|
731
|
+
isDeclaration(props?: object | null): this is NodePath<t.Declaration>;
|
|
732
|
+
isDeclareClass(props?: object | null): this is NodePath<t.DeclareClass>;
|
|
733
|
+
isDeclareExportAllDeclaration(props?: object | null): this is NodePath<t.DeclareExportAllDeclaration>;
|
|
734
|
+
isDeclareExportDeclaration(props?: object | null): this is NodePath<t.DeclareExportDeclaration>;
|
|
735
|
+
isDeclareFunction(props?: object | null): this is NodePath<t.DeclareFunction>;
|
|
736
|
+
isDeclareInterface(props?: object | null): this is NodePath<t.DeclareInterface>;
|
|
737
|
+
isDeclareModule(props?: object | null): this is NodePath<t.DeclareModule>;
|
|
738
|
+
isDeclareModuleExports(props?: object | null): this is NodePath<t.DeclareModuleExports>;
|
|
739
|
+
isDeclareOpaqueType(props?: object | null): this is NodePath<t.DeclareOpaqueType>;
|
|
740
|
+
isDeclareTypeAlias(props?: object | null): this is NodePath<t.DeclareTypeAlias>;
|
|
741
|
+
isDeclareVariable(props?: object | null): this is NodePath<t.DeclareVariable>;
|
|
742
|
+
isDeclaredPredicate(props?: object | null): this is NodePath<t.DeclaredPredicate>;
|
|
743
|
+
isDecorator(props?: object | null): this is NodePath<t.Decorator>;
|
|
744
|
+
isDirective(props?: object | null): this is NodePath<t.Directive>;
|
|
745
|
+
isDirectiveLiteral(props?: object | null): this is NodePath<t.DirectiveLiteral>;
|
|
746
|
+
isDoExpression(props?: object | null): this is NodePath<t.DoExpression>;
|
|
747
|
+
isDoWhileStatement(props?: object | null): this is NodePath<t.DoWhileStatement>;
|
|
748
|
+
isEmptyStatement(props?: object | null): this is NodePath<t.EmptyStatement>;
|
|
749
|
+
isEmptyTypeAnnotation(props?: object | null): this is NodePath<t.EmptyTypeAnnotation>;
|
|
750
|
+
isExistsTypeAnnotation(props?: object | null): this is NodePath<t.ExistsTypeAnnotation>;
|
|
751
|
+
isExportAllDeclaration(props?: object | null): this is NodePath<t.ExportAllDeclaration>;
|
|
752
|
+
isExportDeclaration(props?: object | null): this is NodePath<t.ExportDeclaration>;
|
|
753
|
+
isExportDefaultDeclaration(props?: object | null): this is NodePath<t.ExportDefaultDeclaration>;
|
|
754
|
+
isExportDefaultSpecifier(props?: object | null): this is NodePath<t.ExportDefaultSpecifier>;
|
|
755
|
+
isExportNamedDeclaration(props?: object | null): this is NodePath<t.ExportNamedDeclaration>;
|
|
756
|
+
isExportNamespaceSpecifier(props?: object | null): this is NodePath<t.ExportNamespaceSpecifier>;
|
|
757
|
+
isExportSpecifier(props?: object | null): this is NodePath<t.ExportSpecifier>;
|
|
758
|
+
isExpression(props?: object | null): this is NodePath<t.Expression>;
|
|
759
|
+
isExpressionStatement(props?: object | null): this is NodePath<t.ExpressionStatement>;
|
|
760
|
+
isExpressionWrapper(props?: object | null): this is NodePath<t.ExpressionWrapper>;
|
|
761
|
+
isFile(props?: object | null): this is NodePath<t.File>;
|
|
762
|
+
isFlow(props?: object | null): this is NodePath<t.Flow>;
|
|
763
|
+
isFlowBaseAnnotation(props?: object | null): this is NodePath<t.FlowBaseAnnotation>;
|
|
764
|
+
isFlowDeclaration(props?: object | null): this is NodePath<t.FlowDeclaration>;
|
|
765
|
+
isFlowPredicate(props?: object | null): this is NodePath<t.FlowPredicate>;
|
|
766
|
+
isFlowType(props?: object | null): this is NodePath<t.FlowType>;
|
|
767
|
+
isFor(props?: object | null): this is NodePath<t.For>;
|
|
768
|
+
isForInStatement(props?: object | null): this is NodePath<t.ForInStatement>;
|
|
769
|
+
isForOfStatement(props?: object | null): this is NodePath<t.ForOfStatement>;
|
|
770
|
+
isForStatement(props?: object | null): this is NodePath<t.ForStatement>;
|
|
771
|
+
isForXStatement(props?: object | null): this is NodePath<t.ForXStatement>;
|
|
772
|
+
isFunction(props?: object | null): this is NodePath<t.Function>;
|
|
773
|
+
isFunctionDeclaration(props?: object | null): this is NodePath<t.FunctionDeclaration>;
|
|
774
|
+
isFunctionExpression(props?: object | null): this is NodePath<t.FunctionExpression>;
|
|
775
|
+
isFunctionParent(props?: object | null): this is NodePath<t.FunctionParent>;
|
|
776
|
+
isFunctionTypeAnnotation(props?: object | null): this is NodePath<t.FunctionTypeAnnotation>;
|
|
777
|
+
isFunctionTypeParam(props?: object | null): this is NodePath<t.FunctionTypeParam>;
|
|
778
|
+
isGenericTypeAnnotation(props?: object | null): this is NodePath<t.GenericTypeAnnotation>;
|
|
779
|
+
isIdentifier(props?: object | null): this is NodePath<t.Identifier>;
|
|
780
|
+
isIfStatement(props?: object | null): this is NodePath<t.IfStatement>;
|
|
781
|
+
isImmutable(props?: object | null): this is NodePath<t.Immutable>;
|
|
782
|
+
isImport(props?: object | null): this is NodePath<t.Import>;
|
|
783
|
+
isImportDeclaration(props?: object | null): this is NodePath<t.ImportDeclaration>;
|
|
784
|
+
isImportDefaultSpecifier(props?: object | null): this is NodePath<t.ImportDefaultSpecifier>;
|
|
785
|
+
isImportNamespaceSpecifier(props?: object | null): this is NodePath<t.ImportNamespaceSpecifier>;
|
|
786
|
+
isImportSpecifier(props?: object | null): this is NodePath<t.ImportSpecifier>;
|
|
787
|
+
isInferredPredicate(props?: object | null): this is NodePath<t.InferredPredicate>;
|
|
788
|
+
isInterfaceDeclaration(props?: object | null): this is NodePath<t.InterfaceDeclaration>;
|
|
789
|
+
isInterfaceExtends(props?: object | null): this is NodePath<t.InterfaceExtends>;
|
|
790
|
+
isInterfaceTypeAnnotation(props?: object | null): this is NodePath<t.InterfaceTypeAnnotation>;
|
|
791
|
+
isInterpreterDirective(props?: object | null): this is NodePath<t.InterpreterDirective>;
|
|
792
|
+
isIntersectionTypeAnnotation(props?: object | null): this is NodePath<t.IntersectionTypeAnnotation>;
|
|
793
|
+
isJSX(props?: object | null): this is NodePath<t.JSX>;
|
|
794
|
+
isJSXAttribute(props?: object | null): this is NodePath<t.JSXAttribute>;
|
|
795
|
+
isJSXClosingElement(props?: object | null): this is NodePath<t.JSXClosingElement>;
|
|
796
|
+
isJSXClosingFragment(props?: object | null): this is NodePath<t.JSXClosingFragment>;
|
|
797
|
+
isJSXElement(props?: object | null): this is NodePath<t.JSXElement>;
|
|
798
|
+
isJSXEmptyExpression(props?: object | null): this is NodePath<t.JSXEmptyExpression>;
|
|
799
|
+
isJSXExpressionContainer(props?: object | null): this is NodePath<t.JSXExpressionContainer>;
|
|
800
|
+
isJSXFragment(props?: object | null): this is NodePath<t.JSXFragment>;
|
|
801
|
+
isJSXIdentifier(props?: object | null): this is NodePath<t.JSXIdentifier>;
|
|
802
|
+
isJSXMemberExpression(props?: object | null): this is NodePath<t.JSXMemberExpression>;
|
|
803
|
+
isJSXNamespacedName(props?: object | null): this is NodePath<t.JSXNamespacedName>;
|
|
804
|
+
isJSXOpeningElement(props?: object | null): this is NodePath<t.JSXOpeningElement>;
|
|
805
|
+
isJSXOpeningFragment(props?: object | null): this is NodePath<t.JSXOpeningFragment>;
|
|
806
|
+
isJSXSpreadAttribute(props?: object | null): this is NodePath<t.JSXSpreadAttribute>;
|
|
807
|
+
isJSXSpreadChild(props?: object | null): this is NodePath<t.JSXSpreadChild>;
|
|
808
|
+
isJSXText(props?: object | null): this is NodePath<t.JSXText>;
|
|
809
|
+
isLVal(props?: object | null): this is NodePath<t.LVal>;
|
|
810
|
+
isLabeledStatement(props?: object | null): this is NodePath<t.LabeledStatement>;
|
|
811
|
+
isLiteral(props?: object | null): this is NodePath<t.Literal>;
|
|
812
|
+
isLogicalExpression(props?: object | null): this is NodePath<t.LogicalExpression>;
|
|
813
|
+
isLoop(props?: object | null): this is NodePath<t.Loop>;
|
|
814
|
+
isMemberExpression(props?: object | null): this is NodePath<t.MemberExpression>;
|
|
815
|
+
isMetaProperty(props?: object | null): this is NodePath<t.MetaProperty>;
|
|
816
|
+
isMethod(props?: object | null): this is NodePath<t.Method>;
|
|
817
|
+
isMixedTypeAnnotation(props?: object | null): this is NodePath<t.MixedTypeAnnotation>;
|
|
818
|
+
isModuleDeclaration(props?: object | null): this is NodePath<t.ModuleDeclaration>;
|
|
819
|
+
isModuleSpecifier(props?: object | null): this is NodePath<t.ModuleSpecifier>;
|
|
820
|
+
isNewExpression(props?: object | null): this is NodePath<t.NewExpression>;
|
|
821
|
+
isNoop(props?: object | null): this is NodePath<t.Noop>;
|
|
822
|
+
isNullLiteral(props?: object | null): this is NodePath<t.NullLiteral>;
|
|
823
|
+
isNullLiteralTypeAnnotation(props?: object | null): this is NodePath<t.NullLiteralTypeAnnotation>;
|
|
824
|
+
isNullableTypeAnnotation(props?: object | null): this is NodePath<t.NullableTypeAnnotation>;
|
|
825
|
+
isNumberLiteralTypeAnnotation(props?: object | null): this is NodePath<t.NumberLiteralTypeAnnotation>;
|
|
826
|
+
isNumberTypeAnnotation(props?: object | null): this is NodePath<t.NumberTypeAnnotation>;
|
|
827
|
+
isNumericLiteral(props?: object | null): this is NodePath<t.NumericLiteral>;
|
|
828
|
+
isObjectExpression(props?: object | null): this is NodePath<t.ObjectExpression>;
|
|
829
|
+
isObjectMember(props?: object | null): this is NodePath<t.ObjectMember>;
|
|
830
|
+
isObjectMethod(props?: object | null): this is NodePath<t.ObjectMethod>;
|
|
831
|
+
isObjectPattern(props?: object | null): this is NodePath<t.ObjectPattern>;
|
|
832
|
+
isObjectProperty(props?: object | null): this is NodePath<t.ObjectProperty>;
|
|
833
|
+
isObjectTypeAnnotation(props?: object | null): this is NodePath<t.ObjectTypeAnnotation>;
|
|
834
|
+
isObjectTypeCallProperty(props?: object | null): this is NodePath<t.ObjectTypeCallProperty>;
|
|
835
|
+
isObjectTypeIndexer(props?: object | null): this is NodePath<t.ObjectTypeIndexer>;
|
|
836
|
+
isObjectTypeInternalSlot(props?: object | null): this is NodePath<t.ObjectTypeInternalSlot>;
|
|
837
|
+
isObjectTypeProperty(props?: object | null): this is NodePath<t.ObjectTypeProperty>;
|
|
838
|
+
isObjectTypeSpreadProperty(props?: object | null): this is NodePath<t.ObjectTypeSpreadProperty>;
|
|
839
|
+
isOpaqueType(props?: object | null): this is NodePath<t.OpaqueType>;
|
|
840
|
+
isOptionalCallExpression(props?: object | null): this is NodePath<t.OptionalCallExpression>;
|
|
841
|
+
isOptionalMemberExpression(props?: object | null): this is NodePath<t.OptionalMemberExpression>;
|
|
842
|
+
isParenthesizedExpression(props?: object | null): this is NodePath<t.ParenthesizedExpression>;
|
|
843
|
+
isPattern(props?: object | null): this is NodePath<t.Pattern>;
|
|
844
|
+
isPatternLike(props?: object | null): this is NodePath<t.PatternLike>;
|
|
845
|
+
isPipelineBareFunction(props?: object | null): this is NodePath<t.PipelineBareFunction>;
|
|
846
|
+
isPipelinePrimaryTopicReference(props?: object | null): this is NodePath<t.PipelinePrimaryTopicReference>;
|
|
847
|
+
isPipelineTopicExpression(props?: object | null): this is NodePath<t.PipelineTopicExpression>;
|
|
848
|
+
isPrivate(props?: object | null): this is NodePath<t.Private>;
|
|
849
|
+
isPrivateName(props?: object | null): this is NodePath<t.PrivateName>;
|
|
850
|
+
isProgram(props?: object | null): this is NodePath<t.Program>;
|
|
851
|
+
isProperty(props?: object | null): this is NodePath<t.Property>;
|
|
852
|
+
isPureish(props?: object | null): this is NodePath<t.Pureish>;
|
|
853
|
+
isQualifiedTypeIdentifier(props?: object | null): this is NodePath<t.QualifiedTypeIdentifier>;
|
|
854
|
+
isRegExpLiteral(props?: object | null): this is NodePath<t.RegExpLiteral>;
|
|
855
|
+
isRestElement(props?: object | null): this is NodePath<t.RestElement>;
|
|
856
|
+
isReturnStatement(props?: object | null): this is NodePath<t.ReturnStatement>;
|
|
857
|
+
isScopable(props?: object | null): this is NodePath<t.Scopable>;
|
|
858
|
+
isSequenceExpression(props?: object | null): this is NodePath<t.SequenceExpression>;
|
|
859
|
+
isSpreadElement(props?: object | null): this is NodePath<t.SpreadElement>;
|
|
860
|
+
isStatement(props?: object | null): this is NodePath<t.Statement>;
|
|
861
|
+
isStringLiteral(props?: object | null): this is NodePath<t.StringLiteral>;
|
|
862
|
+
isStringLiteralTypeAnnotation(props?: object | null): this is NodePath<t.StringLiteralTypeAnnotation>;
|
|
863
|
+
isStringTypeAnnotation(props?: object | null): this is NodePath<t.StringTypeAnnotation>;
|
|
864
|
+
isSuper(props?: object | null): this is NodePath<t.Super>;
|
|
865
|
+
isSwitchCase(props?: object | null): this is NodePath<t.SwitchCase>;
|
|
866
|
+
isSwitchStatement(props?: object | null): this is NodePath<t.SwitchStatement>;
|
|
867
|
+
isTSAnyKeyword(props?: object | null): this is NodePath<t.TSAnyKeyword>;
|
|
868
|
+
isTSArrayType(props?: object | null): this is NodePath<t.TSArrayType>;
|
|
869
|
+
isTSAsExpression(props?: object | null): this is NodePath<t.TSAsExpression>;
|
|
870
|
+
isTSBooleanKeyword(props?: object | null): this is NodePath<t.TSBooleanKeyword>;
|
|
871
|
+
isTSCallSignatureDeclaration(props?: object | null): this is NodePath<t.TSCallSignatureDeclaration>;
|
|
872
|
+
isTSConditionalType(props?: object | null): this is NodePath<t.TSConditionalType>;
|
|
873
|
+
isTSConstructSignatureDeclaration(props?: object | null): this is NodePath<t.TSConstructSignatureDeclaration>;
|
|
874
|
+
isTSConstructorType(props?: object | null): this is NodePath<t.TSConstructorType>;
|
|
875
|
+
isTSDeclareFunction(props?: object | null): this is NodePath<t.TSDeclareFunction>;
|
|
876
|
+
isTSDeclareMethod(props?: object | null): this is NodePath<t.TSDeclareMethod>;
|
|
877
|
+
isTSEntityName(props?: object | null): this is NodePath<t.TSEntityName>;
|
|
878
|
+
isTSEnumDeclaration(props?: object | null): this is NodePath<t.TSEnumDeclaration>;
|
|
879
|
+
isTSEnumMember(props?: object | null): this is NodePath<t.TSEnumMember>;
|
|
880
|
+
isTSExportAssignment(props?: object | null): this is NodePath<t.TSExportAssignment>;
|
|
881
|
+
isTSExpressionWithTypeArguments(props?: object | null): this is NodePath<t.TSExpressionWithTypeArguments>;
|
|
882
|
+
isTSExternalModuleReference(props?: object | null): this is NodePath<t.TSExternalModuleReference>;
|
|
883
|
+
isTSFunctionType(props?: object | null): this is NodePath<t.TSFunctionType>;
|
|
884
|
+
isTSImportEqualsDeclaration(props?: object | null): this is NodePath<t.TSImportEqualsDeclaration>;
|
|
885
|
+
isTSImportType(props?: object | null): this is NodePath<t.TSImportType>;
|
|
886
|
+
isTSIndexSignature(props?: object | null): this is NodePath<t.TSIndexSignature>;
|
|
887
|
+
isTSIndexedAccessType(props?: object | null): this is NodePath<t.TSIndexedAccessType>;
|
|
888
|
+
isTSInferType(props?: object | null): this is NodePath<t.TSInferType>;
|
|
889
|
+
isTSInterfaceBody(props?: object | null): this is NodePath<t.TSInterfaceBody>;
|
|
890
|
+
isTSInterfaceDeclaration(props?: object | null): this is NodePath<t.TSInterfaceDeclaration>;
|
|
891
|
+
isTSIntersectionType(props?: object | null): this is NodePath<t.TSIntersectionType>;
|
|
892
|
+
isTSLiteralType(props?: object | null): this is NodePath<t.TSLiteralType>;
|
|
893
|
+
isTSMappedType(props?: object | null): this is NodePath<t.TSMappedType>;
|
|
894
|
+
isTSMethodSignature(props?: object | null): this is NodePath<t.TSMethodSignature>;
|
|
895
|
+
isTSModuleBlock(props?: object | null): this is NodePath<t.TSModuleBlock>;
|
|
896
|
+
isTSModuleDeclaration(props?: object | null): this is NodePath<t.TSModuleDeclaration>;
|
|
897
|
+
isTSNamespaceExportDeclaration(props?: object | null): this is NodePath<t.TSNamespaceExportDeclaration>;
|
|
898
|
+
isTSNeverKeyword(props?: object | null): this is NodePath<t.TSNeverKeyword>;
|
|
899
|
+
isTSNonNullExpression(props?: object | null): this is NodePath<t.TSNonNullExpression>;
|
|
900
|
+
isTSNullKeyword(props?: object | null): this is NodePath<t.TSNullKeyword>;
|
|
901
|
+
isTSNumberKeyword(props?: object | null): this is NodePath<t.TSNumberKeyword>;
|
|
902
|
+
isTSObjectKeyword(props?: object | null): this is NodePath<t.TSObjectKeyword>;
|
|
903
|
+
isTSOptionalType(props?: object | null): this is NodePath<t.TSOptionalType>;
|
|
904
|
+
isTSParameterProperty(props?: object | null): this is NodePath<t.TSParameterProperty>;
|
|
905
|
+
isTSParenthesizedType(props?: object | null): this is NodePath<t.TSParenthesizedType>;
|
|
906
|
+
isTSPropertySignature(props?: object | null): this is NodePath<t.TSPropertySignature>;
|
|
907
|
+
isTSQualifiedName(props?: object | null): this is NodePath<t.TSQualifiedName>;
|
|
908
|
+
isTSRestType(props?: object | null): this is NodePath<t.TSRestType>;
|
|
909
|
+
isTSStringKeyword(props?: object | null): this is NodePath<t.TSStringKeyword>;
|
|
910
|
+
isTSSymbolKeyword(props?: object | null): this is NodePath<t.TSSymbolKeyword>;
|
|
911
|
+
isTSThisType(props?: object | null): this is NodePath<t.TSThisType>;
|
|
912
|
+
isTSTupleType(props?: object | null): this is NodePath<t.TSTupleType>;
|
|
913
|
+
isTSType(props?: object | null): this is NodePath<t.TSType>;
|
|
914
|
+
isTSTypeAliasDeclaration(props?: object | null): this is NodePath<t.TSTypeAliasDeclaration>;
|
|
915
|
+
isTSTypeAnnotation(props?: object | null): this is NodePath<t.TSTypeAnnotation>;
|
|
916
|
+
isTSTypeAssertion(props?: object | null): this is NodePath<t.TSTypeAssertion>;
|
|
917
|
+
isTSTypeElement(props?: object | null): this is NodePath<t.TSTypeElement>;
|
|
918
|
+
isTSTypeLiteral(props?: object | null): this is NodePath<t.TSTypeLiteral>;
|
|
919
|
+
isTSTypeOperator(props?: object | null): this is NodePath<t.TSTypeOperator>;
|
|
920
|
+
isTSTypeParameter(props?: object | null): this is NodePath<t.TSTypeParameter>;
|
|
921
|
+
isTSTypeParameterDeclaration(props?: object | null): this is NodePath<t.TSTypeParameterDeclaration>;
|
|
922
|
+
isTSTypeParameterInstantiation(props?: object | null): this is NodePath<t.TSTypeParameterInstantiation>;
|
|
923
|
+
isTSTypePredicate(props?: object | null): this is NodePath<t.TSTypePredicate>;
|
|
924
|
+
isTSTypeQuery(props?: object | null): this is NodePath<t.TSTypeQuery>;
|
|
925
|
+
isTSTypeReference(props?: object | null): this is NodePath<t.TSTypeReference>;
|
|
926
|
+
isTSUndefinedKeyword(props?: object | null): this is NodePath<t.TSUndefinedKeyword>;
|
|
927
|
+
isTSUnionType(props?: object | null): this is NodePath<t.TSUnionType>;
|
|
928
|
+
isTSUnknownKeyword(props?: object | null): this is NodePath<t.TSUnknownKeyword>;
|
|
929
|
+
isTSVoidKeyword(props?: object | null): this is NodePath<t.TSVoidKeyword>;
|
|
930
|
+
isTaggedTemplateExpression(props?: object | null): this is NodePath<t.TaggedTemplateExpression>;
|
|
931
|
+
isTemplateElement(props?: object | null): this is NodePath<t.TemplateElement>;
|
|
932
|
+
isTemplateLiteral(props?: object | null): this is NodePath<t.TemplateLiteral>;
|
|
933
|
+
isTerminatorless(props?: object | null): this is NodePath<t.Terminatorless>;
|
|
934
|
+
isThisExpression(props?: object | null): this is NodePath<t.ThisExpression>;
|
|
935
|
+
isThisTypeAnnotation(props?: object | null): this is NodePath<t.ThisTypeAnnotation>;
|
|
936
|
+
isThrowStatement(props?: object | null): this is NodePath<t.ThrowStatement>;
|
|
937
|
+
isTryStatement(props?: object | null): this is NodePath<t.TryStatement>;
|
|
938
|
+
isTupleTypeAnnotation(props?: object | null): this is NodePath<t.TupleTypeAnnotation>;
|
|
939
|
+
isTypeAlias(props?: object | null): this is NodePath<t.TypeAlias>;
|
|
940
|
+
isTypeAnnotation(props?: object | null): this is NodePath<t.TypeAnnotation>;
|
|
941
|
+
isTypeCastExpression(props?: object | null): this is NodePath<t.TypeCastExpression>;
|
|
942
|
+
isTypeParameter(props?: object | null): this is NodePath<t.TypeParameter>;
|
|
943
|
+
isTypeParameterDeclaration(props?: object | null): this is NodePath<t.TypeParameterDeclaration>;
|
|
944
|
+
isTypeParameterInstantiation(props?: object | null): this is NodePath<t.TypeParameterInstantiation>;
|
|
945
|
+
isTypeofTypeAnnotation(props?: object | null): this is NodePath<t.TypeofTypeAnnotation>;
|
|
946
|
+
isUnaryExpression(props?: object | null): this is NodePath<t.UnaryExpression>;
|
|
947
|
+
isUnaryLike(props?: object | null): this is NodePath<t.UnaryLike>;
|
|
948
|
+
isUnionTypeAnnotation(props?: object | null): this is NodePath<t.UnionTypeAnnotation>;
|
|
949
|
+
isUpdateExpression(props?: object | null): this is NodePath<t.UpdateExpression>;
|
|
950
|
+
isUserWhitespacable(props?: object | null): this is NodePath<t.UserWhitespacable>;
|
|
951
|
+
isVariableDeclaration(props?: object | null): this is NodePath<t.VariableDeclaration>;
|
|
952
|
+
isVariableDeclarator(props?: object | null): this is NodePath<t.VariableDeclarator>;
|
|
953
|
+
isVariance(props?: object | null): this is NodePath<t.Variance>;
|
|
954
|
+
isVoidTypeAnnotation(props?: object | null): this is NodePath<t.VoidTypeAnnotation>;
|
|
955
|
+
isWhile(props?: object | null): this is NodePath<t.While>;
|
|
956
|
+
isWhileStatement(props?: object | null): this is NodePath<t.WhileStatement>;
|
|
957
|
+
isWithStatement(props?: object | null): this is NodePath<t.WithStatement>;
|
|
958
|
+
isYieldExpression(props?: object | null): this is NodePath<t.YieldExpression>;
|
|
959
|
+
isBindingIdentifier(props?: object | null): this is NodePath<t.Identifier>;
|
|
960
|
+
isBlockScoped(
|
|
961
|
+
props?: object | null,
|
|
962
|
+
): this is NodePath<t.FunctionDeclaration | t.ClassDeclaration | t.VariableDeclaration>;
|
|
963
|
+
// isGenerated(props?: object | null): this is NodePath<t.Generated>;
|
|
964
|
+
// isPure(props?: object | null): this is NodePath<t.Pure>;
|
|
965
|
+
// isReferenced(props?: object | null): this is NodePath<t.Referenced>;
|
|
966
|
+
isReferencedIdentifier(props?: object | null): this is NodePath<t.Identifier | t.JSXIdentifier>;
|
|
967
|
+
isReferencedMemberExpression(props?: object | null): this is NodePath<t.MemberExpression>;
|
|
968
|
+
isScope(props?: object | null): this is NodePath<t.Scopable>;
|
|
969
|
+
// isUser(props?: object | null): this is NodePath<t.User>;
|
|
970
|
+
isVar(props?: object | null): this is NodePath<t.VariableDeclaration>;
|
|
967
971
|
//#endregion
|
|
968
972
|
|
|
969
973
|
//#region ------------------------- assertXXX -------------------------
|