MCPcopy Create free account
hub / github.com/cogentcore/core / selectedSyncNodes

Method selectedSyncNodes

core/treesync.go:113–120  ·  view source on GitHub ↗

selectedSyncNodes returns a slice of the currently selected sync source nodes in the entire tree

()

Source from the content-addressed store, hash-verified

111// selectedSyncNodes returns a slice of the currently selected
112// sync source nodes in the entire tree
113func (tr *Tree) selectedSyncNodes() []tree.Node {
114 var res []tree.Node
115 sl := tr.GetSelectedNodes()
116 for _, v := range sl {
117 res = append(res, v.AsCoreTree().SyncNode)
118 }
119 return res
120}
121
122// FindSyncNode returns the [Tree] node for the corresponding given
123// source [tree.Node] in [Tree.SyncNode] or nil if not found.

Callers 1

cutSyncMethod · 0.95

Calls 2

GetSelectedNodesMethod · 0.95
AsCoreTreeMethod · 0.65

Tested by

no test coverage detected