tree.go ×7

Frontier kind: Code frontier

unlabeled · c_08288e030693

3 tests · 3144 LOC · 98 files · introduces 0 tests · 24 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
8 ranges24 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
682 ranges3144 lines · 98 files · Browse complete extent
All tests (intent)
3 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.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

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

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

go.temporal.io/server/chasm/tree.go 19 introduced LOC · 7 ranges

Open complete file

841 case *persistencespb.ChasmNodeMetadata_CollectionAttributes:
842 return n.serializeCollectionNode()
843 > case *persistencespb.ChasmNodeMetadata_PointerAttributes: tree.go
844 > return n.serializePointerNode()
845 default:
846 return softassert.UnexpectedInternalErr(n.logger, "unknown node type", nil)
1261
1262 // serializePointerNode doesn't serialize anything but named this way for consistency.
1263 > func (n *Node) serializePointerNode() error { tree.go
1264 > path, isPathValid := n.value.([]string)
1265 > if !isPathValid {
1266 return softassert.UnexpectedInternalErr(
1267 n.logger,
1270 }
1271
1272 > n.serializedNode.GetMetadata().GetPointerAttributes().NodePath = path tree.go
1273 > n.updateLastUpdateVersionedTransition()
1274 > n.setValueState(valueStateSynced)
1275 >
1276 > return nil
1277 }
1278
2384 for _, node := range n.andAllChildren() {
2385 if node.value == nil || !node.isComponent() {
2386 > continue tree.go
2387 }
2388
2433 // Update the field to be a regular pointer, reusing the existing serializedNode,
2434 // and update the serializedNode's value.
2435 > newInternal := newFieldInternalWithValue(fieldTypePointer, resolvedPath) tree.go
2436 > newInternal.node = internal.node
2437 > newInternal.node.setValue(resolvedPath)
2438 > internalV.Set(reflect.ValueOf(newInternal))
2439 }
2440 }
2441 }
2442 > return nil tree.go
2443 }
2444
2970 current := descendant.parent
2971 for current != nil {
2972 > if current == n { tree.go
2973 > return true
2974 > }
2975 current = current.parent
2976 }
go.temporal.io/server/api/persistence/v1/chasm.pb.go 5 introduced LOC · 1 range

Open complete file

176 }
177
178 > func (x *ChasmNodeMetadata) GetPointerAttributes() *ChasmPointerAttributes { chasm.pb.go
179 > if x != nil {
180 > if x, ok := x.Attributes.(*ChasmNodeMetadata_PointerAttributes); ok {
181 > return x.PointerAttributes
182 > }
183 }
184 return nil