mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed struct ctor assigned checking during autocomplete
This commit is contained in:
parent
994640df11
commit
b71d7beb47
1 changed files with 5 additions and 0 deletions
|
@ -2104,6 +2104,11 @@ void BfModule::LocalVariableDone(BfLocalVariable* localVar, bool isMethodExit)
|
|||
|
||||
// We may skip processing of local methods, so we won't know if it bind to any of our local variables or not
|
||||
bool deferFullAnalysis = mCurMethodState->GetRootMethodState()->mLocalMethodCache.size() != 0;
|
||||
|
||||
// We may have init blocks that we aren't processing here...
|
||||
if ((mCurMethodInstance->mIsAutocompleteMethod) && (mCurMethodInstance->mMethodDef->mMethodType == BfMethodType_Ctor))
|
||||
deferFullAnalysis = true;
|
||||
|
||||
//bool deferFullAnalysis = true;
|
||||
bool deferUsageWarning = deferFullAnalysis && mCompiler->IsAutocomplete();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue