MCPcopy
hub / github.com/purpleidea/mgmt / StmtFunc

Struct StmtFunc

lang/ast/structs.go:6290–6298  ·  view source on GitHub ↗

StmtFunc represents a user defined function. It binds the specified name to the supplied function in the current scope and irrespective of the order of definition.

Source from the content-addressed store, hash-verified

6288// the supplied function in the current scope and irrespective of the order of
6289// definition.
6290type StmtFunc struct {
6291 interfaces.Textarea
6292
6293 data *interfaces.Data
6294
6295 Name string
6296 Func interfaces.Expr
6297 Type *types.Type
6298}
6299
6300// String returns a short representation of this statement.
6301func (obj *StmtFunc) String() string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected