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);
|
||||
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}
|
||||
/>,
|
||||
|
|
Loading…
Reference in New Issue
Block a user