- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for recordAnonymousField (1.74 sec)
-
src/go/doc/reader.go
methods: make(methodSet), } r.types[name] = typ return typ } // recordAnonymousField registers fieldType as the type of an // anonymous field in the parent type. If the field is imported // (qualified name) or the parent is nil, the field is ignored. // The function returns the field name. func (r *reader) recordAnonymousField(parent *namedType, fieldType ast.Expr) (fname string) { fname, imp := baseTypeName(fieldType)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 27.5K bytes - Viewed (0) -
src/go/doc/exports.go
return } list := fields.List j := 0 for _, field := range list { keepField := false if n := len(field.Names); n == 0 { // anonymous field or embedded type or union element fname := r.recordAnonymousField(parent, field.Type) if fname != "" { if token.IsExported(fname) { keepField = true } else if ityp != nil && predeclaredTypes[fname] {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 01 18:18:07 UTC 2022 - 8.5K bytes - Viewed (0)