Commit 56ea0ce
Fix NotImplementedError in SigTyProcNode for RBS proc types
Previously, using proc types in RBS files (e.g., ^() -> Integer) would
raise NotImplementedError when TypeProf tried to process them through
SigTyProcNode#covariant_vertex0.
This commit:
- Adds initialize method to SigTyProcNode to properly parse RBS::Types::Proc
- Implements covariant_vertex0 and contravariant_vertex0 methods
- Wraps RBS::Types::Function in RBS::MethodType for compatibility
- Adds comprehensive test scenarios for proc type handling
The implementation currently returns the base Proc type without detailed
function signature information, which can be enhanced in the future.
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>1 parent b24ef21 commit 56ea0ce
2 files changed
Lines changed: 99 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
658 | 658 | | |
659 | 659 | | |
660 | 660 | | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
661 | 680 | | |
662 | | - | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
663 | 684 | | |
664 | 685 | | |
665 | 686 | | |
666 | | - | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
667 | 690 | | |
668 | 691 | | |
669 | 692 | | |
670 | | - | |
| 693 | + | |
671 | 694 | | |
672 | 695 | | |
673 | 696 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
0 commit comments