field.go ×4

Frontier kind: Joint frontier

unlabeled · c_8a8fa1d12241

2 tests · 3224 LOC · 100 files · introduces 1 test · 19 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
8 ranges19 lines · 2 files
Tests
1 test

Contains — complete concept membership

All code (extent)
713 ranges3224 lines · 100 files · Browse complete extent
All tests (intent)
2 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

1 test introduced at this concept.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

2 files ranked by introduced lines: 19 introduced LOC across 8 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/chasm/field.go 10 introduced LOC · 4 ranges

Open complete file

111 }
112 nodeValue = f.Internal.node.value
113 > case fieldTypePointer: field.go
114 > if err := f.Internal.node.preparePointerValue(); err != nil {
115 // nolint:forbidigo // Panic is intended here for framework error handling.
116 panic(err)
117 }
118 //nolint:revive // value is guaranteed to be of type []string.
119 > path := f.Internal.value().([]string) field.go
120 > if referencedNode, found := f.Internal.node.root().findNode(path); found {
121 > var err error
122 > switch referencedNode.fieldType() {
123 > case fieldTypeComponent:
124 > err = referencedNode.prepareComponentValue(chasmContext)
125 case fieldTypeData:
126 err = referencedNode.prepareDataValue(chasmContext, reflect.TypeFor[T]())
128 err = serviceerror.NewInternalf("pointer field referenced an unhandled value: %v", referencedNode.fieldType())
129 }
130 > if err != nil { field.go
131 // nolint:forbidigo // Panic is intended here for framework error handling.
132 panic(err)
133 }
134 > nodeValue = referencedNode.value field.go
135 }
136 case fieldTypeDeferredPointer:
go.temporal.io/server/chasm/tree.go 9 introduced LOC · 4 ranges

Open complete file

661 }
662
663 > func (n *Node) preparePointerValue() error { tree.go
664 > metadata := n.serializedNode.Metadata
665 > pointerAttr := metadata.GetPointerAttributes()
666 > if pointerAttr == nil {
667 return softassert.UnexpectedInternalErr(
668 n.logger,
671 }
672
673 > if n.valueState == valueStateNeedDeserialize { tree.go
674 if err := n.deserialize(nil); err != nil {
675 return fmt.Errorf("failed to deserialize data: %w", err)
677 }
678
679 > return nil tree.go
680 }
681
716 }
717
718 > if n.serializedNode.GetMetadata().GetPointerAttributes() != nil { tree.go
719 > return fieldTypePointer
720 > }
721
722 if n.serializedNode.GetMetadata().GetCollectionAttributes() != nil {