mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-05-13 03:43:17 +08:00
Update Release
This commit is contained in:
@@ -4381,9 +4381,15 @@ CreateBindContext
|
||||
|
||||
void Visit(WfConstructorExpression* node)override
|
||||
{
|
||||
auto result = manager->expressionResolvings[node];
|
||||
bool isStruct = (result.type->GetTypeDescriptor()->GetTypeDescriptorFlags() == TypeDescriptorFlags::Struct);
|
||||
|
||||
FOREACH(Ptr<WfConstructorArgument>, argument, node->arguments)
|
||||
{
|
||||
DirectDepend(node, argument->key.Obj());
|
||||
if (!isStruct)
|
||||
{
|
||||
DirectDepend(node, argument->key.Obj());
|
||||
}
|
||||
DirectDepend(node, argument->value.Obj());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user