Repository navigation
Commit 0c463cd
refactor(FileFormats): clean up xscgen-generated type names via --tnsf
Auto-generated type names were verbose due to PascalCase + parent-chain
concatenation (e.g. ProjectTypeRelatedProjectsRelatedProjectChildProject).
Adopt a mechanical naming convention via xscgen --tnsf:
A) Top-level <X>Type -> <X> (ProjectType -> Project)
B) Set container <X>SetType -> <X>Set (ProjectSetType -> ProjectSet)
C) Enum prefix Type<X> -> <X> (TypeIlluminaModel -> IlluminaModel)
special: Type454Model -> Model454 (digit prefix would be invalid)
D) Child <Parent>Type<rest> -> <Parent><rest> (mechanical infix strip)
Three names skipped to avoid collisions with existing distinct classes
(EntrySetType vs anonymous EntrySet root; TaxonSetType vs TaxonSet;
IdExtIdType vs sibling IdExtId).
The 267 substitutions are committed in
src/BioFSharp.FileFormats.INSDC/schemas/typename-substitutions.txt and
passed to xscgen via --tnsf from the regenerateInsdcTypes FAKE target.
Regeneration produces the same 280 files, just under cleaner names; the
EmblXrefType local XSD patch is still required (the PascalCase collision
it resolves happens during schema merge, before --tns runs).
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 86fdbb6 commit 0c463cd
414 files changed
Lines changed: 6128 additions & 5843 deletions
File tree
- build
- plans
- src/BioFSharp.FileFormats.INSDC
- Generated/BioFSharp.FileFormats.INSDC
- schemas
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
31 | 30 | | |
32 | | - | |
33 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
| 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 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments