Commit 4c8887d
committed
refactor(protobuf): single-pass enum emit, use Datatypes.STRING[0]
- Collapse two-pass loop into one: _write_nested_enum is called
immediately before the field declaration, removing the redundant
pre-iteration.
- Replace "string" literal with Datatypes.STRING[0] from datatypes module.
- Update expected.proto: enum definitions now appear inline before their
respective fields rather than grouped at the top of the message.
Co-Authored-By: Claude and aki1770-del <aki1770@gmail.com>1 parent 2b6ca8b commit 4c8887d
File tree
2 files changed
+4
-11
lines changed- src/vss_tools/exporters
- tests/vspec/test_protobuf_enum_allowed
2 files changed
+4
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
183 | 184 | | |
184 | 185 | | |
185 | 186 | | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | 187 | | |
195 | 188 | | |
196 | 189 | | |
197 | 190 | | |
198 | 191 | | |
199 | | - | |
200 | | - | |
| 192 | + | |
| 193 | + | |
201 | 194 | | |
202 | 195 | | |
203 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | | - | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments