mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Added expression bodies for properties
This commit is contained in:
parent
69e3bf94f7
commit
85648cda63
8 changed files with 102 additions and 54 deletions
|
@ -847,8 +847,10 @@ void BfDefBuilder::Visit(BfPropertyDeclaration* propertyDeclaration)
|
|||
}
|
||||
}
|
||||
|
||||
String methodName;
|
||||
if ((methodDeclaration != NULL) && (methodDeclaration->mNameNode != NULL))
|
||||
String methodName;
|
||||
if (auto propExprBody = BfNodeDynCast<BfPropertyBodyExpression>(propertyDeclaration->mDefinitionBlock))
|
||||
methodName = "get";
|
||||
else if ((methodDeclaration != NULL) && (methodDeclaration->mNameNode != NULL))
|
||||
methodName = methodDeclaration->mNameNode->ToString();
|
||||
|
||||
if (methodName == "get")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue