Method parameter types in class diagrams #5

Closed
opened 2026-06-16 14:47:49 +00:00 by GKaszewski · 0 comments
Owner

What to build

Extract method/function parameter types and return types from source code and display them in class diagram boxes. Currently methods show as +method_name() without signatures. Should show +method_name(param: Type) -> ReturnType.

Applies to both Rust and Python extractors. For Rust: parse function_item parameters. For Python: parse typed_parameter in method definitions.

Acceptance criteria

  • Rust extractor captures method parameter types and return types
  • Python extractor captures method parameter types and return types
  • Mermaid renderer shows method signatures in class boxes
  • ASCII renderer shows method signatures
  • Tests for both languages verify parameter extraction
  • Existing tests still pass

Blocked by

None - can start immediately

## What to build Extract method/function parameter types and return types from source code and display them in class diagram boxes. Currently methods show as `+method_name()` without signatures. Should show `+method_name(param: Type) -> ReturnType`. Applies to both Rust and Python extractors. For Rust: parse `function_item` parameters. For Python: parse `typed_parameter` in method definitions. ## Acceptance criteria - [ ] Rust extractor captures method parameter types and return types - [ ] Python extractor captures method parameter types and return types - [ ] Mermaid renderer shows method signatures in class boxes - [ ] ASCII renderer shows method signatures - [ ] Tests for both languages verify parameter extraction - [ ] Existing tests still pass ## Blocked by None - can start immediately
GKaszewski added the P2 label 2026-06-17 06:46:15 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: GKaszewski/archlens#5