| 947 | } |
| 948 | |
| 949 | bool BfTypeDef::HasAutoProperty(BfPropertyDeclaration* propertyDeclaration) |
| 950 | { |
| 951 | if (mTypeCode == BfTypeCode_Interface) |
| 952 | return false; |
| 953 | if (propertyDeclaration->mTypeRef == NULL) |
| 954 | return false; |
| 955 | if ((propertyDeclaration->mVirtualSpecifier != NULL) && (propertyDeclaration->mVirtualSpecifier->GetToken() == BfToken_Abstract)) |
| 956 | return false; |
| 957 | if (propertyDeclaration->mExternSpecifier != NULL) |
| 958 | return false; |
| 959 | if (propertyDeclaration->IsA<BfIndexerDeclaration>()) |
| 960 | return false; |
| 961 | |
| 962 | for (auto methodDeclaration : propertyDeclaration->mMethods) |
| 963 | { |
| 964 | if (methodDeclaration->mBody == NULL) |
| 965 | return true; |
| 966 | } |
| 967 | return false; |
| 968 | } |
| 969 | |
| 970 | String BfTypeDef::GetAutoPropertyName(BfPropertyDeclaration* propertyDeclaration) |
| 971 | { |
no test coverage detected