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

Struct StmtInclude

lang/ast/structs.go:6716–6729  ·  view source on GitHub ↗

StmtInclude causes a user defined class to get used. It's effectively the way to call a class except that it produces output instead of a value. Most of the interesting logic for classes happens here or in StmtProg.

Source from the content-addressed store, hash-verified

6714// to call a class except that it produces output instead of a value. Most of
6715// the interesting logic for classes happens here or in StmtProg.
6716type StmtInclude struct {
6717 interfaces.Textarea
6718
6719 data *interfaces.Data
6720 scope *interfaces.Scope
6721
6722 class *StmtClass // copy of class that we're using
6723 orig *StmtInclude // original pointer to this
6724
6725 Name string
6726 Args []interfaces.Expr
6727 argsEnvKeys []*ExprIterated
6728 Alias string
6729}
6730
6731// String returns a short representation of this statement.
6732func (obj *StmtInclude) String() string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected