Title: Extend `ParameterInCallable` class to capture Line and Column offsets. · Issue #103 · codellm-devkit/codeanalyzer-java · GitHub
Open Graph Title: Extend `ParameterInCallable` class to capture Line and Column offsets. · Issue #103 · codellm-devkit/codeanalyzer-java
X Title: Extend `ParameterInCallable` class to capture Line and Column offsets. · Issue #103 · codellm-devkit/codeanalyzer-java
Description: Is your feature request related to a problem? Please describe Need to capture source code position information (line/column) for parameters in method declarations to enable precise source code navigation and analysis. Describe the soluti...
Open Graph Description: Is your feature request related to a problem? Please describe Need to capture source code position information (line/column) for parameters in method declarations to enable precise source code navi...
X Description: Is your feature request related to a problem? Please describe Need to capture source code position information (line/column) for parameters in method declarations to enable precise source code navi...
Opengraph URL: https://github.com/codellm-devkit/codeanalyzer-java/issues/103
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Extend `ParameterInCallable` class to capture Line and Column offsets.","articleBody":"### Is your feature request related to a problem? Please describe\n\nNeed to capture source code position information (line/column) for parameters in method declarations to enable precise source code navigation and analysis.\n\n### Describe the solution you'd like\n\nAdd position tracking fields to ParameterInCallable class:\n- startLine: Starting line number\n- endLine: Ending line number \n- startCol: Starting column number\n- endCol: Ending column number\n\nCurrent implementation:\n```java\n@Data\npublic class ParameterInCallable {\n private String type;\n private String name;\n private List\u003cString\u003e annotations;\n private List\u003cString\u003e modifiers;\n}\n```\n\nProposed implementation:\n```java\n@Data\npublic class ParameterInCallable {\n private String type;\n private String name;\n private List\u003cString\u003e annotations;\n private List\u003cString\u003e modifiers;\n private int startLine;\n private int endLine;\n private int startCol;\n private int endCol;\n}\n\n// Usage in parameter processing:\nprivate static ParameterInCallable processParameterDeclaration(Parameter paramDecl) {\n ParameterInCallable parameter = new ParameterInCallable();\n \n paramDecl.getBegin().ifPresent(position -\u003e {\n parameter.setStartLine(position.line);\n parameter.setStartCol(position.column);\n });\n\n paramDecl.getEnd().ifPresent(position -\u003e {\n parameter.setEndLine(position.line);\n parameter.setEndCol(position.column);\n });\n \n // ... rest of processing\n return parameter;\n}\n```\n\n### Describe alternatives you've considered\n\n1. Store positions as a separate object/map\n2. Track only line numbers without columns\n3. Track only start positions without end positions\n\nDirect field storage in `ParameterInCallable` provides the clearest and most maintainable solution that can be consumed by CLDK downstream.\n\n### Additional context\n\nImplementation requires minor changes:\n1. Add position fields to ParameterInCallable class\n2. Update processParameterDeclaration to populate positions from JavaParser Position objects\n3. Update related tests","author":{"url":"https://github.com/rahlk","@type":"Person","name":"rahlk"},"datePublished":"2025-02-03T20:13:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/103/codeanalyzer-java/issues/103"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:dd65699d-0057-e2b7-2170-23a699deb2ca |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ABEE:14B4:329E8:43FC9:698E2753 |
| html-safe-nonce | a97d10d2360fa39a297249bc9ed459c3f14fbf346fb3c69b0a7edfcbabb26489 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkVFOjE0QjQ6MzI5RTg6NDNGQzk6Njk4RTI3NTMiLCJ2aXNpdG9yX2lkIjoiODYzNTQ2OTYxNzk5OTc4Mzc2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dcda8fc8a811dbcbeffcfc828085b511b4498ddd1e2fb971a463939c44ce1a75 |
| hovercard-subject-tag | issue:2828430607 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/codellm-devkit/codeanalyzer-java/103/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f34c77d9d515da36e14f462913953b4316b5b47b8a1001ab1811f571b05065dd/codellm-devkit/codeanalyzer-java/issues/103 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f34c77d9d515da36e14f462913953b4316b5b47b8a1001ab1811f571b05065dd/codellm-devkit/codeanalyzer-java/issues/103 |
| og:image:alt | Is your feature request related to a problem? Please describe Need to capture source code position information (line/column) for parameters in method declarations to enable precise source code navi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rahlk |
| hostname | github.com |
| expected-hostname | github.com |
| None | a5632af64f7fed7bff1d6a428d1aca1b94fa7a48f760de2d39d9b1effdbf0082 |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| 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