MCPcopy
hub / github.com/tinylib/msgp / fieldName

Function fieldName

parse/getast.go:491–500  ·  view source on GitHub ↗
(f *ast.Field)

Source from the content-addressed store, hash-verified

489}
490
491func 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
502func (fs *FileSet) parseFieldList(fl *ast.FieldList) []gen.StructField {
503 if fl == nil || fl.NumFields() == 0 {

Callers 1

parseFieldListMethod · 0.85

Calls 1

stringifyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…