MCPcopy Create free account
hub / github.com/dagger/dagger / isMainObject

Method isMainObject

core/object.go:1022–1024  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1020}
1021
1022func (obj *ModuleObject) isMainObject() bool {
1023 return gqlObjectName(obj.TypeDef.OriginalName) == gqlObjectName(obj.Module.Self().OriginalName)
1024}
1025
1026func (obj *ModuleObject) installConstructor(ctx context.Context, dag *dagql.Server) error {
1027 objDef := obj.TypeDef

Callers 1

InstallMethod · 0.95

Calls 2

SelfMethod · 0.80
gqlObjectNameFunction · 0.70

Tested by

no test coverage detected