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