Skip to content

feat(blocks): extract nested blocks and lambdas from functions#27

Merged
lexasub merged 1 commit intomainfrom
feat/blocks-analysis
Mar 11, 2026
Merged

feat(blocks): extract nested blocks and lambdas from functions#27
lexasub merged 1 commit intomainfrom
feat/blocks-analysis

Conversation

@lexasub
Copy link
Owner

@lexasub lexasub commented Mar 10, 2026

Description

Extract nested blocks and lambdas from functions.

Type of Change

  • Add ASTBlock model with block_type (if/for/while/try/lambda/with/match/loop)
  • Implement BlockExtractor using Tree-sitter queries for Python and Rust
  • Add CLI commands: blocks, lambdas
  • Support captured variables for lambdas/closures
  • Add nesting depth tracking
  • Add test examples in test_blocks/

Checklist

  • My code follows the code style of this project
  • I have added tests that prove my fix/feature works
  • All new and existing tests passed (pytest tests/ -v)
  • I have updated the documentation accordingly
  • My changes generate no new warnings

- Add ASTBlock model with block_type (if/for/while/try/lambda/with/match/loop)
- Implement BlockExtractor using Tree-sitter queries for Python and Rust
- Add CLI commands: blocks, lambdas
- Support captured variables for lambdas/closures
- Add nesting depth tracking
- Add test examples in test_blocks/
@github-project-automation github-project-automation bot moved this to Backlog in raged kanban Mar 10, 2026
@lexasub lexasub moved this from Backlog to In progress in raged kanban Mar 11, 2026
@lexasub lexasub marked this pull request as ready for review March 11, 2026 11:54
@lexasub lexasub merged commit 9a77f81 into main Mar 11, 2026
1 check failed
@github-project-automation github-project-automation bot moved this from In progress to Done in raged kanban Mar 11, 2026
@lexasub lexasub deleted the feat/blocks-analysis branch March 11, 2026 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant