mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed autocomplete in type extension field initializers
This commit is contained in:
parent
b261615bd9
commit
d34976864c
1 changed files with 7 additions and 0 deletions
|
@ -32,6 +32,7 @@
|
||||||
#include "BfNamespaceVisitor.h"
|
#include "BfNamespaceVisitor.h"
|
||||||
#include "CeMachine.h"
|
#include "CeMachine.h"
|
||||||
#include "CeDebugger.h"
|
#include "CeDebugger.h"
|
||||||
|
#include "BfDefBuilder.h"
|
||||||
|
|
||||||
#pragma warning(pop)
|
#pragma warning(pop)
|
||||||
|
|
||||||
|
@ -4798,6 +4799,12 @@ void BfCompiler::ProcessAutocompleteTempType()
|
||||||
|
|
||||||
Array<BfMethodInstance*> methodInstances;
|
Array<BfMethodInstance*> methodInstances;
|
||||||
|
|
||||||
|
if (tempTypeDef->IsExtension())
|
||||||
|
{
|
||||||
|
BfDefBuilder::AddMethod(tempTypeDef, BfMethodType_CtorNoBody, BfProtection_Public, true, "", false);
|
||||||
|
BfDefBuilder::AddMethod(tempTypeDef, BfMethodType_CtorNoBody, BfProtection_Public, false, "", false);
|
||||||
|
}
|
||||||
|
|
||||||
for (auto methodDef : tempTypeDef->mMethods)
|
for (auto methodDef : tempTypeDef->mMethods)
|
||||||
{
|
{
|
||||||
auto methodDeclaration = methodDef->GetMethodDeclaration();
|
auto methodDeclaration = methodDef->GetMethodDeclaration();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue