Skip to content

support binding for contextmanager#346

Merged
Roger-luo merged 1 commit into
mainfrom
roger/with-binding
Apr 4, 2025
Merged

support binding for contextmanager#346
Roger-luo merged 1 commit into
mainfrom
roger/with-binding

Conversation

@Roger-luo
Copy link
Copy Markdown
Collaborator

@Roger-luo Roger-luo commented Apr 4, 2025

this PR supports binding of with <stmt> etc. by supporting @contextmanager etc. in the with lowering transform.

removed br inside with lowering transform by default. One should manually insert a terminator after the lowering or implement a custom lowering as needed.

@Roger-luo Roger-luo added the area: python lowering Area: Python lowering related issues. label Apr 4, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 4, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
9243 8125 88% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
src/kirin/lowering/python/lowering.py 91% 🟢
src/kirin/lowering/python/traits.py 82% 🟢
TOTAL 87% 🟢

updated for commit: 93ed76c by action🐍

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 4, 2025

PR Preview Action v1.6.0
Preview removed because the pull request was closed.
2025-04-04 03:09 UTC

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@Roger-luo Roger-luo merged commit f338e17 into main Apr 4, 2025
12 checks passed
@Roger-luo Roger-luo deleted the roger/with-binding branch April 4, 2025 03:08
@Roger-luo Roger-luo added the category: enhancement Category: this is an enhancement of an existing feature. label Apr 4, 2025
Roger-luo added a commit that referenced this pull request Apr 5, 2025
this PR supports binding of `with <stmt>` etc. by supporting
`@contextmanager` etc. in the `with` lowering transform.

removed `br` inside with lowering transform by default. One should
manually insert a terminator after the lowering or implement a custom
lowering as needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: python lowering Area: Python lowering related issues. category: enhancement Category: this is an enhancement of an existing feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant