Title: Address Issue 103: Extend `ParameterInCallable` class to capture line and column offsets by rahlk · Pull Request #122 · codellm-devkit/codeanalyzer-java · GitHub
Open Graph Title: Address Issue 103: Extend `ParameterInCallable` class to capture line and column offsets by rahlk · Pull Request #122 · codellm-devkit/codeanalyzer-java
X Title: Address Issue 103: Extend `ParameterInCallable` class to capture line and column offsets by rahlk · Pull Request #122 · codellm-devkit/codeanalyzer-java
Description: Summary
Added source code position tracking (line/column) for parameters in method declarations to enable precise source code navigation and analysis in codeanalyzer-java.
Motivation and Context
Previously, parameters in method declarations lacked source position information, making it difficult to accurately locate them in source code when performing navigation, cross-referencing, and precise code analysis.
This update adds start/end line and column positions to ParameterInCallable, enabling:
Better source mapping for tools that analyze and visualize code structure.
Improved accuracy when linking parameters to their usage locations.
Seamless integration with downstream tools consuming analysis.json.
How Has This Been Tested?
Implemented new tests:
parametersInCallableMustHaveStartAndEndLineAndColumns(): Verifies that method parameters correctly store start/end line and column positions.
Breaking Changes
This is a breaking change, because users consuming analysis.json should be aware of the new fields in ParameterInCallable:
private int startLine;
private int endLine;
private int startCol;
private int endCol;
These fields will now appear in the serialized output.
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](https://codellm-devkit.info)
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
Changes Implemented
Modified ParameterInCallable to store position information:
@Data
public class ParameterInCallable {
private String type;
private String name;
private List
Open Graph Description: Summary Added source code position tracking (line/column) for parameters in method declarations to enable precise source code navigation and analysis in codeanalyzer-java. Motivation and Context P...
X Description: Summary Added source code position tracking (line/column) for parameters in method declarations to enable precise source code navigation and analysis in codeanalyzer-java. Motivation and Context P...
Opengraph URL: https://github.com/codellm-devkit/codeanalyzer-java/pull/122
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:dca1d9e7-8522-e81d-a2a8-2e39167ef4ad |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DD3C:A8D23:1476C3:1BA2F8:698E291F |
| html-safe-nonce | 897374d97ec6ed1b25d8e9c5265adb3ca38268c3669f52031116f434864b77e1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDNDOkE4RDIzOjE0NzZDMzoxQkEyRjg6Njk4RTI5MUYiLCJ2aXNpdG9yX2lkIjoiNzM3MTAzNjg1NTI4NDY3Mjc5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 304613c219998a6a77ff496ce37669491efa10071e23bcd883b75578d5577eee |
| hovercard-subject-tag | pull_request:2343100073 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/codellm-devkit/codeanalyzer-java/pull/122/files |
| twitter:image | https://avatars.githubusercontent.com/u/1433964?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1433964?s=400&v=4 |
| og:image:alt | Summary Added source code position tracking (line/column) for parameters in method declarations to enable precise source code navigation and analysis in codeanalyzer-java. Motivation and Context P... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | a5632af64f7fed7bff1d6a428d1aca1b94fa7a48f760de2d39d9b1effdbf0082 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/codellm-devkit/codeanalyzer-java git https://github.com/codellm-devkit/codeanalyzer-java.git |
| octolytics-dimension-user_id | 197800760 |
| octolytics-dimension-user_login | codellm-devkit |
| octolytics-dimension-repository_id | 731300153 |
| octolytics-dimension-repository_nwo | codellm-devkit/codeanalyzer-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 731300153 |
| octolytics-dimension-repository_network_root_nwo | codellm-devkit/codeanalyzer-java |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2f1e729d231ea1ea5a098d21f1491b75bea53631 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width