do marshal for Bases and Base messages

This commit is contained in:
Jeff Carr 2025-01-10 19:59:01 -06:00
parent 2265143869
commit 47a7163ff3
2 changed files with 9 additions and 1 deletions

View File

@ -25,6 +25,14 @@ func (pb *Files) marshal(f *File) {
fmt.Fprintln(w, ")") fmt.Fprintln(w, ")")
fmt.Fprintln(w, "") fmt.Fprintln(w, "")
if f.Bases.DoMarshal {
marshalThing(w, f.Bases.Name)
}
if f.Base.DoMarshal {
marshalThing(w, f.Base.Name)
}
for _, msg := range f.MsgNames { for _, msg := range f.MsgNames {
if msg.DoMarshal { if msg.DoMarshal {
marshalThing(w, msg.Name) marshalThing(w, msg.Name)

View File

@ -51,7 +51,7 @@ func (pb *Files) makeNewSortfile(pf *File) error {
} }
func (pf *File) processMessage(msg *MsgName, wSort, wFind io.Writer) error { func (pf *File) processMessage(msg *MsgName, wSort, wFind io.Writer) error {
log.Printf("ADDING FIND AND SORT FOR MESSAGE %s WITH %+v\n", msg.Name, msg.Vars) log.Printf("Generating functions for %s\n", msg.Name)
for _, v := range msg.Vars { for _, v := range msg.Vars {
if !v.IsRepeated { if !v.IsRepeated {
log.Printf("\tSKIP %s %s\n", v.VarName, v.VarType) log.Printf("\tSKIP %s %s\n", v.VarName, v.VarType)