Commit 6ee5ab1
committed
No need to store collected members in
A previous commit revealed that `CompositeTypeContributor` is the sole
direct user of `MembersCollector`. It queries the latter's type element
collections (`Events`, `Methods`, and `Properties`) only to transfer
the elements somewhere else.
This means that `MembersCollector` doesn't really need its own collect-
ions; it could simply send collected type elements to wherever they need
to go. This is done via the new interface `IMembersCollectorSink`.
In principle, this also turns `CollectMembersToProxy` into a repeatable
operation: `checkedMethods` no longer needs to act double duty as a flag
to check whether the method was already called.MembersCollector
1 parent cecf7ce commit 6ee5ab1
File tree
4 files changed
+73
-57
lines changed- src/Castle.Core/DynamicProxy/Contributors
4 files changed
+73
-57
lines changedLines changed: 34 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 58 | + | |
72 | 59 | | |
73 | 60 | | |
74 | 61 | | |
| |||
149 | 136 | | |
150 | 137 | | |
151 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
152 | 169 | | |
153 | 170 | | |
Lines changed: 25 additions & 0 deletions
| 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 | + | |
Lines changed: 12 additions & 38 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 31 | | |
37 | 32 | | |
38 | 33 | | |
| |||
46 | 41 | | |
47 | 42 | | |
48 | 43 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 44 | + | |
60 | 45 | | |
61 | | - | |
62 | | - | |
| 46 | + | |
63 | 47 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | 48 | | |
73 | 49 | | |
74 | 50 | | |
75 | 51 | | |
76 | 52 | | |
77 | 53 | | |
78 | 54 | | |
79 | | - | |
80 | | - | |
81 | 55 | | |
82 | 56 | | |
83 | 57 | | |
| |||
130 | 104 | | |
131 | 105 | | |
132 | 106 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
140 | 114 | | |
141 | 115 | | |
142 | 116 | | |
| |||
161 | 135 | | |
162 | 136 | | |
163 | 137 | | |
164 | | - | |
165 | | - | |
| 138 | + | |
| 139 | + | |
166 | 140 | | |
167 | 141 | | |
168 | 142 | | |
| |||
175 | 149 | | |
176 | 150 | | |
177 | 151 | | |
178 | | - | |
| 152 | + | |
179 | 153 | | |
180 | 154 | | |
181 | 155 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
0 commit comments