Skip to content

Commit

Permalink
[fix] - Add JSXElement to expression types to handle recursively extr…
Browse files Browse the repository at this point in the history
…acting prop value.
  • Loading branch information
Ethan Cohen committed Jul 13, 2016
1 parent a5fba3c commit ff94b62
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/values/expressions/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import assign from 'object-assign';
import Literal from '../Literal';
import JSXElement from '../JSXElement';
import Identifier from './Identifier';
import TaggedTemplateExpression from './TaggedTemplateExpression';
import TemplateLiteral from './TemplateLiteral';
Expand All @@ -18,6 +19,7 @@ import NewExpression from './NewExpression';
const TYPES = {
Identifier,
Literal,
JSXElement,
TaggedTemplateExpression,
TemplateLiteral,
ArrowFunctionExpression: FunctionExpression,
Expand Down Expand Up @@ -48,6 +50,7 @@ const LITERAL_TYPES = assign({}, TYPES, {
const isUndefined = TYPES.Identifier.call(undefined, value) === undefined;
return isUndefined ? undefined : null;
},
JSXElement: noop,
ArrowFunctionExpression: noop,
FunctionExpression: noop,
LogicalExpression: noop,
Expand Down

0 comments on commit ff94b62

Please sign in to comment.