Divide the parsing stage into parsing and processing
gabbhack opened this issue · 0 comments
gabbhack commented
Problem
Now a lot of modifying operations occur at the parsing stage. It's not logical.
Merging parent fields into current object:
deser/src/deser/macroutils/parsing/struct.nim
Lines 138 to 151 in b231af7
Merging other cases to the first case:
deser/src/deser/macroutils/parsing/field.nim
Line 120 in b231af7
The operation of "flattening" the fields occurs at the stage of initialization of the structure.
deser/src/deser/macroutils/types.nim
Line 175 in b231af7
Possible solution
Divide the parsing stage into two steps
References
No response
Code example
No response
Additional information
No response