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

Method hasWorkspaceArgs

core/modfunc.go:946–953  ·  view source on GitHub ↗

hasWorkspaceArgs returns true if any of the function's arguments are of type Workspace.

()

Source from the content-addressed store, hash-verified

944
945// hasWorkspaceArgs returns true if any of the function's arguments are of type Workspace.
946func (fn *ModuleFunction) hasWorkspaceArgs() bool {
947 for _, argRes := range fn.metadata.Args {
948 if argRes.Self().IsWorkspace() {
949 return true
950 }
951 }
952 return false
953}
954
955func (fn *ModuleFunction) ReturnType() (ModType, error) {
956 return fn.returnType, nil

Callers 1

CallMethod · 0.95

Calls 2

IsWorkspaceMethod · 0.80
SelfMethod · 0.80

Tested by

no test coverage detected