feat: Add support for class hierarchy resolution#39
Merged
Conversation
Member
abhisek
commented
Aug 5, 2025
- feat: Add support for class inheritence resolution
- feat: Add support for Python class resolution
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #39 +/- ##
==========================================
+ Coverage 49.55% 56.84% +7.28%
==========================================
Files 44 46 +2
Lines 2797 3661 +864
==========================================
+ Hits 1386 2081 +695
- Misses 1298 1421 +123
- Partials 113 159 +46 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
95bf5f8 to
debccb3
Compare
vet Summary ReportThis report is generated by vet Policy Checks
Malicious Package AnalysisMalicious package analysis was performed using SafeDep Cloud API Malicious Package Analysis Report
Changed PackagesChanged Packages
Policy ViolationsPackages Violating Policy[Go]
|
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR implements class hierarchy resolution capabilities for Python and Java languages. It adds support for extracting class declarations, analyzing inheritance relationships, and building inheritance graphs from parsed code.
Key Changes:
- Implements ObjectOrientedLanguageResolvers interface for Python and Java
- Adds AST nodes for class declarations and inheritance graphs
- Creates comprehensive test suites with real fixture files for both languages
Reviewed Changes
Copilot reviewed 20 out of 21 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| core/language.go | Defines ObjectOrientedLanguageResolvers interface with class and inheritance resolution methods |
| core/ast/class_decl.go | Implements ClassDeclarationNode for representing class definitions with inheritance support |
| core/ast/inheritance.go | Implements InheritanceGraph for managing class hierarchy relationships and analysis |
| lang/python_resolvers.go | Adds Python-specific class and inheritance resolution using Tree-Sitter queries |
| lang/java_resolvers.go | Adds Java-specific class and inheritance resolution using Tree-Sitter queries |
| lang/*_integration_test.go | Comprehensive integration tests for class resolution in both languages |
| lang/fixtures/*.py, *.java | Test fixtures demonstrating various inheritance patterns |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Abhisek Datta <abhisek.datta@gmail.com>
arunanshub
approved these changes
Aug 6, 2025
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.