Home | History | Annotate | Download | only in cgo

Lines Matching full:fld

1546 // Add padding of given size to fld.
1547 func (c *typeConv) pad(fld []*ast.Field, sizes []int64, size int64) ([]*ast.Field, []int64) {
1548 n := len(fld)
1549 fld = fld[0 : n+1]
1550 fld[n] = &ast.Field{Names: []*ast.Ident{c.Ident("_")}, Type: c.Opaque(size)}
1553 return fld, sizes
1563 fld := make([]*ast.Field, 0, 2*len(dt.Field)+1) // enough for padding around every field
1600 fld, sizes = c.pad(fld, sizes, f.ByteOffset-off)
1650 n := len(fld)
1651 fld = fld[0 : n+1]
1657 fld[n] = &ast.Field{Names: []*ast.Ident{c.Ident(ident[name])}, Type: tgo}
1670 fld, sizes = c.pad(fld, sizes, dt.ByteSize-off)
1682 fld = fld[0 : n-1]
1693 godefsFields(fld)
1695 expr = &ast.StructType{Fields: &ast.FieldList{List: fld}}
1714 func godefsFields(fld []*ast.Field) {
1715 prefix := fieldPrefix(fld)
1717 for _, f := range fld {
1738 func fieldPrefix(fld []*ast.Field) string {
1740 for _, f := range fld {