Documentation ¶
Index ¶
- Constants
- func AddFuncs(fn *ir.Func)
- func CanInsertTrapOrLink(fn *ir.Func) (string, bool)
- func ForEachField(params []*types.Field, callback func(field *types.Field) bool)
- func GetFieldIndex(fields []*types.Field, i int) *types.Field
- func InsertTrapForFunc(fn *ir.Func, forGeneric bool) bool
- func NewBasicLit(pos src.XPos, t *types.Type, val constant.Value) ir.Node
- func NewBoolLit(pos src.XPos, b bool) ir.Node
- func NewFunc(fpos, npos src.XPos, sym *types.Sym, typ *types.Type) *ir.Func
- func NewInt64Lit(pos src.XPos, i int64) ir.Node
- func NewIntLit(pos src.XPos, i int) ir.Node
- func NewNameAt(pos src.XPos, sym *types.Sym, typ *types.Type) *ir.Name
- func NewNilExpr(pos src.XPos, t *types.Type) *ir.NilExpr
- func NewSignature(pkg *types.Pkg, recv *types.Field, tparams, params, results []*types.Field) *types.Type
- func NewStringLit(pos src.XPos, s string) ir.Node
- func Patch()
- func SetConvTypeWord(conv *ir.ConvExpr, t *types.Type)
- func SetConvTypeWordPtr(conv *ir.ConvExpr, t *types.Type)
Constants ¶
View Source
const XgoLinkSetTrap = "__xgo_link_set_trap"
View Source
const XgoLinkSetTrapVar = "__xgo_link_set_trap_var"
View Source
const XgoTrapForGenerated = "__xgo_trap_for_generated"
View Source
const XgoTrapVarForGenerated = "__xgo_trap_var_for_generated"
Variables ¶
This section is empty.
Functions ¶
func ForEachField ¶
func NewNilExpr ¶
go 1.20 does not require type
func NewSignature ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.