From 130c5fe8c85d2d6169bf5c85b3ae65241e68dd5d Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Sun, 16 Jan 2022 08:29:00 -0500 Subject: [PATCH] Fixes to UndoDeclaration --- IDEHelper/Compiler/BfResolvedTypeUtils.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/IDEHelper/Compiler/BfResolvedTypeUtils.cpp b/IDEHelper/Compiler/BfResolvedTypeUtils.cpp index c68689ce..200cc435 100644 --- a/IDEHelper/Compiler/BfResolvedTypeUtils.cpp +++ b/IDEHelper/Compiler/BfResolvedTypeUtils.cpp @@ -676,8 +676,7 @@ BfMethodFlags BfMethodInstance::GetMethodFlags() } void BfMethodInstance::UndoDeclaration(bool keepIRFunction) -{ - +{ if (mMethodInfoEx != NULL) { for (auto genericParam : mMethodInfoEx->mGenericParams) @@ -699,6 +698,8 @@ void BfMethodInstance::UndoDeclaration(bool keepIRFunction) BF_ASSERT(mMethodProcessRequest->mMethodInstance == this); mMethodProcessRequest->mMethodInstance = NULL; } + mHasStartedDeclaration = false; + mHasBeenDeclared = false; mHasBeenProcessed = false; mIsUnspecialized = false; mIsUnspecializedVariation = false;