1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Fixed fixit location for usings when file has scoped usings

This commit is contained in:
Brian Fiete 2022-06-01 16:36:58 -07:00
parent c523a73860
commit 1cb91c304b
3 changed files with 19 additions and 0 deletions

View file

@ -9931,6 +9931,7 @@ void BfModule::CheckTypeRefFixit(BfAstNode* typeRef, const char* appendName)
int insertLoc = 0;
BfUsingFinder usingFinder;
usingFinder.mFromIdx = typeRef->mSrcStart;
usingFinder.VisitMembers(typeRef->GetSourceData()->mRootNode);
for (auto& namespaceStr : fixitNamespaces)