1 line
117 KiB
JSON
1 line
117 KiB
JSON
{"ast":null,"code":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.isArrayExpression = isArrayExpression;\nexports.isAssignmentExpression = isAssignmentExpression;\nexports.isBinaryExpression = isBinaryExpression;\nexports.isInterpreterDirective = isInterpreterDirective;\nexports.isDirective = isDirective;\nexports.isDirectiveLiteral = isDirectiveLiteral;\nexports.isBlockStatement = isBlockStatement;\nexports.isBreakStatement = isBreakStatement;\nexports.isCallExpression = isCallExpression;\nexports.isCatchClause = isCatchClause;\nexports.isConditionalExpression = isConditionalExpression;\nexports.isContinueStatement = isContinueStatement;\nexports.isDebuggerStatement = isDebuggerStatement;\nexports.isDoWhileStatement = isDoWhileStatement;\nexports.isEmptyStatement = isEmptyStatement;\nexports.isExpressionStatement = isExpressionStatement;\nexports.isFile = isFile;\nexports.isForInStatement = isForInStatement;\nexports.isForStatement = isForStatement;\nexports.isFunctionDeclaration = isFunctionDeclaration;\nexports.isFunctionExpression = isFunctionExpression;\nexports.isIdentifier = isIdentifier;\nexports.isIfStatement = isIfStatement;\nexports.isLabeledStatement = isLabeledStatement;\nexports.isStringLiteral = isStringLiteral;\nexports.isNumericLiteral = isNumericLiteral;\nexports.isNullLiteral = isNullLiteral;\nexports.isBooleanLiteral = isBooleanLiteral;\nexports.isRegExpLiteral = isRegExpLiteral;\nexports.isLogicalExpression = isLogicalExpression;\nexports.isMemberExpression = isMemberExpression;\nexports.isNewExpression = isNewExpression;\nexports.isProgram = isProgram;\nexports.isObjectExpression = isObjectExpression;\nexports.isObjectMethod = isObjectMethod;\nexports.isObjectProperty = isObjectProperty;\nexports.isRestElement = isRestElement;\nexports.isReturnStatement = isReturnStatement;\nexports.isSequenceExpression = isSequenceExpression;\nexports.isParenthesizedExpression = isParenthesizedExpression;\nexports.isSwitchCase = isSwitchCase;\nexports.isSwitchStatement = isSwitchStatement;\nexports.isThisExpression = isThisExpression;\nexports.isThrowStatement = isThrowStatement;\nexports.isTryStatement = isTryStatement;\nexports.isUnaryExpression = isUnaryExpression;\nexports.isUpdateExpression = isUpdateExpression;\nexports.isVariableDeclaration = isVariableDeclaration;\nexports.isVariableDeclarator = isVariableDeclarator;\nexports.isWhileStatement = isWhileStatement;\nexports.isWithStatement = isWithStatement;\nexports.isAssignmentPattern = isAssignmentPattern;\nexports.isArrayPattern = isArrayPattern;\nexports.isArrowFunctionExpression = isArrowFunctionExpression;\nexports.isClassBody = isClassBody;\nexports.isClassDeclaration = isClassDeclaration;\nexports.isClassExpression = isClassExpression;\nexports.isExportAllDeclaration = isExportAllDeclaration;\nexports.isExportDefaultDeclaration = isExportDefaultDeclaration;\nexports.isExportNamedDeclaration = isExportNamedDeclaration;\nexports.isExportSpecifier = isExportSpecifier;\nexports.isForOfStatement = isForOfStatement;\nexports.isImportDeclaration = isImportDeclaration;\nexports.isImportDefaultSpecifier = isImportDefaultSpecifier;\nexports.isImportNamespaceSpecifier = isImportNamespaceSpecifier;\nexports.isImportSpecifier = isImportSpecifier;\nexports.isMetaProperty = isMetaProperty;\nexports.isClassMethod = isClassMethod;\nexports.isObjectPattern = isObjectPattern;\nexports.isSpreadElement = isSpreadElement;\nexports.isSuper = isSuper;\nexports.isTaggedTemplateExpression = isTaggedTemplateExpression;\nexports.isTemplateElement = isTemplateElement;\nexports.isTemplateLiteral = isTemplateLiteral;\nexports.isYieldExpression = isYieldExpression;\nexports.isAnyTypeAnnotation = isAnyTypeAnnotation;\nexports.isArrayTypeAnnotation = isArrayTypeAnnotation;\nexports.isBooleanTypeAnnotation = isBooleanTypeAnnotation;\nexports.isBooleanLiteralTypeAnnotation = isBooleanLiteralTypeAnnotation;\nexports.isNullLiteralTypeAnnotation = isNullLiteralTypeAnnotation;\nexports.isClassImplements = isClassImplements;\nexports.isDeclareClass = isDeclareClass;\nexports.isDeclareFunction = isDeclareFunction;\nexports.isDeclareInterface = isDeclareInterface;\nexports.isDeclareModule = isDeclareModule;\nexports.isDeclareModuleExports = isDeclareModuleExports;\nexports.isDeclareTypeAlias = isDeclareTypeAlias;\nexports.isDeclareOpaqueType = isDeclareOpaqueType;\nexports.isDeclareVariable = isDeclareVariable;\nexports.isDeclareExportDeclaration = isDeclareExportDeclaration;\nexports.isDeclareExportAllDeclaration = isDeclareExportAllDeclaration;\nexports.isDeclaredPredicate = isDeclaredPredicate;\nexports.isExistsTypeAnnotation = isExistsTypeAnnotation;\nexports.isFunctionTypeAnnotation = isFunctionTypeAnnotation;\nexports.isFunctionTypeParam = isFunctionTypeParam;\nexports.isGenericTypeAnnotation = isGenericTypeAnnotation;\nexports.isInferredPredicate = isInferredPredicate;\nexports.isInterfaceExtends = isInterfaceExtends;\nexports.isInterfaceDeclaration = isInterfaceDeclaration;\nexports.isInterfaceTypeAnnotation = isInterfaceTypeAnnotation;\nexports.isIntersectionTypeAnnotation = isIntersectionTypeAnnotation;\nexports.isMixedTypeAnnotation = isMixedTypeAnnotation;\nexports.isEmptyTypeAnnotation = isEmptyTypeAnnotation;\nexports.isNullableTypeAnnotation = isNullableTypeAnnotation;\nexports.isNumberLiteralTypeAnnotation = isNumberLiteralTypeAnnotation;\nexports.isNumberTypeAnnotation = isNumberTypeAnnotation;\nexports.isObjectTypeAnnotation = isObjectTypeAnnotation;\nexports.isObjectTypeInternalSlot = isObjectTypeInternalSlot;\nexports.isObjectTypeCallProperty = isObjectTypeCallProperty;\nexports.isObjectTypeIndexer = isObjectTypeIndexer;\nexports.isObjectTypeProperty = isObjectTypeProperty;\nexports.isObjectTypeSpreadProperty = isObjectTypeSpreadProperty;\nexports.isOpaqueType = isOpaqueType;\nexports.isQualifiedTypeIdentifier = isQualifiedTypeIdentifier;\nexports.isStringLiteralTypeAnnotation = isStringLiteralTypeAnnotation;\nexports.isStringTypeAnnotation = isStringTypeAnnotation;\nexports.isThisTypeAnnotation = isThisTypeAnnotation;\nexports.isTupleTypeAnnotation = isTupleTypeAnnotation;\nexports.isTypeofTypeAnnotation = isTypeofTypeAnnotation;\nexports.isTypeAlias = isTypeAlias;\nexports.isTypeAnnotation = isTypeAnnotation;\nexports.isTypeCastExpression = isTypeCastExpression;\nexports.isTypeParameter = isTypeParameter;\nexports.isTypeParameterDeclaration = isTypeParameterDeclaration;\nexports.isTypeParameterInstantiation = isTypeParameterInstantiation;\nexports.isUnionTypeAnnotation = isUnionTypeAnnotation;\nexports.isVariance = isVariance;\nexports.isVoidTypeAnnotation = isVoidTypeAnnotation;\nexports.isEnumDeclaration = isEnumDeclaration;\nexports.isEnumBooleanBody = isEnumBooleanBody;\nexports.isEnumNumberBody = isEnumNumberBody;\nexports.isEnumStringBody = isEnumStringBody;\nexports.isEnumSymbolBody = isEnumSymbolBody;\nexports.isEnumBooleanMember = isEnumBooleanMember;\nexports.isEnumNumberMember = isEnumNumberMember;\nexports.isEnumStringMember = isEnumStringMember;\nexports.isEnumDefaultedMember = isEnumDefaultedMember;\nexports.isJSXAttribute = isJSXAttribute;\nexports.isJSXClosingElement = isJSXClosingElement;\nexports.isJSXElement = isJSXElement;\nexports.isJSXEmptyExpression = isJSXEmptyExpression;\nexports.isJSXExpressionContainer = isJSXExpressionContainer;\nexports.isJSXSpreadChild = isJSXSpreadChild;\nexports.isJSXIdentifier = isJSXIdentifier;\nexports.isJSXMemberExpression = isJSXMemberExpression;\nexports.isJSXNamespacedName = isJSXNamespacedName;\nexports.isJSXOpeningElement = isJSXOpeningElement;\nexports.isJSXSpreadAttribute = isJSXSpreadAttribute;\nexports.isJSXText = isJSXText;\nexports.isJSXFragment = isJSXFragment;\nexports.isJSXOpeningFragment = isJSXOpeningFragment;\nexports.isJSXClosingFragment = isJSXClosingFragment;\nexports.isNoop = isNoop;\nexports.isPlaceholder = isPlaceholder;\nexports.isV8IntrinsicIdentifier = isV8IntrinsicIdentifier;\nexports.isArgumentPlaceholder = isArgumentPlaceholder;\nexports.isAwaitExpression = isAwaitExpression;\nexports.isBindExpression = isBindExpression;\nexports.isClassProperty = isClassProperty;\nexports.isOptionalMemberExpression = isOptionalMemberExpression;\nexports.isPipelineTopicExpression = isPipelineTopicExpression;\nexports.isPipelineBareFunction = isPipelineBareFunction;\nexports.isPipelinePrimaryTopicReference = isPipelinePrimaryTopicReference;\nexports.isOptionalCallExpression = isOptionalCallExpression;\nexports.isClassPrivateProperty = isClassPrivateProperty;\nexports.isClassPrivateMethod = isClassPrivateMethod;\nexports.isImport = isImport;\nexports.isDecorator = isDecorator;\nexports.isDoExpression = isDoExpression;\nexports.isExportDefaultSpecifier = isExportDefaultSpecifier;\nexports.isExportNamespaceSpecifier = isExportNamespaceSpecifier;\nexports.isPrivateName = isPrivateName;\nexports.isBigIntLiteral = isBigIntLiteral;\nexports.isTSParameterProperty = isTSParameterProperty;\nexports.isTSDeclareFunction = isTSDeclareFunction;\nexports.isTSDeclareMethod = isTSDeclareMethod;\nexports.isTSQualifiedName = isTSQualifiedName;\nexports.isTSCallSignatureDeclaration = isTSCallSignatureDeclaration;\nexports.isTSConstructSignatureDeclaration = isTSConstructSignatureDeclaration;\nexports.isTSPropertySignature = isTSPropertySignature;\nexports.isTSMethodSignature = isTSMethodSignature;\nexports.isTSIndexSignature = isTSIndexSignature;\nexports.isTSAnyKeyword = isTSAnyKeyword;\nexports.isTSBooleanKeyword = isTSBooleanKeyword;\nexports.isTSBigIntKeyword = isTSBigIntKeyword;\nexports.isTSNeverKeyword = isTSNeverKeyword;\nexports.isTSNullKeyword = isTSNullKeyword;\nexports.isTSNumberKeyword = isTSNumberKeyword;\nexports.isTSObjectKeyword = isTSObjectKeyword;\nexports.isTSStringKeyword = isTSStringKeyword;\nexports.isTSSymbolKeyword = isTSSymbolKeyword;\nexports.isTSUndefinedKeyword = isTSUndefinedKeyword;\nexports.isTSUnknownKeyword = isTSUnknownKeyword;\nexports.isTSVoidKeyword = isTSVoidKeyword;\nexports.isTSThisType = isTSThisType;\nexports.isTSFunctionType = isTSFunctionType;\nexports.isTSConstructorType = isTSConstructorType;\nexports.isTSTypeReference = isTSTypeReference;\nexports.isTSTypePredicate = isTSTypePredicate;\nexports.isTSTypeQuery = isTSTypeQuery;\nexports.isTSTypeLiteral = isTSTypeLiteral;\nexports.isTSArrayType = isTSArrayType;\nexports.isTSTupleType = isTSTupleType;\nexports.isTSOptionalType = isTSOptionalType;\nexports.isTSRestType = isTSRestType;\nexports.isTSUnionType = isTSUnionType;\nexports.isTSIntersectionType = isTSIntersectionType;\nexports.isTSConditionalType = isTSConditionalType;\nexports.isTSInferType = isTSInferType;\nexports.isTSParenthesizedType = isTSParenthesizedType;\nexports.isTSTypeOperator = isTSTypeOperator;\nexports.isTSIndexedAccessType = isTSIndexedAccessType;\nexports.isTSMappedType = isTSMappedType;\nexports.isTSLiteralType = isTSLiteralType;\nexports.isTSExpressionWithTypeArguments = isTSExpressionWithTypeArguments;\nexports.isTSInterfaceDeclaration = isTSInterfaceDeclaration;\nexports.isTSInterfaceBody = isTSInterfaceBody;\nexports.isTSTypeAliasDeclaration = isTSTypeAliasDeclaration;\nexports.isTSAsExpression = isTSAsExpression;\nexports.isTSTypeAssertion = isTSTypeAssertion;\nexports.isTSEnumDeclaration = isTSEnumDeclaration;\nexports.isTSEnumMember = isTSEnumMember;\nexports.isTSModuleDeclaration = isTSModuleDeclaration;\nexports.isTSModuleBlock = isTSModuleBlock;\nexports.isTSImportType = isTSImportType;\nexports.isTSImportEqualsDeclaration = isTSImportEqualsDeclaration;\nexports.isTSExternalModuleReference = isTSExternalModuleReference;\nexports.isTSNonNullExpression = isTSNonNullExpression;\nexports.isTSExportAssignment = isTSExportAssignment;\nexports.isTSNamespaceExportDeclaration = isTSNamespaceExportDeclaration;\nexports.isTSTypeAnnotation = isTSTypeAnnotation;\nexports.isTSTypeParameterInstantiation = isTSTypeParameterInstantiation;\nexports.isTSTypeParameterDeclaration = isTSTypeParameterDeclaration;\nexports.isTSTypeParameter = isTSTypeParameter;\nexports.isExpression = isExpression;\nexports.isBinary = isBinary;\nexports.isScopable = isScopable;\nexports.isBlockParent = isBlockParent;\nexports.isBlock = isBlock;\nexports.isStatement = isStatement;\nexports.isTerminatorless = isTerminatorless;\nexports.isCompletionStatement = isCompletionStatement;\nexports.isConditional = isConditional;\nexports.isLoop = isLoop;\nexports.isWhile = isWhile;\nexports.isExpressionWrapper = isExpressionWrapper;\nexports.isFor = isFor;\nexports.isForXStatement = isForXStatement;\nexports.isFunction = isFunction;\nexports.isFunctionParent = isFunctionParent;\nexports.isPureish = isPureish;\nexports.isDeclaration = isDeclaration;\nexports.isPatternLike = isPatternLike;\nexports.isLVal = isLVal;\nexports.isTSEntityName = isTSEntityName;\nexports.isLiteral = isLiteral;\nexports.isImmutable = isImmutable;\nexports.isUserWhitespacable = isUserWhitespacable;\nexports.isMethod = isMethod;\nexports.isObjectMember = isObjectMember;\nexports.isProperty = isProperty;\nexports.isUnaryLike = isUnaryLike;\nexports.isPattern = isPattern;\nexports.isClass = isClass;\nexports.isModuleDeclaration = isModuleDeclaration;\nexports.isExportDeclaration = isExportDeclaration;\nexports.isModuleSpecifier = isModuleSpecifier;\nexports.isFlow = isFlow;\nexports.isFlowType = isFlowType;\nexports.isFlowBaseAnnotation = isFlowBaseAnnotation;\nexports.isFlowDeclaration = isFlowDeclaration;\nexports.isFlowPredicate = isFlowPredicate;\nexports.isEnumBody = isEnumBody;\nexports.isEnumMember = isEnumMember;\nexports.isJSX = isJSX;\nexports.isPrivate = isPrivate;\nexports.isTSTypeElement = isTSTypeElement;\nexports.isTSType = isTSType;\nexports.isNumberLiteral = isNumberLiteral;\nexports.isRegexLiteral = isRegexLiteral;\nexports.isRestProperty = isRestProperty;\nexports.isSpreadProperty = isSpreadProperty;\n\nvar _shallowEqual = _interopRequireDefault(require(\"../../utils/shallowEqual\"));\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction isArrayExpression(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ArrayExpression\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isAssignmentExpression(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"AssignmentExpression\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isBinaryExpression(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"BinaryExpression\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isInterpreterDirective(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"InterpreterDirective\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isDirective(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"Directive\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isDirectiveLiteral(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"DirectiveLiteral\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isBlockStatement(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"BlockStatement\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isBreakStatement(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"BreakStatement\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isCallExpression(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"CallExpression\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isCatchClause(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"CatchClause\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isConditionalExpression(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ConditionalExpression\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isContinueStatement(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ContinueStatement\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isDebuggerStatement(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"DebuggerStatement\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isDoWhileStatement(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"DoWhileStatement\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isEmptyStatement(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"EmptyStatement\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isExpressionStatement(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ExpressionStatement\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isFile(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"File\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isForInStatement(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ForInStatement\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isForStatement(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ForStatement\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isFunctionDeclaration(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"FunctionDeclaration\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isFunctionExpression(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"FunctionExpression\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isIdentifier(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"Identifier\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isIfStatement(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"IfStatement\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isLabeledStatement(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"LabeledStatement\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isStringLiteral(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"StringLiteral\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isNumericLiteral(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"NumericLiteral\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isNullLiteral(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"NullLiteral\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isBooleanLiteral(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"BooleanLiteral\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isRegExpLiteral(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"RegExpLiteral\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isLogicalExpression(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"LogicalExpression\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isMemberExpression(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"MemberExpression\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isNewExpression(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"NewExpression\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isProgram(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"Program\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isObjectExpression(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ObjectExpression\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isObjectMethod(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ObjectMethod\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isObjectProperty(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ObjectProperty\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isRestElement(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"RestElement\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isReturnStatement(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ReturnStatement\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isSequenceExpression(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"SequenceExpression\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isParenthesizedExpression(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ParenthesizedExpression\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isSwitchCase(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"SwitchCase\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isSwitchStatement(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"SwitchStatement\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isThisExpression(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ThisExpression\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isThrowStatement(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ThrowStatement\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTryStatement(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TryStatement\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isUnaryExpression(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"UnaryExpression\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isUpdateExpression(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"UpdateExpression\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isVariableDeclaration(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"VariableDeclaration\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isVariableDeclarator(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"VariableDeclarator\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isWhileStatement(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"WhileStatement\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isWithStatement(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"WithStatement\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isAssignmentPattern(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"AssignmentPattern\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isArrayPattern(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ArrayPattern\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isArrowFunctionExpression(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ArrowFunctionExpression\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isClassBody(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ClassBody\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isClassDeclaration(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ClassDeclaration\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isClassExpression(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ClassExpression\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isExportAllDeclaration(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ExportAllDeclaration\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isExportDefaultDeclaration(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ExportDefaultDeclaration\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isExportNamedDeclaration(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ExportNamedDeclaration\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isExportSpecifier(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ExportSpecifier\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isForOfStatement(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ForOfStatement\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isImportDeclaration(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ImportDeclaration\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isImportDefaultSpecifier(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ImportDefaultSpecifier\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isImportNamespaceSpecifier(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ImportNamespaceSpecifier\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isImportSpecifier(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ImportSpecifier\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isMetaProperty(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"MetaProperty\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isClassMethod(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ClassMethod\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isObjectPattern(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ObjectPattern\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isSpreadElement(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"SpreadElement\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isSuper(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"Super\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTaggedTemplateExpression(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TaggedTemplateExpression\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTemplateElement(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TemplateElement\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTemplateLiteral(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TemplateLiteral\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isYieldExpression(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"YieldExpression\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isAnyTypeAnnotation(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"AnyTypeAnnotation\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isArrayTypeAnnotation(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ArrayTypeAnnotation\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isBooleanTypeAnnotation(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"BooleanTypeAnnotation\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isBooleanLiteralTypeAnnotation(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"BooleanLiteralTypeAnnotation\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isNullLiteralTypeAnnotation(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"NullLiteralTypeAnnotation\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isClassImplements(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ClassImplements\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isDeclareClass(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"DeclareClass\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isDeclareFunction(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"DeclareFunction\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isDeclareInterface(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"DeclareInterface\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isDeclareModule(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"DeclareModule\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isDeclareModuleExports(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"DeclareModuleExports\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isDeclareTypeAlias(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"DeclareTypeAlias\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isDeclareOpaqueType(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"DeclareOpaqueType\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isDeclareVariable(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"DeclareVariable\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isDeclareExportDeclaration(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"DeclareExportDeclaration\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isDeclareExportAllDeclaration(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"DeclareExportAllDeclaration\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isDeclaredPredicate(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"DeclaredPredicate\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isExistsTypeAnnotation(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ExistsTypeAnnotation\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isFunctionTypeAnnotation(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"FunctionTypeAnnotation\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isFunctionTypeParam(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"FunctionTypeParam\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isGenericTypeAnnotation(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"GenericTypeAnnotation\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isInferredPredicate(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"InferredPredicate\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isInterfaceExtends(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"InterfaceExtends\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isInterfaceDeclaration(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"InterfaceDeclaration\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isInterfaceTypeAnnotation(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"InterfaceTypeAnnotation\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isIntersectionTypeAnnotation(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"IntersectionTypeAnnotation\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isMixedTypeAnnotation(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"MixedTypeAnnotation\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isEmptyTypeAnnotation(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"EmptyTypeAnnotation\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isNullableTypeAnnotation(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"NullableTypeAnnotation\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isNumberLiteralTypeAnnotation(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"NumberLiteralTypeAnnotation\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isNumberTypeAnnotation(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"NumberTypeAnnotation\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isObjectTypeAnnotation(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ObjectTypeAnnotation\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isObjectTypeInternalSlot(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ObjectTypeInternalSlot\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isObjectTypeCallProperty(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ObjectTypeCallProperty\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isObjectTypeIndexer(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ObjectTypeIndexer\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isObjectTypeProperty(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ObjectTypeProperty\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isObjectTypeSpreadProperty(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ObjectTypeSpreadProperty\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isOpaqueType(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"OpaqueType\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isQualifiedTypeIdentifier(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"QualifiedTypeIdentifier\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isStringLiteralTypeAnnotation(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"StringLiteralTypeAnnotation\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isStringTypeAnnotation(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"StringTypeAnnotation\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isThisTypeAnnotation(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ThisTypeAnnotation\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTupleTypeAnnotation(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TupleTypeAnnotation\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTypeofTypeAnnotation(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TypeofTypeAnnotation\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTypeAlias(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TypeAlias\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTypeAnnotation(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TypeAnnotation\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTypeCastExpression(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TypeCastExpression\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTypeParameter(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TypeParameter\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTypeParameterDeclaration(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TypeParameterDeclaration\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTypeParameterInstantiation(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TypeParameterInstantiation\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isUnionTypeAnnotation(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"UnionTypeAnnotation\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isVariance(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"Variance\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isVoidTypeAnnotation(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"VoidTypeAnnotation\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isEnumDeclaration(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"EnumDeclaration\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isEnumBooleanBody(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"EnumBooleanBody\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isEnumNumberBody(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"EnumNumberBody\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isEnumStringBody(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"EnumStringBody\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isEnumSymbolBody(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"EnumSymbolBody\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isEnumBooleanMember(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"EnumBooleanMember\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isEnumNumberMember(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"EnumNumberMember\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isEnumStringMember(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"EnumStringMember\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isEnumDefaultedMember(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"EnumDefaultedMember\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isJSXAttribute(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"JSXAttribute\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isJSXClosingElement(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"JSXClosingElement\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isJSXElement(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"JSXElement\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isJSXEmptyExpression(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"JSXEmptyExpression\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isJSXExpressionContainer(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"JSXExpressionContainer\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isJSXSpreadChild(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"JSXSpreadChild\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isJSXIdentifier(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"JSXIdentifier\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isJSXMemberExpression(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"JSXMemberExpression\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isJSXNamespacedName(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"JSXNamespacedName\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isJSXOpeningElement(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"JSXOpeningElement\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isJSXSpreadAttribute(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"JSXSpreadAttribute\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isJSXText(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"JSXText\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isJSXFragment(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"JSXFragment\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isJSXOpeningFragment(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"JSXOpeningFragment\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isJSXClosingFragment(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"JSXClosingFragment\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isNoop(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"Noop\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isPlaceholder(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"Placeholder\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isV8IntrinsicIdentifier(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"V8IntrinsicIdentifier\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isArgumentPlaceholder(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ArgumentPlaceholder\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isAwaitExpression(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"AwaitExpression\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isBindExpression(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"BindExpression\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isClassProperty(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ClassProperty\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isOptionalMemberExpression(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"OptionalMemberExpression\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isPipelineTopicExpression(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"PipelineTopicExpression\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isPipelineBareFunction(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"PipelineBareFunction\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isPipelinePrimaryTopicReference(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"PipelinePrimaryTopicReference\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isOptionalCallExpression(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"OptionalCallExpression\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isClassPrivateProperty(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ClassPrivateProperty\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isClassPrivateMethod(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ClassPrivateMethod\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isImport(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"Import\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isDecorator(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"Decorator\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isDoExpression(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"DoExpression\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isExportDefaultSpecifier(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ExportDefaultSpecifier\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isExportNamespaceSpecifier(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ExportNamespaceSpecifier\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isPrivateName(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"PrivateName\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isBigIntLiteral(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"BigIntLiteral\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSParameterProperty(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSParameterProperty\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSDeclareFunction(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSDeclareFunction\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSDeclareMethod(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSDeclareMethod\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSQualifiedName(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSQualifiedName\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSCallSignatureDeclaration(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSCallSignatureDeclaration\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSConstructSignatureDeclaration(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSConstructSignatureDeclaration\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSPropertySignature(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSPropertySignature\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSMethodSignature(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSMethodSignature\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSIndexSignature(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSIndexSignature\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSAnyKeyword(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSAnyKeyword\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSBooleanKeyword(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSBooleanKeyword\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSBigIntKeyword(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSBigIntKeyword\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSNeverKeyword(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSNeverKeyword\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSNullKeyword(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSNullKeyword\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSNumberKeyword(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSNumberKeyword\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSObjectKeyword(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSObjectKeyword\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSStringKeyword(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSStringKeyword\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSSymbolKeyword(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSSymbolKeyword\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSUndefinedKeyword(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSUndefinedKeyword\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSUnknownKeyword(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSUnknownKeyword\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSVoidKeyword(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSVoidKeyword\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSThisType(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSThisType\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSFunctionType(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSFunctionType\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSConstructorType(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSConstructorType\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSTypeReference(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSTypeReference\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSTypePredicate(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSTypePredicate\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSTypeQuery(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSTypeQuery\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSTypeLiteral(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSTypeLiteral\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSArrayType(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSArrayType\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSTupleType(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSTupleType\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSOptionalType(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSOptionalType\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSRestType(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSRestType\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSUnionType(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSUnionType\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSIntersectionType(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSIntersectionType\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSConditionalType(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSConditionalType\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSInferType(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSInferType\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSParenthesizedType(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSParenthesizedType\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSTypeOperator(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSTypeOperator\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSIndexedAccessType(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSIndexedAccessType\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSMappedType(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSMappedType\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSLiteralType(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSLiteralType\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSExpressionWithTypeArguments(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSExpressionWithTypeArguments\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSInterfaceDeclaration(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSInterfaceDeclaration\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSInterfaceBody(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSInterfaceBody\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSTypeAliasDeclaration(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSTypeAliasDeclaration\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSAsExpression(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSAsExpression\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSTypeAssertion(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSTypeAssertion\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSEnumDeclaration(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSEnumDeclaration\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSEnumMember(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSEnumMember\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSModuleDeclaration(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSModuleDeclaration\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSModuleBlock(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSModuleBlock\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSImportType(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSImportType\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSImportEqualsDeclaration(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSImportEqualsDeclaration\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSExternalModuleReference(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSExternalModuleReference\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSNonNullExpression(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSNonNullExpression\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSExportAssignment(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSExportAssignment\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSNamespaceExportDeclaration(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSNamespaceExportDeclaration\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSTypeAnnotation(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSTypeAnnotation\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSTypeParameterInstantiation(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSTypeParameterInstantiation\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSTypeParameterDeclaration(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSTypeParameterDeclaration\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSTypeParameter(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSTypeParameter\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isExpression(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"Expression\" || \"ArrayExpression\" === nodeType || \"AssignmentExpression\" === nodeType || \"BinaryExpression\" === nodeType || \"CallExpression\" === nodeType || \"ConditionalExpression\" === nodeType || \"FunctionExpression\" === nodeType || \"Identifier\" === nodeType || \"StringLiteral\" === nodeType || \"NumericLiteral\" === nodeType || \"NullLiteral\" === nodeType || \"BooleanLiteral\" === nodeType || \"RegExpLiteral\" === nodeType || \"LogicalExpression\" === nodeType || \"MemberExpression\" === nodeType || \"NewExpression\" === nodeType || \"ObjectExpression\" === nodeType || \"SequenceExpression\" === nodeType || \"ParenthesizedExpression\" === nodeType || \"ThisExpression\" === nodeType || \"UnaryExpression\" === nodeType || \"UpdateExpression\" === nodeType || \"ArrowFunctionExpression\" === nodeType || \"ClassExpression\" === nodeType || \"MetaProperty\" === nodeType || \"Super\" === nodeType || \"TaggedTemplateExpression\" === nodeType || \"TemplateLiteral\" === nodeType || \"YieldExpression\" === nodeType || \"TypeCastExpression\" === nodeType || \"JSXElement\" === nodeType || \"JSXFragment\" === nodeType || \"AwaitExpression\" === nodeType || \"BindExpression\" === nodeType || \"OptionalMemberExpression\" === nodeType || \"PipelinePrimaryTopicReference\" === nodeType || \"OptionalCallExpression\" === nodeType || \"Import\" === nodeType || \"DoExpression\" === nodeType || \"BigIntLiteral\" === nodeType || \"TSAsExpression\" === nodeType || \"TSTypeAssertion\" === nodeType || \"TSNonNullExpression\" === nodeType || nodeType === \"Placeholder\" && (\"Expression\" === node.expectedNode || \"Identifier\" === node.expectedNode || \"StringLiteral\" === node.expectedNode)) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isBinary(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"Binary\" || \"BinaryExpression\" === nodeType || \"LogicalExpression\" === nodeType) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isScopable(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"Scopable\" || \"BlockStatement\" === nodeType || \"CatchClause\" === nodeType || \"DoWhileStatement\" === nodeType || \"ForInStatement\" === nodeType || \"ForStatement\" === nodeType || \"FunctionDeclaration\" === nodeType || \"FunctionExpression\" === nodeType || \"Program\" === nodeType || \"ObjectMethod\" === nodeType || \"SwitchStatement\" === nodeType || \"WhileStatement\" === nodeType || \"ArrowFunctionExpression\" === nodeType || \"ClassDeclaration\" === nodeType || \"ClassExpression\" === nodeType || \"ForOfStatement\" === nodeType || \"ClassMethod\" === nodeType || \"ClassPrivateMethod\" === nodeType || \"TSModuleBlock\" === nodeType || nodeType === \"Placeholder\" && \"BlockStatement\" === node.expectedNode) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isBlockParent(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"BlockParent\" || \"BlockStatement\" === nodeType || \"CatchClause\" === nodeType || \"DoWhileStatement\" === nodeType || \"ForInStatement\" === nodeType || \"ForStatement\" === nodeType || \"FunctionDeclaration\" === nodeType || \"FunctionExpression\" === nodeType || \"Program\" === nodeType || \"ObjectMethod\" === nodeType || \"SwitchStatement\" === nodeType || \"WhileStatement\" === nodeType || \"ArrowFunctionExpression\" === nodeType || \"ForOfStatement\" === nodeType || \"ClassMethod\" === nodeType || \"ClassPrivateMethod\" === nodeType || \"TSModuleBlock\" === nodeType || nodeType === \"Placeholder\" && \"BlockStatement\" === node.expectedNode) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isBlock(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"Block\" || \"BlockStatement\" === nodeType || \"Program\" === nodeType || \"TSModuleBlock\" === nodeType || nodeType === \"Placeholder\" && \"BlockStatement\" === node.expectedNode) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isStatement(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"Statement\" || \"BlockStatement\" === nodeType || \"BreakStatement\" === nodeType || \"ContinueStatement\" === nodeType || \"DebuggerStatement\" === nodeType || \"DoWhileStatement\" === nodeType || \"EmptyStatement\" === nodeType || \"ExpressionStatement\" === nodeType || \"ForInStatement\" === nodeType || \"ForStatement\" === nodeType || \"FunctionDeclaration\" === nodeType || \"IfStatement\" === nodeType || \"LabeledStatement\" === nodeType || \"ReturnStatement\" === nodeType || \"SwitchStatement\" === nodeType || \"ThrowStatement\" === nodeType || \"TryStatement\" === nodeType || \"VariableDeclaration\" === nodeType || \"WhileStatement\" === nodeType || \"WithStatement\" === nodeType || \"ClassDeclaration\" === nodeType || \"ExportAllDeclaration\" === nodeType || \"ExportDefaultDeclaration\" === nodeType || \"ExportNamedDeclaration\" === nodeType || \"ForOfStatement\" === nodeType || \"ImportDeclaration\" === nodeType || \"DeclareClass\" === nodeType || \"DeclareFunction\" === nodeType || \"DeclareInterface\" === nodeType || \"DeclareModule\" === nodeType || \"DeclareModuleExports\" === nodeType || \"DeclareTypeAlias\" === nodeType || \"DeclareOpaqueType\" === nodeType || \"DeclareVariable\" === nodeType || \"DeclareExportDeclaration\" === nodeType || \"DeclareExportAllDeclaration\" === nodeType || \"InterfaceDeclaration\" === nodeType || \"OpaqueType\" === nodeType || \"TypeAlias\" === nodeType || \"TSDeclareFunction\" === nodeType || \"TSInterfaceDeclaration\" === nodeType || \"TSTypeAliasDeclaration\" === nodeType || \"TSEnumDeclaration\" === nodeType || \"TSModuleDeclaration\" === nodeType || \"TSImportEqualsDeclaration\" === nodeType || \"TSExportAssignment\" === nodeType || \"TSNamespaceExportDeclaration\" === nodeType || nodeType === \"Placeholder\" && (\"Statement\" === node.expectedNode || \"Declaration\" === node.expectedNode || \"BlockStatement\" === node.expectedNode)) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTerminatorless(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"Terminatorless\" || \"BreakStatement\" === nodeType || \"ContinueStatement\" === nodeType || \"ReturnStatement\" === nodeType || \"ThrowStatement\" === nodeType || \"YieldExpression\" === nodeType || \"AwaitExpression\" === nodeType) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isCompletionStatement(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"CompletionStatement\" || \"BreakStatement\" === nodeType || \"ContinueStatement\" === nodeType || \"ReturnStatement\" === nodeType || \"ThrowStatement\" === nodeType) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isConditional(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"Conditional\" || \"ConditionalExpression\" === nodeType || \"IfStatement\" === nodeType) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isLoop(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"Loop\" || \"DoWhileStatement\" === nodeType || \"ForInStatement\" === nodeType || \"ForStatement\" === nodeType || \"WhileStatement\" === nodeType || \"ForOfStatement\" === nodeType) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isWhile(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"While\" || \"DoWhileStatement\" === nodeType || \"WhileStatement\" === nodeType) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isExpressionWrapper(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ExpressionWrapper\" || \"ExpressionStatement\" === nodeType || \"ParenthesizedExpression\" === nodeType || \"TypeCastExpression\" === nodeType) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isFor(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"For\" || \"ForInStatement\" === nodeType || \"ForStatement\" === nodeType || \"ForOfStatement\" === nodeType) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isForXStatement(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ForXStatement\" || \"ForInStatement\" === nodeType || \"ForOfStatement\" === nodeType) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isFunction(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"Function\" || \"FunctionDeclaration\" === nodeType || \"FunctionExpression\" === nodeType || \"ObjectMethod\" === nodeType || \"ArrowFunctionExpression\" === nodeType || \"ClassMethod\" === nodeType || \"ClassPrivateMethod\" === nodeType) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isFunctionParent(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"FunctionParent\" || \"FunctionDeclaration\" === nodeType || \"FunctionExpression\" === nodeType || \"ObjectMethod\" === nodeType || \"ArrowFunctionExpression\" === nodeType || \"ClassMethod\" === nodeType || \"ClassPrivateMethod\" === nodeType) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isPureish(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"Pureish\" || \"FunctionDeclaration\" === nodeType || \"FunctionExpression\" === nodeType || \"StringLiteral\" === nodeType || \"NumericLiteral\" === nodeType || \"NullLiteral\" === nodeType || \"BooleanLiteral\" === nodeType || \"ArrowFunctionExpression\" === nodeType || \"ClassDeclaration\" === nodeType || \"ClassExpression\" === nodeType || \"BigIntLiteral\" === nodeType || nodeType === \"Placeholder\" && \"StringLiteral\" === node.expectedNode) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isDeclaration(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"Declaration\" || \"FunctionDeclaration\" === nodeType || \"VariableDeclaration\" === nodeType || \"ClassDeclaration\" === nodeType || \"ExportAllDeclaration\" === nodeType || \"ExportDefaultDeclaration\" === nodeType || \"ExportNamedDeclaration\" === nodeType || \"ImportDeclaration\" === nodeType || \"DeclareClass\" === nodeType || \"DeclareFunction\" === nodeType || \"DeclareInterface\" === nodeType || \"DeclareModule\" === nodeType || \"DeclareModuleExports\" === nodeType || \"DeclareTypeAlias\" === nodeType || \"DeclareOpaqueType\" === nodeType || \"DeclareVariable\" === nodeType || \"DeclareExportDeclaration\" === nodeType || \"DeclareExportAllDeclaration\" === nodeType || \"InterfaceDeclaration\" === nodeType || \"OpaqueType\" === nodeType || \"TypeAlias\" === nodeType || \"TSDeclareFunction\" === nodeType || \"TSInterfaceDeclaration\" === nodeType || \"TSTypeAliasDeclaration\" === nodeType || \"TSEnumDeclaration\" === nodeType || \"TSModuleDeclaration\" === nodeType || nodeType === \"Placeholder\" && \"Declaration\" === node.expectedNode) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isPatternLike(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"PatternLike\" || \"Identifier\" === nodeType || \"RestElement\" === nodeType || \"AssignmentPattern\" === nodeType || \"ArrayPattern\" === nodeType || \"ObjectPattern\" === nodeType || nodeType === \"Placeholder\" && (\"Pattern\" === node.expectedNode || \"Identifier\" === node.expectedNode)) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isLVal(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"LVal\" || \"Identifier\" === nodeType || \"MemberExpression\" === nodeType || \"RestElement\" === nodeType || \"AssignmentPattern\" === nodeType || \"ArrayPattern\" === nodeType || \"ObjectPattern\" === nodeType || \"TSParameterProperty\" === nodeType || nodeType === \"Placeholder\" && (\"Pattern\" === node.expectedNode || \"Identifier\" === node.expectedNode)) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSEntityName(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSEntityName\" || \"Identifier\" === nodeType || \"TSQualifiedName\" === nodeType || nodeType === \"Placeholder\" && \"Identifier\" === node.expectedNode) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isLiteral(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"Literal\" || \"StringLiteral\" === nodeType || \"NumericLiteral\" === nodeType || \"NullLiteral\" === nodeType || \"BooleanLiteral\" === nodeType || \"RegExpLiteral\" === nodeType || \"TemplateLiteral\" === nodeType || \"BigIntLiteral\" === nodeType || nodeType === \"Placeholder\" && \"StringLiteral\" === node.expectedNode) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isImmutable(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"Immutable\" || \"StringLiteral\" === nodeType || \"NumericLiteral\" === nodeType || \"NullLiteral\" === nodeType || \"BooleanLiteral\" === nodeType || \"JSXAttribute\" === nodeType || \"JSXClosingElement\" === nodeType || \"JSXElement\" === nodeType || \"JSXExpressionContainer\" === nodeType || \"JSXSpreadChild\" === nodeType || \"JSXOpeningElement\" === nodeType || \"JSXText\" === nodeType || \"JSXFragment\" === nodeType || \"JSXOpeningFragment\" === nodeType || \"JSXClosingFragment\" === nodeType || \"BigIntLiteral\" === nodeType || nodeType === \"Placeholder\" && \"StringLiteral\" === node.expectedNode) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isUserWhitespacable(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"UserWhitespacable\" || \"ObjectMethod\" === nodeType || \"ObjectProperty\" === nodeType || \"ObjectTypeInternalSlot\" === nodeType || \"ObjectTypeCallProperty\" === nodeType || \"ObjectTypeIndexer\" === nodeType || \"ObjectTypeProperty\" === nodeType || \"ObjectTypeSpreadProperty\" === nodeType) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isMethod(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"Method\" || \"ObjectMethod\" === nodeType || \"ClassMethod\" === nodeType || \"ClassPrivateMethod\" === nodeType) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isObjectMember(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ObjectMember\" || \"ObjectMethod\" === nodeType || \"ObjectProperty\" === nodeType) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isProperty(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"Property\" || \"ObjectProperty\" === nodeType || \"ClassProperty\" === nodeType || \"ClassPrivateProperty\" === nodeType) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isUnaryLike(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"UnaryLike\" || \"UnaryExpression\" === nodeType || \"SpreadElement\" === nodeType) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isPattern(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"Pattern\" || \"AssignmentPattern\" === nodeType || \"ArrayPattern\" === nodeType || \"ObjectPattern\" === nodeType || nodeType === \"Placeholder\" && \"Pattern\" === node.expectedNode) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isClass(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"Class\" || \"ClassDeclaration\" === nodeType || \"ClassExpression\" === nodeType) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isModuleDeclaration(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ModuleDeclaration\" || \"ExportAllDeclaration\" === nodeType || \"ExportDefaultDeclaration\" === nodeType || \"ExportNamedDeclaration\" === nodeType || \"ImportDeclaration\" === nodeType) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isExportDeclaration(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ExportDeclaration\" || \"ExportAllDeclaration\" === nodeType || \"ExportDefaultDeclaration\" === nodeType || \"ExportNamedDeclaration\" === nodeType) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isModuleSpecifier(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"ModuleSpecifier\" || \"ExportSpecifier\" === nodeType || \"ImportDefaultSpecifier\" === nodeType || \"ImportNamespaceSpecifier\" === nodeType || \"ImportSpecifier\" === nodeType || \"ExportDefaultSpecifier\" === nodeType || \"ExportNamespaceSpecifier\" === nodeType) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isFlow(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"Flow\" || \"AnyTypeAnnotation\" === nodeType || \"ArrayTypeAnnotation\" === nodeType || \"BooleanTypeAnnotation\" === nodeType || \"BooleanLiteralTypeAnnotation\" === nodeType || \"NullLiteralTypeAnnotation\" === nodeType || \"ClassImplements\" === nodeType || \"DeclareClass\" === nodeType || \"DeclareFunction\" === nodeType || \"DeclareInterface\" === nodeType || \"DeclareModule\" === nodeType || \"DeclareModuleExports\" === nodeType || \"DeclareTypeAlias\" === nodeType || \"DeclareOpaqueType\" === nodeType || \"DeclareVariable\" === nodeType || \"DeclareExportDeclaration\" === nodeType || \"DeclareExportAllDeclaration\" === nodeType || \"DeclaredPredicate\" === nodeType || \"ExistsTypeAnnotation\" === nodeType || \"FunctionTypeAnnotation\" === nodeType || \"FunctionTypeParam\" === nodeType || \"GenericTypeAnnotation\" === nodeType || \"InferredPredicate\" === nodeType || \"InterfaceExtends\" === nodeType || \"InterfaceDeclaration\" === nodeType || \"InterfaceTypeAnnotation\" === nodeType || \"IntersectionTypeAnnotation\" === nodeType || \"MixedTypeAnnotation\" === nodeType || \"EmptyTypeAnnotation\" === nodeType || \"NullableTypeAnnotation\" === nodeType || \"NumberLiteralTypeAnnotation\" === nodeType || \"NumberTypeAnnotation\" === nodeType || \"ObjectTypeAnnotation\" === nodeType || \"ObjectTypeInternalSlot\" === nodeType || \"ObjectTypeCallProperty\" === nodeType || \"ObjectTypeIndexer\" === nodeType || \"ObjectTypeProperty\" === nodeType || \"ObjectTypeSpreadProperty\" === nodeType || \"OpaqueType\" === nodeType || \"QualifiedTypeIdentifier\" === nodeType || \"StringLiteralTypeAnnotation\" === nodeType || \"StringTypeAnnotation\" === nodeType || \"ThisTypeAnnotation\" === nodeType || \"TupleTypeAnnotation\" === nodeType || \"TypeofTypeAnnotation\" === nodeType || \"TypeAlias\" === nodeType || \"TypeAnnotation\" === nodeType || \"TypeCastExpression\" === nodeType || \"TypeParameter\" === nodeType || \"TypeParameterDeclaration\" === nodeType || \"TypeParameterInstantiation\" === nodeType || \"UnionTypeAnnotation\" === nodeType || \"Variance\" === nodeType || \"VoidTypeAnnotation\" === nodeType) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isFlowType(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"FlowType\" || \"AnyTypeAnnotation\" === nodeType || \"ArrayTypeAnnotation\" === nodeType || \"BooleanTypeAnnotation\" === nodeType || \"BooleanLiteralTypeAnnotation\" === nodeType || \"NullLiteralTypeAnnotation\" === nodeType || \"ExistsTypeAnnotation\" === nodeType || \"FunctionTypeAnnotation\" === nodeType || \"GenericTypeAnnotation\" === nodeType || \"InterfaceTypeAnnotation\" === nodeType || \"IntersectionTypeAnnotation\" === nodeType || \"MixedTypeAnnotation\" === nodeType || \"EmptyTypeAnnotation\" === nodeType || \"NullableTypeAnnotation\" === nodeType || \"NumberLiteralTypeAnnotation\" === nodeType || \"NumberTypeAnnotation\" === nodeType || \"ObjectTypeAnnotation\" === nodeType || \"StringLiteralTypeAnnotation\" === nodeType || \"StringTypeAnnotation\" === nodeType || \"ThisTypeAnnotation\" === nodeType || \"TupleTypeAnnotation\" === nodeType || \"TypeofTypeAnnotation\" === nodeType || \"UnionTypeAnnotation\" === nodeType || \"VoidTypeAnnotation\" === nodeType) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isFlowBaseAnnotation(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"FlowBaseAnnotation\" || \"AnyTypeAnnotation\" === nodeType || \"BooleanTypeAnnotation\" === nodeType || \"NullLiteralTypeAnnotation\" === nodeType || \"MixedTypeAnnotation\" === nodeType || \"EmptyTypeAnnotation\" === nodeType || \"NumberTypeAnnotation\" === nodeType || \"StringTypeAnnotation\" === nodeType || \"ThisTypeAnnotation\" === nodeType || \"VoidTypeAnnotation\" === nodeType) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isFlowDeclaration(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"FlowDeclaration\" || \"DeclareClass\" === nodeType || \"DeclareFunction\" === nodeType || \"DeclareInterface\" === nodeType || \"DeclareModule\" === nodeType || \"DeclareModuleExports\" === nodeType || \"DeclareTypeAlias\" === nodeType || \"DeclareOpaqueType\" === nodeType || \"DeclareVariable\" === nodeType || \"DeclareExportDeclaration\" === nodeType || \"DeclareExportAllDeclaration\" === nodeType || \"InterfaceDeclaration\" === nodeType || \"OpaqueType\" === nodeType || \"TypeAlias\" === nodeType) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isFlowPredicate(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"FlowPredicate\" || \"DeclaredPredicate\" === nodeType || \"InferredPredicate\" === nodeType) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isEnumBody(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"EnumBody\" || \"EnumBooleanBody\" === nodeType || \"EnumNumberBody\" === nodeType || \"EnumStringBody\" === nodeType || \"EnumSymbolBody\" === nodeType) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isEnumMember(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"EnumMember\" || \"EnumBooleanMember\" === nodeType || \"EnumNumberMember\" === nodeType || \"EnumStringMember\" === nodeType || \"EnumDefaultedMember\" === nodeType) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isJSX(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"JSX\" || \"JSXAttribute\" === nodeType || \"JSXClosingElement\" === nodeType || \"JSXElement\" === nodeType || \"JSXEmptyExpression\" === nodeType || \"JSXExpressionContainer\" === nodeType || \"JSXSpreadChild\" === nodeType || \"JSXIdentifier\" === nodeType || \"JSXMemberExpression\" === nodeType || \"JSXNamespacedName\" === nodeType || \"JSXOpeningElement\" === nodeType || \"JSXSpreadAttribute\" === nodeType || \"JSXText\" === nodeType || \"JSXFragment\" === nodeType || \"JSXOpeningFragment\" === nodeType || \"JSXClosingFragment\" === nodeType) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isPrivate(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"Private\" || \"ClassPrivateProperty\" === nodeType || \"ClassPrivateMethod\" === nodeType || \"PrivateName\" === nodeType) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSTypeElement(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSTypeElement\" || \"TSCallSignatureDeclaration\" === nodeType || \"TSConstructSignatureDeclaration\" === nodeType || \"TSPropertySignature\" === nodeType || \"TSMethodSignature\" === nodeType || \"TSIndexSignature\" === nodeType) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isTSType(node, opts) {\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"TSType\" || \"TSAnyKeyword\" === nodeType || \"TSBooleanKeyword\" === nodeType || \"TSBigIntKeyword\" === nodeType || \"TSNeverKeyword\" === nodeType || \"TSNullKeyword\" === nodeType || \"TSNumberKeyword\" === nodeType || \"TSObjectKeyword\" === nodeType || \"TSStringKeyword\" === nodeType || \"TSSymbolKeyword\" === nodeType || \"TSUndefinedKeyword\" === nodeType || \"TSUnknownKeyword\" === nodeType || \"TSVoidKeyword\" === nodeType || \"TSThisType\" === nodeType || \"TSFunctionType\" === nodeType || \"TSConstructorType\" === nodeType || \"TSTypeReference\" === nodeType || \"TSTypePredicate\" === nodeType || \"TSTypeQuery\" === nodeType || \"TSTypeLiteral\" === nodeType || \"TSArrayType\" === nodeType || \"TSTupleType\" === nodeType || \"TSOptionalType\" === nodeType || \"TSRestType\" === nodeType || \"TSUnionType\" === nodeType || \"TSIntersectionType\" === nodeType || \"TSConditionalType\" === nodeType || \"TSInferType\" === nodeType || \"TSParenthesizedType\" === nodeType || \"TSTypeOperator\" === nodeType || \"TSIndexedAccessType\" === nodeType || \"TSMappedType\" === nodeType || \"TSLiteralType\" === nodeType || \"TSExpressionWithTypeArguments\" === nodeType || \"TSImportType\" === nodeType) {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isNumberLiteral(node, opts) {\n console.trace(\"The node type NumberLiteral has been renamed to NumericLiteral\");\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"NumberLiteral\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isRegexLiteral(node, opts) {\n console.trace(\"The node type RegexLiteral has been renamed to RegExpLiteral\");\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"RegexLiteral\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isRestProperty(node, opts) {\n console.trace(\"The node type RestProperty has been renamed to RestElement\");\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"RestProperty\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}\n\nfunction isSpreadProperty(node, opts) {\n console.trace(\"The node type SpreadProperty has been renamed to SpreadElement\");\n if (!node) return false;\n var nodeType = node.type;\n\n if (nodeType === \"SpreadProperty\") {\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n }\n\n return false;\n}","map":null,"metadata":{},"sourceType":"script"} |