feat: func assign (cuz why not)

This commit is contained in:
cha0s 2021-01-31 14:20:29 -06:00
parent fc25cbe3f5
commit fd2ba20b5e

View File

@ -251,7 +251,6 @@ const Expression = ({
const [lastOp] = ops.slice(-1); const [lastOp] = ops.slice(-1);
if ( if (
'void' === type 'void' === type
&& !description.args
&& isKey(lastOp) && isKey(lastOp)
) { ) {
const opPath = join(path, 'value'); const opPath = join(path, 'value');
@ -283,6 +282,9 @@ const Expression = ({
/>, />,
); );
if (expressionValue) { if (expressionValue) {
const expressionType = isKey(lastOp) && description.args
? 'function'
: description.type;
Renderables.push( Renderables.push(
<Variant <Variant
context={context} context={context}
@ -294,7 +296,7 @@ const Expression = ({
}} }}
key={join(opPath, 'expression')} key={join(opPath, 'expression')}
path={opPath} path={opPath}
type={description.type} type={expressionType}
value={expressionValue} value={expressionValue}
vararg={vararg} vararg={vararg}
/>, />,