mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed fixit for unused local variables in methods with local methods
This commit is contained in:
parent
87d403f72e
commit
9ee38354f7
1 changed files with 2 additions and 1 deletions
|
@ -2266,7 +2266,8 @@ void BfModule::LocalVariableDone(BfLocalVariable* localVar, bool isMethodExit)
|
||||||
deferFullAnalysis = true;
|
deferFullAnalysis = true;
|
||||||
|
|
||||||
//bool deferFullAnalysis = true;
|
//bool deferFullAnalysis = true;
|
||||||
bool deferUsageWarning = deferFullAnalysis && mCompiler->IsAutocomplete();
|
bool deferUsageWarning = deferFullAnalysis && (mCompiler->IsAutocomplete()) &&
|
||||||
|
(mCompiler->mResolvePassData->mAutoComplete->mResolveType != BfResolveType_GetFixits);
|
||||||
|
|
||||||
if (((localVar->mAssignedKind != BfLocalVarAssignKind_Unconditional) || (localVar->mHadExitBeforeAssign)) &&
|
if (((localVar->mAssignedKind != BfLocalVarAssignKind_Unconditional) || (localVar->mHadExitBeforeAssign)) &&
|
||||||
(!localVar->mIsImplicitParam))
|
(!localVar->mIsImplicitParam))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue