(f *ast.Field)
| 489 | } |
| 490 | |
| 491 | func fieldName(f *ast.Field) string { |
| 492 | switch len(f.Names) { |
| 493 | case 0: |
| 494 | return stringify(f.Type) |
| 495 | case 1: |
| 496 | return f.Names[0].Name |
| 497 | default: |
| 498 | return f.Names[0].Name + " (and others)" |
| 499 | } |
| 500 | } |
| 501 | |
| 502 | func (fs *FileSet) parseFieldList(fl *ast.FieldList) []gen.StructField { |
| 503 | if fl == nil || fl.NumFields() == 0 { |
no test coverage detected
searching dependent graphs…