mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Better enum autocomplete hygiene
This commit is contained in:
parent
fa1271b662
commit
20c88dfeb0
9 changed files with 109 additions and 37 deletions
|
@ -22532,6 +22532,9 @@ void BfModule::GetMethodCustomAttributes(BfMethodInstance* methodInstance)
|
|||
auto propertyMethodDeclaration = methodDef->GetPropertyMethodDeclaration();
|
||||
auto typeInstance = methodInstance->GetOwner();
|
||||
|
||||
if (typeInstance->IsInstanceOf(mCompiler->mValueTypeTypeDef))
|
||||
return;
|
||||
|
||||
BfTypeState typeState(typeInstance);
|
||||
SetAndRestoreValue<BfTypeState*> prevTypeState(mContext->mCurTypeState, &typeState);
|
||||
SetAndRestoreValue<BfTypeInstance*> prevTypeInstance(mCurTypeInstance, typeInstance);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue