Skip to content

Conversation

sinha108
Copy link
Collaborator

@sinha108 sinha108 commented May 16, 2025

Motivation and Context

This PR fixes the handling of source_code option in JCodeanalyzer. If this option is specified, the application instance is created by analyzing a single file instead of the regular analysis path with project dir.

How Has This Been Tested?

Tested by initializing a CLDK instance with stringified Java code specified as the source_code option and checking the generated symbol table.

CLDK(language="java").analysis(source_code=java_code, analysis_level=AnalysisLevel.symbol_table)

Breaking Changes

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the Codellm-Devkit Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

Signed-off-by: Saurabh Sinha <sinha108@gmail.com>
@sinha108 sinha108 requested a review from rahlk May 16, 2025 21:32
sinha108 and others added 3 commits May 19, 2025 13:22
@rahlk rahlk merged commit 4a89fe1 into main May 24, 2025
@rahlk rahlk deleted the source-code-option-fix branch May 24, 2025 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants