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

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 416 bytes
RevLine 
[9af201e]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.