mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 22:34:09 +02:00
Fixed fixits on types with comptime-emitted code
This commit is contained in:
parent
b8c7a29b84
commit
438394099a
2 changed files with 5 additions and 5 deletions
|
@ -1762,7 +1762,7 @@ namespace IDE.ui
|
||||||
|
|
||||||
bool isFastClassify = false;
|
bool isFastClassify = false;
|
||||||
BfParser parser;
|
BfParser parser;
|
||||||
if (!isBackground)
|
if ((!isBackground) && (projectSource != null))
|
||||||
{
|
{
|
||||||
bfSystem.PerfZoneStart("CreateParser");
|
bfSystem.PerfZoneStart("CreateParser");
|
||||||
parser = bfSystem.CreateParser(projectSource, false);
|
parser = bfSystem.CreateParser(projectSource, false);
|
||||||
|
|
|
@ -3268,7 +3268,7 @@ void BfAutoComplete::FixitAddMember(BfTypeInstance* typeInst, BfType* fieldType,
|
||||||
if (typeInst == mModule->mContext->mBfObjectType)
|
if (typeInst == mModule->mContext->mBfObjectType)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
auto parser = typeInst->mTypeDef->mSource->ToParser();
|
auto parser = typeInst->mTypeDef->GetDefinition()->mSource->ToParser();
|
||||||
if (parser == NULL)
|
if (parser == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -3323,7 +3323,7 @@ void BfAutoComplete::FixitAddCase(BfTypeInstance* typeInst, const StringImpl& ca
|
||||||
if (typeInst == mModule->mContext->mBfObjectType)
|
if (typeInst == mModule->mContext->mBfObjectType)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
auto parser = typeInst->mTypeDef->mSource->ToParser();
|
auto parser = typeInst->mTypeDef->GetDefinition()->mSource->ToParser();
|
||||||
if (parser == NULL)
|
if (parser == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -3562,7 +3562,7 @@ void BfAutoComplete::FixitAddMethod(BfTypeInstance* typeInst, const StringImpl&
|
||||||
|
|
||||||
if ((typeInst->mTypeDef->mSource != NULL) && (typeInst != mModule->mContext->mBfObjectType))
|
if ((typeInst->mTypeDef->mSource != NULL) && (typeInst != mModule->mContext->mBfObjectType))
|
||||||
{
|
{
|
||||||
auto parser = typeInst->mTypeDef->mSource->ToParser();
|
auto parser = typeInst->mTypeDef->GetDefinition()->mSource->ToParser();
|
||||||
if (parser != NULL)
|
if (parser != NULL)
|
||||||
{
|
{
|
||||||
String fullName = typeInst->mTypeDef->mFullName.ToString();
|
String fullName = typeInst->mTypeDef->mFullName.ToString();
|
||||||
|
@ -3643,7 +3643,7 @@ void BfAutoComplete::FixitCheckNamespace(BfTypeDef* activeTypeDef, BfAstNode* ty
|
||||||
void BfAutoComplete::FixitAddConstructor(BfTypeInstance *typeInstance)
|
void BfAutoComplete::FixitAddConstructor(BfTypeInstance *typeInstance)
|
||||||
{
|
{
|
||||||
auto baseType = typeInstance->mBaseType;
|
auto baseType = typeInstance->mBaseType;
|
||||||
auto parser = typeInstance->mTypeDef->mSource->ToParser();
|
auto parser = typeInstance->mTypeDef->GetDefinition()->mSource->ToParser();
|
||||||
if (parser != NULL)
|
if (parser != NULL)
|
||||||
{
|
{
|
||||||
for (auto methodDef : baseType->mTypeDef->mMethods)
|
for (auto methodDef : baseType->mTypeDef->mMethods)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue