source: imaps-frontend/node_modules/jsx-ast-utils/src/values/expressions/FunctionExpression.js

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 416 bytes
Line 
1/**
2 * Extractor function for a FunctionExpression type value node.
3 * Statically, we can't execute the given function, so just return a function
4 * to indicate that the value is present.
5 *
6 * @param - value - AST Value object with type `FunctionExpression`
7 * @returns - The extracted value converted to correct type.
8 */
9export default function extractValueFromFunctionExpression(value) {
10 return () => value;
11}
Note: See TracBrowser for help on using the repository browser.