Skip to content

Include data_mappings.bal in deciding the function range of functions found in mappings#272

Merged
KavinduZoysa merged 8 commits intoballerina-platform:mainfrom
pasindufernando1:function_Range
Sep 1, 2025
Merged

Include data_mappings.bal in deciding the function range of functions found in mappings#272
KavinduZoysa merged 8 commits intoballerina-platform:mainfrom
pasindufernando1:function_Range

Conversation

@pasindufernando1
Copy link
Contributor

Copilot AI review requested due to automatic review settings September 1, 2025 08:04
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the data mapping functionality to include data_mappings.bal file when determining function ranges for functions found in mappings, addressing issue #991.

  • Adds support for searching functions in both functions.bal and data_mappings.bal files
  • Refactors function range detection logic to check multiple documents
  • Updates all mapping generation methods to pass the additional document parameter

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
DataMapperService.java Loads data_mappings.bal document and passes it to the mapping generation
DataMapManager.java Updates all mapping methods to accept and utilize the additional data mapping document for function range detection

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@KavinduZoysa KavinduZoysa merged commit 971579d into ballerina-platform:main Sep 1, 2025
3 checks passed
@pasindufernando1 pasindufernando1 deleted the function_Range branch September 8, 2025 08:11
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.

3 participants