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