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

Method HasFunction

cmd/dagger/module_inspect.go:602–608  ·  view source on GitHub ↗

HasFunction checks if an object has a function with the given name.

(fp functionProvider, name string)

Source from the content-addressed store, hash-verified

600
601// HasFunction checks if an object has a function with the given name.
602func (m *moduleDef) HasFunction(fp functionProvider, name string) bool {
603 if fp == nil {
604 return false
605 }
606 fn, _ := m.GetFunction(fp, name)
607 return fn != nil
608}
609
610// LoadTypeDef rebinds shallow TypeDef refs onto the canonical typedefs loaded
611// from currentTypeDefs(returnAllTypes: true).

Callers

nothing calls this directly

Calls 1

GetFunctionMethod · 0.95

Tested by

no test coverage detected