Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hermes-parser

Package Overview
Dependencies
Maintainers
3
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hermes-parser - npm Package Compare versions

Comparing version 0.4.4 to 0.4.6

389

dist/HermesParserNodeDeserializers.js

@@ -380,3 +380,4 @@ /**

loc: this.addEmptyLoc(),
source: this.deserializeNode()
source: this.deserializeNode(),
attributes: this.deserializeNode()
};

@@ -668,2 +669,3 @@ }

declare: this.deserializeBoolean(),
optional: this.deserializeBoolean(),
variance: this.deserializeNode(),

@@ -682,2 +684,3 @@ typeAnnotation: this.deserializeNode()

declare: this.deserializeBoolean(),
optional: this.deserializeBoolean(),
variance: this.deserializeNode(),

@@ -706,2 +709,3 @@ typeAnnotation: this.deserializeNode()

source: this.deserializeNode(),
attributes: this.deserializeNodeList(),
importKind: this.deserializeString()

@@ -737,2 +741,11 @@ };

function deserializeImportAttribute() {
return {
type: 'ImportAttribute',
loc: this.addEmptyLoc(),
key: this.deserializeNode(),
value: this.deserializeNode()
};
}
function deserializeExportNamedDeclaration() {

@@ -1146,2 +1159,12 @@ return {

function deserializeOptionalIndexedAccessType() {
return {
type: 'OptionalIndexedAccessType',
loc: this.addEmptyLoc(),
objectType: this.deserializeNode(),
indexType: this.deserializeNode(),
optional: this.deserializeBoolean()
};
}
function deserializeInterfaceTypeAnnotation() {

@@ -1524,2 +1547,364 @@ return {

function deserializeTSTypeAnnotation() {
return {
type: 'TSTypeAnnotation',
loc: this.addEmptyLoc(),
typeAnnotation: this.deserializeNode()
};
}
function deserializeTSAnyKeyword() {
return {
type: 'TSAnyKeyword',
loc: this.addEmptyLoc()
};
}
function deserializeTSNumberKeyword() {
return {
type: 'TSNumberKeyword',
loc: this.addEmptyLoc()
};
}
function deserializeTSBooleanKeyword() {
return {
type: 'TSBooleanKeyword',
loc: this.addEmptyLoc()
};
}
function deserializeTSStringKeyword() {
return {
type: 'TSStringKeyword',
loc: this.addEmptyLoc()
};
}
function deserializeTSSymbolKeyword() {
return {
type: 'TSSymbolKeyword',
loc: this.addEmptyLoc()
};
}
function deserializeTSVoidKeyword() {
return {
type: 'TSVoidKeyword',
loc: this.addEmptyLoc()
};
}
function deserializeTSThisType() {
return {
type: 'TSThisType',
loc: this.addEmptyLoc()
};
}
function deserializeTSLiteralType() {
return {
type: 'TSLiteralType',
loc: this.addEmptyLoc(),
literal: this.deserializeNode()
};
}
function deserializeTSIndexedAccessType() {
return {
type: 'TSIndexedAccessType',
loc: this.addEmptyLoc(),
objectType: this.deserializeNode(),
indexType: this.deserializeNode()
};
}
function deserializeTSArrayType() {
return {
type: 'TSArrayType',
loc: this.addEmptyLoc(),
elementType: this.deserializeNode()
};
}
function deserializeTSTypeReference() {
return {
type: 'TSTypeReference',
loc: this.addEmptyLoc(),
typeName: this.deserializeNode(),
typeParameters: this.deserializeNode()
};
}
function deserializeTSQualifiedName() {
return {
type: 'TSQualifiedName',
loc: this.addEmptyLoc(),
left: this.deserializeNode(),
right: this.deserializeNode()
};
}
function deserializeTSFunctionType() {
return {
type: 'TSFunctionType',
loc: this.addEmptyLoc(),
params: this.deserializeNodeList(),
returnType: this.deserializeNode(),
typeParameters: this.deserializeNode()
};
}
function deserializeTSConstructorType() {
return {
type: 'TSConstructorType',
loc: this.addEmptyLoc(),
params: this.deserializeNodeList(),
returnType: this.deserializeNode(),
typeParameters: this.deserializeNode()
};
}
function deserializeTSTypePredicate() {
return {
type: 'TSTypePredicate',
loc: this.addEmptyLoc(),
parameterName: this.deserializeNode(),
typeAnnotation: this.deserializeNode()
};
}
function deserializeTSTupleType() {
return {
type: 'TSTupleType',
loc: this.addEmptyLoc(),
elementTypes: this.deserializeNodeList()
};
}
function deserializeTSTypeAssertion() {
return {
type: 'TSTypeAssertion',
loc: this.addEmptyLoc(),
typeAnnotation: this.deserializeNode(),
expression: this.deserializeNode()
};
}
function deserializeTSAsExpression() {
return {
type: 'TSAsExpression',
loc: this.addEmptyLoc(),
expression: this.deserializeNode(),
typeAnnotation: this.deserializeNode()
};
}
function deserializeTSParameterProperty() {
return {
type: 'TSParameterProperty',
loc: this.addEmptyLoc(),
parameter: this.deserializeNode(),
accessibility: this.deserializeString(),
readonly: this.deserializeBoolean(),
"static": this.deserializeBoolean(),
"export": this.deserializeBoolean()
};
}
function deserializeTSTypeAliasDeclaration() {
return {
type: 'TSTypeAliasDeclaration',
loc: this.addEmptyLoc(),
id: this.deserializeNode(),
typeParameters: this.deserializeNode(),
typeAnnotation: this.deserializeNode()
};
}
function deserializeTSInterfaceDeclaration() {
return {
type: 'TSInterfaceDeclaration',
loc: this.addEmptyLoc(),
id: this.deserializeNode(),
body: this.deserializeNode(),
"extends": this.deserializeNodeList(),
typeParameters: this.deserializeNode()
};
}
function deserializeTSInterfaceHeritage() {
return {
type: 'TSInterfaceHeritage',
loc: this.addEmptyLoc(),
expression: this.deserializeNode(),
typeParameters: this.deserializeNode()
};
}
function deserializeTSInterfaceBody() {
return {
type: 'TSInterfaceBody',
loc: this.addEmptyLoc(),
body: this.deserializeNodeList()
};
}
function deserializeTSEnumDeclaration() {
return {
type: 'TSEnumDeclaration',
loc: this.addEmptyLoc(),
id: this.deserializeNode(),
members: this.deserializeNodeList()
};
}
function deserializeTSEnumMember() {
return {
type: 'TSEnumMember',
loc: this.addEmptyLoc(),
id: this.deserializeNode(),
initializer: this.deserializeNode()
};
}
function deserializeTSModuleDeclaration() {
return {
type: 'TSModuleDeclaration',
loc: this.addEmptyLoc(),
id: this.deserializeNode(),
body: this.deserializeNode()
};
}
function deserializeTSModuleBlock() {
return {
type: 'TSModuleBlock',
loc: this.addEmptyLoc(),
body: this.deserializeNodeList()
};
}
function deserializeTSModuleMember() {
return {
type: 'TSModuleMember',
loc: this.addEmptyLoc(),
id: this.deserializeNode(),
initializer: this.deserializeNode()
};
}
function deserializeTSTypeParameterDeclaration() {
return {
type: 'TSTypeParameterDeclaration',
loc: this.addEmptyLoc(),
params: this.deserializeNodeList()
};
}
function deserializeTSTypeParameter() {
return {
type: 'TSTypeParameter',
loc: this.addEmptyLoc(),
name: this.deserializeNode(),
constraint: this.deserializeNode(),
"default": this.deserializeNode()
};
}
function deserializeTSTypeParameterInstantiation() {
return {
type: 'TSTypeParameterInstantiation',
loc: this.addEmptyLoc(),
params: this.deserializeNodeList()
};
}
function deserializeTSUnionType() {
return {
type: 'TSUnionType',
loc: this.addEmptyLoc(),
types: this.deserializeNodeList()
};
}
function deserializeTSIntersectionType() {
return {
type: 'TSIntersectionType',
loc: this.addEmptyLoc(),
types: this.deserializeNodeList()
};
}
function deserializeTSTypeQuery() {
return {
type: 'TSTypeQuery',
loc: this.addEmptyLoc(),
exprName: this.deserializeNode()
};
}
function deserializeTSConditionalType() {
return {
type: 'TSConditionalType',
loc: this.addEmptyLoc(),
extendsType: this.deserializeNode(),
checkType: this.deserializeNode(),
trueType: this.deserializeNode(),
falseTYpe: this.deserializeNode()
};
}
function deserializeTSTypeLiteral() {
return {
type: 'TSTypeLiteral',
loc: this.addEmptyLoc(),
members: this.deserializeNodeList()
};
}
function deserializeTSPropertySignature() {
return {
type: 'TSPropertySignature',
loc: this.addEmptyLoc(),
key: this.deserializeNode(),
typeAnnotation: this.deserializeNode(),
initializer: this.deserializeNode(),
optional: this.deserializeBoolean(),
computed: this.deserializeBoolean(),
readonly: this.deserializeBoolean(),
"static": this.deserializeBoolean(),
"export": this.deserializeBoolean()
};
}
function deserializeTSMethodSignature() {
return {
type: 'TSMethodSignature',
loc: this.addEmptyLoc(),
key: this.deserializeNode(),
params: this.deserializeNodeList(),
returnType: this.deserializeNode(),
computed: this.deserializeBoolean()
};
}
function deserializeTSIndexSignature() {
return {
type: 'TSIndexSignature',
loc: this.addEmptyLoc(),
parameters: this.deserializeNodeList(),
typeAnnotation: this.deserializeNode()
};
}
function deserializeTSCallSignatureDeclaration() {
return {
type: 'TSCallSignatureDeclaration',
loc: this.addEmptyLoc(),
params: this.deserializeNodeList(),
returnType: this.deserializeNode()
};
}
function deserializeCoverFirst() {

@@ -1573,2 +1958,2 @@ throw new Error('Cover' + ' should not appear in program buffer');

module.exports = [deserializeEmpty, deserializeMetadata, deserializeFunctionLikeFirst, deserializeProgram, deserializeFunctionExpression, deserializeArrowFunctionExpression, deserializeFunctionDeclaration, deserializeFunctionLikeLast, deserializeStatementFirst, deserializeLoopStatementFirst, deserializeWhileStatement, deserializeDoWhileStatement, deserializeForInStatement, deserializeForOfStatement, deserializeForStatement, deserializeLoopStatementLast, deserializeDebuggerStatement, deserializeEmptyStatement, deserializeBlockStatement, deserializeBreakStatement, deserializeContinueStatement, deserializeThrowStatement, deserializeReturnStatement, deserializeWithStatement, deserializeSwitchStatement, deserializeLabeledStatement, deserializeExpressionStatement, deserializeTryStatement, deserializeIfStatement, deserializeStatementLast, deserializeNullLiteral, deserializeBooleanLiteral, deserializeStringLiteral, deserializeNumericLiteral, deserializeRegExpLiteral, deserializeThisExpression, deserializeSuper, deserializeSequenceExpression, deserializeObjectExpression, deserializeArrayExpression, deserializeSpreadElement, deserializeNewExpression, deserializeYieldExpression, deserializeAwaitExpression, deserializeImportExpression, deserializeCallExpressionLikeFirst, deserializeCallExpression, deserializeOptionalCallExpression, deserializeCallExpressionLikeLast, deserializeAssignmentExpression, deserializeUnaryExpression, deserializeUpdateExpression, deserializeMemberExpressionLikeFirst, deserializeMemberExpression, deserializeOptionalMemberExpression, deserializeMemberExpressionLikeLast, deserializeLogicalExpression, deserializeConditionalExpression, deserializeBinaryExpression, deserializeDirective, deserializeDirectiveLiteral, deserializeIdentifier, deserializePrivateName, deserializeMetaProperty, deserializeSwitchCase, deserializeCatchClause, deserializeVariableDeclarator, deserializeVariableDeclaration, deserializeTemplateLiteral, deserializeTaggedTemplateExpression, deserializeTemplateElement, deserializeProperty, deserializeClassDeclaration, deserializeClassExpression, deserializeClassBody, deserializeClassProperty, deserializeClassPrivateProperty, deserializeMethodDefinition, deserializeImportDeclaration, deserializeImportSpecifier, deserializeImportDefaultSpecifier, deserializeImportNamespaceSpecifier, deserializeExportNamedDeclaration, deserializeExportSpecifier, deserializeExportNamespaceSpecifier, deserializeExportDefaultDeclaration, deserializeExportAllDeclaration, deserializePatternFirst, deserializeObjectPattern, deserializeArrayPattern, deserializeRestElement, deserializeAssignmentPattern, deserializePatternLast, deserializeJSXIdentifier, deserializeJSXMemberExpression, deserializeJSXNamespacedName, deserializeJSXEmptyExpression, deserializeJSXExpressionContainer, deserializeJSXSpreadChild, deserializeJSXOpeningElement, deserializeJSXClosingElement, deserializeJSXAttribute, deserializeJSXSpreadAttribute, deserializeJSXText, deserializeJSXElement, deserializeJSXFragment, deserializeJSXOpeningFragment, deserializeJSXClosingFragment, deserializeExistsTypeAnnotation, deserializeEmptyTypeAnnotation, deserializeStringTypeAnnotation, deserializeNumberTypeAnnotation, deserializeStringLiteralTypeAnnotation, deserializeNumberLiteralTypeAnnotation, deserializeBooleanTypeAnnotation, deserializeBooleanLiteralTypeAnnotation, deserializeNullLiteralTypeAnnotation, deserializeSymbolTypeAnnotation, deserializeAnyTypeAnnotation, deserializeMixedTypeAnnotation, deserializeVoidTypeAnnotation, deserializeFunctionTypeAnnotation, deserializeFunctionTypeParam, deserializeNullableTypeAnnotation, deserializeQualifiedTypeIdentifier, deserializeTypeofTypeAnnotation, deserializeTupleTypeAnnotation, deserializeArrayTypeAnnotation, deserializeUnionTypeAnnotation, deserializeIntersectionTypeAnnotation, deserializeGenericTypeAnnotation, deserializeIndexedAccessType, deserializeInterfaceTypeAnnotation, deserializeTypeAlias, deserializeOpaqueType, deserializeInterfaceDeclaration, deserializeDeclareTypeAlias, deserializeDeclareOpaqueType, deserializeDeclareInterface, deserializeDeclareClass, deserializeDeclareFunction, deserializeDeclareVariable, deserializeDeclareExportDeclaration, deserializeDeclareExportAllDeclaration, deserializeDeclareModule, deserializeDeclareModuleExports, deserializeInterfaceExtends, deserializeClassImplements, deserializeTypeAnnotation, deserializeObjectTypeAnnotation, deserializeObjectTypeProperty, deserializeObjectTypeSpreadProperty, deserializeObjectTypeInternalSlot, deserializeObjectTypeCallProperty, deserializeObjectTypeIndexer, deserializeVariance, deserializeTypeParameterDeclaration, deserializeTypeParameter, deserializeTypeParameterInstantiation, deserializeTypeCastExpression, deserializeInferredPredicate, deserializeDeclaredPredicate, deserializeEnumDeclaration, deserializeEnumStringBody, deserializeEnumNumberBody, deserializeEnumBooleanBody, deserializeEnumSymbolBody, deserializeEnumDefaultedMember, deserializeEnumStringMember, deserializeEnumNumberMember, deserializeEnumBooleanMember, deserializeCoverFirst, deserializeCoverEmptyArgs, deserializeCoverTrailingComma, deserializeCoverInitializer, deserializeCoverRestElement, deserializeCoverTypedIdentifier, deserializeCoverLast];
module.exports = [deserializeEmpty, deserializeMetadata, deserializeFunctionLikeFirst, deserializeProgram, deserializeFunctionExpression, deserializeArrowFunctionExpression, deserializeFunctionDeclaration, deserializeFunctionLikeLast, deserializeStatementFirst, deserializeLoopStatementFirst, deserializeWhileStatement, deserializeDoWhileStatement, deserializeForInStatement, deserializeForOfStatement, deserializeForStatement, deserializeLoopStatementLast, deserializeDebuggerStatement, deserializeEmptyStatement, deserializeBlockStatement, deserializeBreakStatement, deserializeContinueStatement, deserializeThrowStatement, deserializeReturnStatement, deserializeWithStatement, deserializeSwitchStatement, deserializeLabeledStatement, deserializeExpressionStatement, deserializeTryStatement, deserializeIfStatement, deserializeStatementLast, deserializeNullLiteral, deserializeBooleanLiteral, deserializeStringLiteral, deserializeNumericLiteral, deserializeRegExpLiteral, deserializeThisExpression, deserializeSuper, deserializeSequenceExpression, deserializeObjectExpression, deserializeArrayExpression, deserializeSpreadElement, deserializeNewExpression, deserializeYieldExpression, deserializeAwaitExpression, deserializeImportExpression, deserializeCallExpressionLikeFirst, deserializeCallExpression, deserializeOptionalCallExpression, deserializeCallExpressionLikeLast, deserializeAssignmentExpression, deserializeUnaryExpression, deserializeUpdateExpression, deserializeMemberExpressionLikeFirst, deserializeMemberExpression, deserializeOptionalMemberExpression, deserializeMemberExpressionLikeLast, deserializeLogicalExpression, deserializeConditionalExpression, deserializeBinaryExpression, deserializeDirective, deserializeDirectiveLiteral, deserializeIdentifier, deserializePrivateName, deserializeMetaProperty, deserializeSwitchCase, deserializeCatchClause, deserializeVariableDeclarator, deserializeVariableDeclaration, deserializeTemplateLiteral, deserializeTaggedTemplateExpression, deserializeTemplateElement, deserializeProperty, deserializeClassDeclaration, deserializeClassExpression, deserializeClassBody, deserializeClassProperty, deserializeClassPrivateProperty, deserializeMethodDefinition, deserializeImportDeclaration, deserializeImportSpecifier, deserializeImportDefaultSpecifier, deserializeImportNamespaceSpecifier, deserializeImportAttribute, deserializeExportNamedDeclaration, deserializeExportSpecifier, deserializeExportNamespaceSpecifier, deserializeExportDefaultDeclaration, deserializeExportAllDeclaration, deserializePatternFirst, deserializeObjectPattern, deserializeArrayPattern, deserializeRestElement, deserializeAssignmentPattern, deserializePatternLast, deserializeJSXIdentifier, deserializeJSXMemberExpression, deserializeJSXNamespacedName, deserializeJSXEmptyExpression, deserializeJSXExpressionContainer, deserializeJSXSpreadChild, deserializeJSXOpeningElement, deserializeJSXClosingElement, deserializeJSXAttribute, deserializeJSXSpreadAttribute, deserializeJSXText, deserializeJSXElement, deserializeJSXFragment, deserializeJSXOpeningFragment, deserializeJSXClosingFragment, deserializeExistsTypeAnnotation, deserializeEmptyTypeAnnotation, deserializeStringTypeAnnotation, deserializeNumberTypeAnnotation, deserializeStringLiteralTypeAnnotation, deserializeNumberLiteralTypeAnnotation, deserializeBooleanTypeAnnotation, deserializeBooleanLiteralTypeAnnotation, deserializeNullLiteralTypeAnnotation, deserializeSymbolTypeAnnotation, deserializeAnyTypeAnnotation, deserializeMixedTypeAnnotation, deserializeVoidTypeAnnotation, deserializeFunctionTypeAnnotation, deserializeFunctionTypeParam, deserializeNullableTypeAnnotation, deserializeQualifiedTypeIdentifier, deserializeTypeofTypeAnnotation, deserializeTupleTypeAnnotation, deserializeArrayTypeAnnotation, deserializeUnionTypeAnnotation, deserializeIntersectionTypeAnnotation, deserializeGenericTypeAnnotation, deserializeIndexedAccessType, deserializeOptionalIndexedAccessType, deserializeInterfaceTypeAnnotation, deserializeTypeAlias, deserializeOpaqueType, deserializeInterfaceDeclaration, deserializeDeclareTypeAlias, deserializeDeclareOpaqueType, deserializeDeclareInterface, deserializeDeclareClass, deserializeDeclareFunction, deserializeDeclareVariable, deserializeDeclareExportDeclaration, deserializeDeclareExportAllDeclaration, deserializeDeclareModule, deserializeDeclareModuleExports, deserializeInterfaceExtends, deserializeClassImplements, deserializeTypeAnnotation, deserializeObjectTypeAnnotation, deserializeObjectTypeProperty, deserializeObjectTypeSpreadProperty, deserializeObjectTypeInternalSlot, deserializeObjectTypeCallProperty, deserializeObjectTypeIndexer, deserializeVariance, deserializeTypeParameterDeclaration, deserializeTypeParameter, deserializeTypeParameterInstantiation, deserializeTypeCastExpression, deserializeInferredPredicate, deserializeDeclaredPredicate, deserializeEnumDeclaration, deserializeEnumStringBody, deserializeEnumNumberBody, deserializeEnumBooleanBody, deserializeEnumSymbolBody, deserializeEnumDefaultedMember, deserializeEnumStringMember, deserializeEnumNumberMember, deserializeEnumBooleanMember, deserializeTSTypeAnnotation, deserializeTSAnyKeyword, deserializeTSNumberKeyword, deserializeTSBooleanKeyword, deserializeTSStringKeyword, deserializeTSSymbolKeyword, deserializeTSVoidKeyword, deserializeTSThisType, deserializeTSLiteralType, deserializeTSIndexedAccessType, deserializeTSArrayType, deserializeTSTypeReference, deserializeTSQualifiedName, deserializeTSFunctionType, deserializeTSConstructorType, deserializeTSTypePredicate, deserializeTSTupleType, deserializeTSTypeAssertion, deserializeTSAsExpression, deserializeTSParameterProperty, deserializeTSTypeAliasDeclaration, deserializeTSInterfaceDeclaration, deserializeTSInterfaceHeritage, deserializeTSInterfaceBody, deserializeTSEnumDeclaration, deserializeTSEnumMember, deserializeTSModuleDeclaration, deserializeTSModuleBlock, deserializeTSModuleMember, deserializeTSTypeParameterDeclaration, deserializeTSTypeParameter, deserializeTSTypeParameterInstantiation, deserializeTSUnionType, deserializeTSIntersectionType, deserializeTSTypeQuery, deserializeTSConditionalType, deserializeTSTypeLiteral, deserializeTSPropertySignature, deserializeTSMethodSignature, deserializeTSIndexSignature, deserializeTSCallSignatureDeclaration, deserializeCoverFirst, deserializeCoverEmptyArgs, deserializeCoverTrailingComma, deserializeCoverInitializer, deserializeCoverRestElement, deserializeCoverTypedIdentifier, deserializeCoverLast];

@@ -140,3 +140,4 @@ /**

HERMES_AST_VISITOR_KEYS['ImportExpression'] = {
source: NODE_CHILD
source: NODE_CHILD,
attributes: NODE_CHILD
};

@@ -265,3 +266,4 @@ HERMES_AST_VISITOR_KEYS['CallExpression'] = {

specifiers: NODE_LIST_CHILD,
source: NODE_CHILD
source: NODE_CHILD,
attributes: NODE_LIST_CHILD
};

@@ -278,2 +280,6 @@ HERMES_AST_VISITOR_KEYS['ImportSpecifier'] = {

};
HERMES_AST_VISITOR_KEYS['ImportAttribute'] = {
key: NODE_CHILD,
value: NODE_CHILD
};
HERMES_AST_VISITOR_KEYS['ExportNamedDeclaration'] = {

@@ -409,2 +415,6 @@ declaration: NODE_CHILD,

};
HERMES_AST_VISITOR_KEYS['OptionalIndexedAccessType'] = {
objectType: NODE_CHILD,
indexType: NODE_CHILD
};
HERMES_AST_VISITOR_KEYS['InterfaceTypeAnnotation'] = {

@@ -567,2 +577,142 @@ "extends": NODE_LIST_CHILD,

};
HERMES_AST_VISITOR_KEYS['TSTypeAnnotation'] = {
typeAnnotation: NODE_CHILD
};
HERMES_AST_VISITOR_KEYS['TSAnyKeyword'] = {};
HERMES_AST_VISITOR_KEYS['TSNumberKeyword'] = {};
HERMES_AST_VISITOR_KEYS['TSBooleanKeyword'] = {};
HERMES_AST_VISITOR_KEYS['TSStringKeyword'] = {};
HERMES_AST_VISITOR_KEYS['TSSymbolKeyword'] = {};
HERMES_AST_VISITOR_KEYS['TSVoidKeyword'] = {};
HERMES_AST_VISITOR_KEYS['TSThisType'] = {};
HERMES_AST_VISITOR_KEYS['TSLiteralType'] = {
literal: NODE_CHILD
};
HERMES_AST_VISITOR_KEYS['TSIndexedAccessType'] = {
objectType: NODE_CHILD,
indexType: NODE_CHILD
};
HERMES_AST_VISITOR_KEYS['TSArrayType'] = {
elementType: NODE_CHILD
};
HERMES_AST_VISITOR_KEYS['TSTypeReference'] = {
typeName: NODE_CHILD,
typeParameters: NODE_CHILD
};
HERMES_AST_VISITOR_KEYS['TSQualifiedName'] = {
left: NODE_CHILD,
right: NODE_CHILD
};
HERMES_AST_VISITOR_KEYS['TSFunctionType'] = {
params: NODE_LIST_CHILD,
returnType: NODE_CHILD,
typeParameters: NODE_CHILD
};
HERMES_AST_VISITOR_KEYS['TSConstructorType'] = {
params: NODE_LIST_CHILD,
returnType: NODE_CHILD,
typeParameters: NODE_CHILD
};
HERMES_AST_VISITOR_KEYS['TSTypePredicate'] = {
parameterName: NODE_CHILD,
typeAnnotation: NODE_CHILD
};
HERMES_AST_VISITOR_KEYS['TSTupleType'] = {
elementTypes: NODE_LIST_CHILD
};
HERMES_AST_VISITOR_KEYS['TSTypeAssertion'] = {
typeAnnotation: NODE_CHILD,
expression: NODE_CHILD
};
HERMES_AST_VISITOR_KEYS['TSAsExpression'] = {
expression: NODE_CHILD,
typeAnnotation: NODE_CHILD
};
HERMES_AST_VISITOR_KEYS['TSParameterProperty'] = {
parameter: NODE_CHILD
};
HERMES_AST_VISITOR_KEYS['TSTypeAliasDeclaration'] = {
id: NODE_CHILD,
typeParameters: NODE_CHILD,
typeAnnotation: NODE_CHILD
};
HERMES_AST_VISITOR_KEYS['TSInterfaceDeclaration'] = {
id: NODE_CHILD,
body: NODE_CHILD,
"extends": NODE_LIST_CHILD,
typeParameters: NODE_CHILD
};
HERMES_AST_VISITOR_KEYS['TSInterfaceHeritage'] = {
expression: NODE_CHILD,
typeParameters: NODE_CHILD
};
HERMES_AST_VISITOR_KEYS['TSInterfaceBody'] = {
body: NODE_LIST_CHILD
};
HERMES_AST_VISITOR_KEYS['TSEnumDeclaration'] = {
id: NODE_CHILD,
members: NODE_LIST_CHILD
};
HERMES_AST_VISITOR_KEYS['TSEnumMember'] = {
id: NODE_CHILD,
initializer: NODE_CHILD
};
HERMES_AST_VISITOR_KEYS['TSModuleDeclaration'] = {
id: NODE_CHILD,
body: NODE_CHILD
};
HERMES_AST_VISITOR_KEYS['TSModuleBlock'] = {
body: NODE_LIST_CHILD
};
HERMES_AST_VISITOR_KEYS['TSModuleMember'] = {
id: NODE_CHILD,
initializer: NODE_CHILD
};
HERMES_AST_VISITOR_KEYS['TSTypeParameterDeclaration'] = {
params: NODE_LIST_CHILD
};
HERMES_AST_VISITOR_KEYS['TSTypeParameter'] = {
name: NODE_CHILD,
constraint: NODE_CHILD,
"default": NODE_CHILD
};
HERMES_AST_VISITOR_KEYS['TSTypeParameterInstantiation'] = {
params: NODE_LIST_CHILD
};
HERMES_AST_VISITOR_KEYS['TSUnionType'] = {
types: NODE_LIST_CHILD
};
HERMES_AST_VISITOR_KEYS['TSIntersectionType'] = {
types: NODE_LIST_CHILD
};
HERMES_AST_VISITOR_KEYS['TSTypeQuery'] = {
exprName: NODE_CHILD
};
HERMES_AST_VISITOR_KEYS['TSConditionalType'] = {
extendsType: NODE_CHILD,
checkType: NODE_CHILD,
trueType: NODE_CHILD,
falseTYpe: NODE_CHILD
};
HERMES_AST_VISITOR_KEYS['TSTypeLiteral'] = {
members: NODE_LIST_CHILD
};
HERMES_AST_VISITOR_KEYS['TSPropertySignature'] = {
key: NODE_CHILD,
typeAnnotation: NODE_CHILD,
initializer: NODE_CHILD
};
HERMES_AST_VISITOR_KEYS['TSMethodSignature'] = {
key: NODE_CHILD,
params: NODE_LIST_CHILD,
returnType: NODE_CHILD
};
HERMES_AST_VISITOR_KEYS['TSIndexSignature'] = {
parameters: NODE_LIST_CHILD,
typeAnnotation: NODE_CHILD
};
HERMES_AST_VISITOR_KEYS['TSCallSignatureDeclaration'] = {
params: NODE_LIST_CHILD,
returnType: NODE_CHILD
};
HERMES_AST_VISITOR_KEYS['CoverEmptyArgs'] = {};

@@ -569,0 +719,0 @@ HERMES_AST_VISITOR_KEYS['CoverTrailingComma'] = {};

2

package.json
{
"name": "hermes-parser",
"version": "0.4.4",
"version": "0.4.6",
"description": "A JavaScript parser built from the Hermes engine",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc