MCPcopy
hub / github.com/livebud/bud / loadActionResultVariable

Method loadActionResultVariable

framework/controller/loader.go:408–415  ·  view source on GitHub ↗

Load the variable name

(order int, result *parser.Result)

Source from the content-addressed store, hash-verified

406
407// Load the variable name
408func (l *loader) loadActionResultVariable(order int, result *parser.Result) string {
409 name := result.Name()
410 if name != "" {
411 return name + "Out"
412 }
413 // Handle outputs with no variable
414 return "out" + strconv.Itoa(order)
415}
416
417// Load the inner fields of the result type, if it's a struct
418func (l *loader) loadActionResultFields(result *parser.Result, def parser.Declaration) (fields []*ActionResultField) {

Callers 1

loadActionResultMethod · 0.95

Calls 1

NameMethod · 0.65

Tested by

no test coverage detected