feat: func assign (cuz why not)
This commit is contained in:
parent
fc25cbe3f5
commit
fd2ba20b5e
|
@ -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}
|
||||||
/>,
|
/>,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user