Skip to content

Comments

Add support for match statements where pattern is const#167

Draft
heshanpadmasiri wants to merge 12 commits intoballerina-platform:mainfrom
heshanpadmasiri:feat/match-const
Draft

Add support for match statements where pattern is const#167
heshanpadmasiri wants to merge 12 commits intoballerina-platform:mainfrom
heshanpadmasiri:feat/match-const

Conversation

@heshanpadmasiri
Copy link
Member

@heshanpadmasiri heshanpadmasiri commented Feb 19, 2026

Purpose

resolves #98
depends on #150, #182

@coderabbitai
Copy link

coderabbitai bot commented Feb 19, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Comment @coderabbitai help to get the list of available commands and usage tips.

@heshanpadmasiri heshanpadmasiri added this to the M5 milestone Feb 20, 2026
@codecov
Copy link

codecov bot commented Feb 22, 2026

Codecov Report

❌ Patch coverage is 81.46930% with 169 lines in your changes missing coverage. Please review.
✅ Project coverage is 29.12%. Comparing base (8e7b2a8) to head (f843c7d).

Files with missing lines Patch % Lines
semantics/type_narrowing/type_narrowing.go 90.53% 24 Missing and 6 partials ⚠️
bir/bir_gen.go 73.46% 24 Missing and 2 partials ⚠️
ast/match_patterns.go 8.00% 23 Missing ⚠️
semantics/type_resolver.go 88.16% 14 Missing and 6 partials ⚠️
ast/node_builder.go 69.81% 13 Missing and 3 partials ⚠️
test_util/testphases/phases.go 74.41% 5 Missing and 6 partials ⚠️
ast/pretty_printer.go 82.45% 7 Missing and 3 partials ⚠️
ast/expressions.go 20.00% 8 Missing ⚠️
ast/statements.go 0.00% 7 Missing ⚠️
semantics/control_flow_analyzer.go 77.41% 6 Missing and 1 partial ⚠️
... and 4 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #167      +/-   ##
==========================================
+ Coverage   27.90%   29.12%   +1.21%     
==========================================
  Files         254      257       +3     
  Lines       53858    54627     +769     
==========================================
+ Hits        15031    15909     +878     
+ Misses      37890    37758     -132     
- Partials      937      960      +23     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

Add support for match statements where pattern is const

1 participant