Repository navigation
Commit 7054e4f
yasmoradi
fix(extraction): recover C# 14 extension block members
The vendored tree-sitter-c-sharp has no extension production, so an
extension block parses as a constructor_declaration named extension
whose body holds the members as local_function_statement nodes. Nothing
recurses into a constructor body, and has_error stays 0, so the members
were dropped with no signal at all.
Emit them against the enclosing type instead. A constructor carries its
own type name, so this shape is only a genuine constructor inside a type
literally called extension, which keeps its own test.
Fixes DeusData#2071
Signed-off-by: yasmoradi <msynk.dev@gmail.com>1 parent 59a05eb commit 7054e4f
2 files changed
Lines changed: 103 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5032 | 5032 | | |
5033 | 5033 | | |
5034 | 5034 | | |
| 5035 | + | |
| 5036 | + | |
| 5037 | + | |
| 5038 | + | |
| 5039 | + | |
| 5040 | + | |
| 5041 | + | |
| 5042 | + | |
| 5043 | + | |
| 5044 | + | |
| 5045 | + | |
| 5046 | + | |
| 5047 | + | |
| 5048 | + | |
| 5049 | + | |
| 5050 | + | |
| 5051 | + | |
| 5052 | + | |
| 5053 | + | |
| 5054 | + | |
| 5055 | + | |
| 5056 | + | |
| 5057 | + | |
| 5058 | + | |
| 5059 | + | |
| 5060 | + | |
| 5061 | + | |
| 5062 | + | |
| 5063 | + | |
| 5064 | + | |
| 5065 | + | |
| 5066 | + | |
| 5067 | + | |
| 5068 | + | |
| 5069 | + | |
| 5070 | + | |
| 5071 | + | |
| 5072 | + | |
| 5073 | + | |
| 5074 | + | |
| 5075 | + | |
| 5076 | + | |
| 5077 | + | |
| 5078 | + | |
| 5079 | + | |
| 5080 | + | |
| 5081 | + | |
| 5082 | + | |
| 5083 | + | |
| 5084 | + | |
| 5085 | + | |
| 5086 | + | |
| 5087 | + | |
| 5088 | + | |
| 5089 | + | |
5035 | 5090 | | |
5036 | 5091 | | |
5037 | 5092 | | |
| |||
5047 | 5102 | | |
5048 | 5103 | | |
5049 | 5104 | | |
| 5105 | + | |
| 5106 | + | |
| 5107 | + | |
| 5108 | + | |
| 5109 | + | |
| 5110 | + | |
| 5111 | + | |
| 5112 | + | |
| 5113 | + | |
5050 | 5114 | | |
5051 | 5115 | | |
5052 | 5116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
772 | 772 | | |
773 | 773 | | |
774 | 774 | | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
775 | 812 | | |
776 | 813 | | |
777 | 814 | | |
| |||
7580 | 7617 | | |
7581 | 7618 | | |
7582 | 7619 | | |
| 7620 | + | |
| 7621 | + | |
7583 | 7622 | | |
7584 | 7623 | | |
7585 | 7624 | | |
| |||
0 commit comments