Skip to content

Commit f6d43e9

Browse files
authored
CHASM: deserialize ChasmNode into tree node value (#7538)
## What changed? <!-- Describe what has changed in this PR --> CHASM: deserialize `ChasmNode` into tree node `value`. This is only first version with few TODOs to be resolved soon. ## Why? <!-- Tell your future self why have you made these changes --> CHASM worksream. ## How did you test it? <!-- How have you verified this change? Tested locally? Added a unit test? Checked in staging env? --> Added unit tests. ## Potential risks <!-- Assuming the worst case, what can be broken when deploying this change to production? --> No risks. ## Documentation <!-- Have you made sure this change doesn't falsify anything currently stated in `docs/`? If significant new behavior is added, have you described that in `docs/`? --> No. ## Is hotfix candidate? <!-- Is this PR a hotfix candidate or does it require a notification to be sent to the broader community? (Yes/No) --> No.
1 parent 28a13f6 commit f6d43e9

File tree

4 files changed

+420
-55
lines changed

4 files changed

+420
-55
lines changed

chasm/component.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@
2626

2727
package chasm
2828

29-
import "context"
29+
import (
30+
"context"
31+
"reflect"
32+
)
3033

3134
type Component interface {
3235
LifecycleState() LifecycleState
@@ -51,6 +54,8 @@ func (UnimplementedComponent) LifecycleState() LifecycleState {
5154

5255
func (UnimplementedComponent) mustEmbedUnimplementedComponent() {}
5356

57+
var UnimplementedComponentT = reflect.TypeFor[UnimplementedComponent]()
58+
5459
// Shall it be named ComponentLifecycleState?
5560
type LifecycleState int
5661

0 commit comments

Comments
 (0)