func allStructs(pidl *idl.Idl) []*idl.Struct { s := make([]*idl.Struct, 0) s = append(s, pidl.Structs...) for _, i := range pidl.UniqueImports() { s = append(s, i.Structs...) } return s }
func allServices(pidl *idl.Idl) []*idl.Service { s := make([]*idl.Service, 0) s = append(s, pidl.Services...) for _, i := range pidl.UniqueImports() { s = append(s, i.Services...) } return s }
func allEnums(pidl *idl.Idl) []*idl.Enum { s := make([]*idl.Enum, 0) s = append(s, pidl.Enums...) for _, i := range pidl.UniqueImports() { s = append(s, i.Enums...) } return s }