Sha256: 5618d14e8ec45969f3b18a5b8c51f9cbc2523d286f7649885024fbd78e867777

Contents?: true

Size: 558 Bytes

Versions: 52

Compression:

Stored size: 558 Bytes

Contents

"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = extractValueFromFunctionExpression;
/**
 * Extractor function for a FunctionExpression type value node.
 * Statically, we can't execute the given function, so just return a function
 * to indicate that the value is present.
 *
 * @param - value - AST Value object with type `FunctionExpression`
 * @returns - The extracted value converted to correct type.
 */
function extractValueFromFunctionExpression(value) {
  return function () {
    return value;
  };
}

Version data entries

52 entries across 52 versions & 4 rubygems

Version Path
immosquare-cleaner-0.1.51 node_modules/jsx-ast-utils/lib/values/expressions/FunctionExpression.js
immosquare-cleaner-0.1.50 node_modules/jsx-ast-utils/lib/values/expressions/FunctionExpression.js
immosquare-cleaner-0.1.49 node_modules/jsx-ast-utils/lib/values/expressions/FunctionExpression.js
immosquare-cleaner-0.1.48 node_modules/jsx-ast-utils/lib/values/expressions/FunctionExpression.js
immosquare-cleaner-0.1.47 node_modules/jsx-ast-utils/lib/values/expressions/FunctionExpression.js
immosquare-cleaner-0.1.46 node_modules/jsx-ast-utils/lib/values/expressions/FunctionExpression.js
immosquare-cleaner-0.1.45 node_modules/jsx-ast-utils/lib/values/expressions/FunctionExpression.js
decidim-0.26.8 packages/eslint-config/node_modules/jsx-ast-utils/lib/values/expressions/FunctionExpression.js
govuk_publishing_components-18.0.0 node_modules/jsx-ast-utils/lib/values/expressions/FunctionExpression.js
govuk_publishing_components-17.21.0 node_modules/jsx-ast-utils/lib/values/expressions/FunctionExpression.js
govuk_publishing_components-17.20.0 node_modules/jsx-ast-utils/lib/values/expressions/FunctionExpression.js
govuk_publishing_components-17.19.1 node_modules/jsx-ast-utils/lib/values/expressions/FunctionExpression.js
govuk_publishing_components-17.19.0 node_modules/jsx-ast-utils/lib/values/expressions/FunctionExpression.js
govuk_publishing_components-17.18.0 node_modules/jsx-ast-utils/lib/values/expressions/FunctionExpression.js
govuk_publishing_components-17.17.0 node_modules/jsx-ast-utils/lib/values/expressions/FunctionExpression.js
govuk_publishing_components-17.16.0 node_modules/jsx-ast-utils/lib/values/expressions/FunctionExpression.js
govuk_publishing_components-17.15.0 node_modules/jsx-ast-utils/lib/values/expressions/FunctionExpression.js
govuk_publishing_components-17.14.0 node_modules/jsx-ast-utils/lib/values/expressions/FunctionExpression.js
govuk_publishing_components-17.13.0 node_modules/jsx-ast-utils/lib/values/expressions/FunctionExpression.js
govuk_publishing_components-17.12.2 node_modules/jsx-ast-utils/lib/values/expressions/FunctionExpression.js