1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Support for expression-bodied properties with mut

This commit is contained in:
Brian Fiete 2022-01-03 14:41:12 -05:00
parent 60b6437f69
commit c0fe1d1c1b
7 changed files with 47 additions and 11 deletions

View file

@ -1067,6 +1067,9 @@ void BfDefBuilder::Visit(BfPropertyDeclaration* propertyDeclaration)
{
methodName = "get";
ParseAttributes(propertyDeclaration->mAttributes, methodDef);
if (propExprBody->mMutSpecifier != NULL)
methodDef->mIsMutating = true;
HashNode(*mSignatureHashCtx, propExprBody->mMutSpecifier);
}
else if ((methodDeclaration != NULL) && (methodDeclaration->mNameNode != NULL))
methodName = methodDeclaration->mNameNode->ToString();