MCPcopy Index your code
hub / github.com/dagger/dagger / GetDef

Method GetDef

cmd/dagger/shell_state.go:374–379  ·  view source on GitHub ↗

GetDef returns the introspection definition for the last function call

(modDef *moduleDef)

Source from the content-addressed store, hash-verified

372
373// GetDef returns the introspection definition for the last function call
374func (st *ShellState) GetDef(modDef *moduleDef) (*modFunction, error) {
375 if st == nil || st.IsEmpty() {
376 return modDef.MainObject.AsObject.Constructor, nil
377 }
378 return st.Function().GetDef(modDef)
379}
380
381// GetDef returns the introspection definition for this function call
382func (f FunctionCall) GetDef(modDef *moduleDef) (*modFunction, error) {

Callers 5

GetTypeDefMethod · 0.95
completionsMethod · 0.45
lookupFieldMethod · 0.45
lookupTypeMethod · 0.45
syncVarsToLLMMethod · 0.45

Calls 2

IsEmptyMethod · 0.95
FunctionMethod · 0.95

Tested by

no test coverage detected