Repository navigation
fix(vba): case-insensitive stub resolution and failed-reference retry on sync - #347
Merged
Merged
Conversation
… on sync VBA names are case-insensitive, but the stub resolver and the failed reference retry compared them case-sensitively, so a receiver declared As EXPEDIENTE never reached class Expediente. For VBA only, the exact lookup now falls back to a case-insensitive one (ambiguity still fails closed). A member-access stub that ends declined-not-found is still deleted, but a failed row is now kept per caller/member/accessor, so a property added to a class later re-links its callers on sync without re-extracting them. Other languages keep their behaviour. Closes #346 Fixes part of #336
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #346. Fixes part of #336 (item 1: an accessor added later now re-links on sync).
What changes (VBA only)
qualifiedNamelookup and the.basfallback retry case-insensitively, and only when the exact lookup finds nothing. Every edge that linked before links the same way, and two or more matches still enddeclined-ambiguous.declined-not-foundis still deleted (fix(vba): Property Get reads through member access produce no caller edges #334), but one failed row per caller, member and accessor is now kept. When the property is added to the class later,codegraph-vba syncre-links the caller without re-extracting its file. Fields, constants and library types (Recordset,Control…) are not kept.Evidence
tscis clean.callsfunction→function. The 6 lost were dead-end stubs (EXPEDIENTE.SetPropiedad,Pecal.SetPropiedad…), replaced by edges to the real procedures inExpediente.cls/PECAL.cls/suministrador.cls. The receivers are declaredAs EXPEDIENTEwhile the class isExpediente. The other 21 gained edges are property reads of the same kind.Follow-ups
resolveVbaReferenceStubs(type placeholders, [Bug] codegraph_explore blast radius does not traverse Test_*.bas / Test_*.cls files — ⚠️ no covering tests is misleading #78) is still case-sensitive. It needs its own AGEDYS diff.