|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
558 bytes
|
| Line | |
|---|
| 1 | "use strict";
|
|---|
| 2 |
|
|---|
| 3 | Object.defineProperty(exports, "__esModule", {
|
|---|
| 4 | value: true
|
|---|
| 5 | });
|
|---|
| 6 | exports.default = extractValueFromFunctionExpression;
|
|---|
| 7 | /**
|
|---|
| 8 | * Extractor function for a FunctionExpression type value node.
|
|---|
| 9 | * Statically, we can't execute the given function, so just return a function
|
|---|
| 10 | * to indicate that the value is present.
|
|---|
| 11 | *
|
|---|
| 12 | * @param - value - AST Value object with type `FunctionExpression`
|
|---|
| 13 | * @returns - The extracted value converted to correct type.
|
|---|
| 14 | */
|
|---|
| 15 | function extractValueFromFunctionExpression(value) {
|
|---|
| 16 | return function () {
|
|---|
| 17 | return value;
|
|---|
| 18 | };
|
|---|
| 19 | } |
|---|
Note:
See
TracBrowser
for help on using the repository browser.