2022-08-23 11:09:42 +00:00
|
|
|
import {
|
|
|
|
|
ObjectExpression,
|
|
|
|
|
PropertyNode,
|
|
|
|
|
isIdentifierNode,
|
|
|
|
|
isVariableDeclarator,
|
|
|
|
|
isObjectExpression,
|
|
|
|
|
isLiteralNode,
|
|
|
|
|
isPropertyNode,
|
|
|
|
|
isPropertyAFunctionNode,
|
|
|
|
|
getAST,
|
2022-09-17 17:40:28 +00:00
|
|
|
extractInfoFromCode,
|
|
|
|
|
extractInvalidTopLevelMemberExpressionsFromCode,
|
2022-08-23 11:09:42 +00:00
|
|
|
getFunctionalParamsFromNode,
|
|
|
|
|
isTypeOfFunction,
|
2022-09-17 17:40:28 +00:00
|
|
|
MemberExpressionData,
|
|
|
|
|
} from './src';
|
2022-08-23 11:09:42 +00:00
|
|
|
|
|
|
|
|
// constants
|
2022-09-17 17:40:28 +00:00
|
|
|
import { ECMA_VERSION, SourceType, NodeTypes } from './src/constants';
|
2022-08-23 11:09:42 +00:00
|
|
|
|
|
|
|
|
// JSObjects
|
2022-09-17 17:40:28 +00:00
|
|
|
import { parseJSObjectWithAST } from './src/jsObject';
|
2022-08-23 11:09:42 +00:00
|
|
|
|
|
|
|
|
// types or intefaces should be exported with type keyword, while enums can be exported like normal functions
|
2022-09-17 17:40:28 +00:00
|
|
|
export type { ObjectExpression, PropertyNode, MemberExpressionData };
|
2022-08-23 11:09:42 +00:00
|
|
|
|
|
|
|
|
export {
|
|
|
|
|
isIdentifierNode,
|
|
|
|
|
isVariableDeclarator,
|
|
|
|
|
isObjectExpression,
|
|
|
|
|
isLiteralNode,
|
|
|
|
|
isPropertyNode,
|
|
|
|
|
isPropertyAFunctionNode,
|
|
|
|
|
getAST,
|
2022-09-17 17:40:28 +00:00
|
|
|
extractInfoFromCode,
|
|
|
|
|
extractInvalidTopLevelMemberExpressionsFromCode,
|
2022-08-23 11:09:42 +00:00
|
|
|
getFunctionalParamsFromNode,
|
|
|
|
|
isTypeOfFunction,
|
|
|
|
|
parseJSObjectWithAST,
|
|
|
|
|
ECMA_VERSION,
|
|
|
|
|
SourceType,
|
|
|
|
|
NodeTypes,
|
|
|
|
|
};
|