in src/utils/getMemberValuePath.ts [40:73]
export function isSupportedDefinitionType({ node }: NodePath): boolean {
return (
t.ObjectExpression.check(node) ||
t.ClassDeclaration.check(node) ||
t.ClassExpression.check(node) ||
/**
* Adds support for libraries such as
* [styled components]{@link https://github.com/styled-components} that use
* TaggedTemplateExpression's to generate components.
*
* While react-docgen's built-in resolvers do not support resolving
* TaggedTemplateExpression definitions, third-party resolvers (such as
* https://github.com/Jmeyering/react-docgen-annotation-resolver) could be
* used to add these definitions.
*/
t.TaggedTemplateExpression.check(node) ||
// potential stateless function component
t.VariableDeclaration.check(node) ||
t.ArrowFunctionExpression.check(node) ||
t.FunctionDeclaration.check(node) ||
t.FunctionExpression.check(node) ||
/**
* Adds support for libraries such as
* [system-components]{@link https://jxnblk.com/styled-system/system-components} that use
* CallExpressions to generate components.
*
* While react-docgen's built-in resolvers do not support resolving
* CallExpressions definitions, third-party resolvers (such as
* https://github.com/Jmeyering/react-docgen-annotation-resolver) could be
* used to add these definitions.
*/
t.CallExpression.check(node)
);
}