|
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:
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 | */
|
|---|
| 9 | export default function extractValueFromFunctionExpression(value) {
|
|---|
| 10 | return () => value;
|
|---|
| 11 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.