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:
parent
60b6437f69
commit
c0fe1d1c1b
7 changed files with 47 additions and 11 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue