Commit 5260579
authored
Simplify typealias translator (#2126)
Motivation:
The typealias used to generte an enum per package name and nested enums
for each service within that namespace. In order for that to work, the
services had to be grouped by namespace. This is no longer the case,
each service is generated within a combined package-service enum.
It's simpler to just generate the services in the order they are
created.
Modifications:
- Remove the sorting
- Remove tests which test the unwanted behaviour
Result:
Less code1 parent 3cbc033 commit 5260579
File tree
2 files changed
+12
-384
lines changed- Sources/GRPCCodeGen/Internal/Translator
- Tests/GRPCCodeGenTests/Internal/Translator
2 files changed
+12
-384
lines changedLines changed: 12 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | 84 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
96 | 93 | | |
97 | 94 | | |
| 95 | + | |
98 | 96 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
103 | 100 | | |
104 | 101 | | |
105 | 102 | | |
| |||
0 commit comments