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

Function sharedResultObjectTypeName

dagql/cache.go:1586–1600  ·  view source on GitHub ↗
(res *sharedResult, state sharedResultPayloadState)

Source from the content-addressed store, hash-verified

1584}
1585
1586func sharedResultObjectTypeName(res *sharedResult, state sharedResultPayloadState) string {
1587 if res == nil || !state.isObject {
1588 return ""
1589 }
1590 if frame := res.loadResultCall(); frame != nil && frame.Type != nil && frame.Type.NamedType != "" {
1591 return frame.Type.NamedType
1592 }
1593 if state.persistedEnvelope != nil && state.persistedEnvelope.TypeName != "" {
1594 return state.persistedEnvelope.TypeName
1595 }
1596 if state.self != nil && state.self.Type() != nil {
1597 return state.self.Type().Name()
1598 }
1599 return ""
1600}
1601
1602// resolverForSharedResultObject returns a resolver that can instantiate the
1603// cached object's concrete type, rebuilding a dependency-aware schema from

Callers 5

SelectMethod · 0.85
DebugEGraphSnapshotMethod · 0.85

Calls 3

loadResultCallMethod · 0.80
TypeMethod · 0.65
NameMethod · 0.65

Tested by

no test coverage detected