feat: lang handler refactor + parser improvements#246
Open
gzenz wants to merge 1 commit intotirth8205:mainfrom
Open
feat: lang handler refactor + parser improvements#246gzenz wants to merge 1 commit intotirth8205:mainfrom
gzenz wants to merge 1 commit intotirth8205:mainfrom
Conversation
This was referenced Apr 12, 2026
…ements Refactor parser.py to use a strategy pattern for language-specific logic: - Add BaseLanguageHandler with 7-method interface (get_name, get_bases, extract_import_targets, collect_import_names, resolve_module, extract_constructs, builtin_names) - 21 handler implementations in code_review_graph/lang/ for all supported languages including new Luau support - Thread-safe handler registration and type-set caching Parser accuracy improvements: - Typed variable call resolution for Python, Kotlin, Java, JS/TS - Star import expansion via __all__ or module-level definitions - Method call noise filtering via _INSTANCE_METHOD_BLOCKLIST (48 methods) - Function/class reference detection in call args and return values - Angular .component.html template parsing - Dart call extraction for non-standard AST structure - Receiver filtering (self/cls/this/super/uppercase)
edf0aa1 to
ac1ccb9
Compare
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.
Summary
code_review_graph/lang/BaseLanguageHandlerwith 7-method interface for language-specific parsingSplit from #158 (1/5). Independent -- targets main.
Test plan
🤖 Generated with Claude Code