(d *model.Descriptor)
| 185 | } |
| 186 | |
| 187 | func anyFieldOutput(d *model.Descriptor) bool { |
| 188 | for _, fd := range d.Fields { |
| 189 | |
| 190 | if fd.Meta.GetBool("LuaValueMapperString") { |
| 191 | return true |
| 192 | } |
| 193 | |
| 194 | if fd.Meta.GetBool("LuaStringMapperValue") { |
| 195 | return true |
| 196 | } |
| 197 | |
| 198 | } |
| 199 | |
| 200 | return false |
| 201 | } |
| 202 | |
| 203 | // 收集需要构建的索引的类型 |
| 204 | func genLuaEnumCode(g *Globals, stream *Stream, globalFile *model.FileDescriptor) bool { |