Пример #1
1
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
}
Пример #2
0
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
}
Пример #3
0
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
}