Skip to content

Comments

Add support for NamedArg Listeners#840

Merged
anuruddhal merged 2 commits intoballerina-platform:masterfrom
anuruddhal:master
Mar 17, 2025
Merged

Add support for NamedArg Listeners#840
anuruddhal merged 2 commits intoballerina-platform:masterfrom
anuruddhal:master

Conversation

@anuruddhal
Copy link
Member

Purpose

@anuruddhal anuruddhal requested a review from Copilot March 17, 2025 06:41
Copy link

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 introduces support for NamedArg Listeners by enhancing the extraction logic and adding corresponding tests.

  • Added a new test case for handling listeners initialized using named arguments.
  • Updated the listener extraction logic in C2CVisitor.java to handle both positional and named arguments.
  • Bumped dependency and plugin versions to reflect the new feature support.

Reviewed Changes

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

Show a summary per file
File Description
compiler-plugin-tests/src/test/resources/service/named-param-port/Ballerina.toml Added test configuration for the new listener setup.
compiler-plugin-tests/src/test/java/io/ballerina/c2c/test/ServiceExtractionTest.java Added a new test to verify named argument listener extraction.
cloud-util/src/main/java/io/ballerina/c2c/util/C2CVisitor.java Updated extraction logic to support named arguments for Listener initialization.
ballerina/CompilerPlugin.toml Updated dependency path and version.
ballerina/Dependencies.toml Updated dependency version.
ballerina/Ballerina.toml Updated package version.

@anuruddhal anuruddhal merged commit 6873805 into ballerina-platform:master Mar 17, 2025
2 checks passed
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.

[Bug]: Code to Cloud breaks for below Ballerina code

3 participants