MCPcopy Create free account
hub / github.com/GraphiteEditor/Graphite / new

Method new

node-graph/interpreted-executor/src/dynamic_executor.rs:51–63  ·  view source on GitHub ↗
(proto_network: ProtoNetwork)

Source from the content-addressed store, hash-verified

49
50impl DynamicExecutor {
51 pub async fn new(proto_network: ProtoNetwork) -> Result<Self, GraphErrors> {
52 let mut typing_context = TypingContext::new(&node_registry::NODE_REGISTRY);
53 typing_context.update(&proto_network)?;
54 let output = proto_network.output;
55 let tree = BorrowTree::new(proto_network, &typing_context).await?;
56
57 Ok(Self {
58 tree,
59 output,
60 typing_context,
61 orphaned_nodes: HashSet::new(),
62 })
63 }
64
65 /// Updates the existing [`BorrowTree`] to reflect the new [`ProtoNetwork`], reusing nodes where possible.
66 #[cfg_attr(debug_assertions, inline(never))]

Callers

nothing calls this directly

Calls 2

push_nodeMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected