- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for asMethod (0.08 sec)
-
src/cmd/compile/internal/types/type.go
// End returns the offset of the first byte immediately after this field. func (f *Field) End() int64 { return f.Offset + f.Type.width } // IsMethod reports whether f represents a method rather than a struct field. func (f *Field) IsMethod() bool { return f.Type.kind == TFUNC && f.Type.Recv() != nil } // fields is a pointer to a slice of *Field.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:29:45 UTC 2024 - 49.5K bytes - Viewed (0) -
src/go/printer/nodes.go
// multiple lines. func (p *printer) selectorExpr(x *ast.SelectorExpr, depth int, isMethod bool) bool { p.expr1(x.X, token.HighestPrec, depth) p.print(token.PERIOD) if line := p.lineFor(x.Sel.Pos()); p.pos.IsValid() && p.pos.Line < line { p.print(indent, newline) p.setPos(x.Sel.Pos()) p.print(x.Sel) if !isMethod { p.print(unindent) } return true } p.setPos(x.Sel.Pos())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 17 18:53:17 UTC 2023 - 52.6K bytes - Viewed (0)