Point the construction docs at the registry that exists

This commit is contained in:
Dennis Kobert
2026-09-06 17:08:03 +00:00
parent 00920823aa
commit f7360688f2
2 changed files with 4 additions and 3 deletions

View File

@@ -315,7 +315,7 @@ pub enum DocumentNodeImplementation {
Network(NodeNetwork),
/// This describes a (document) node implemented as a proto node.
///
/// A proto node identifier which can be found in `node_registry.rs`.
/// A proto node identifier, resolved against `NODE_REGISTRY` in `core-types/src/registry.rs`.
#[serde(alias = "Unresolved")] // TODO: Eventually remove this alias document upgrade code
ProtoNode(ProtoNodeIdentifier),
/// The Extract variant is a tag which tells the compilation process to do something special: it invokes language-level functionality built for use by the ExtractNode to enable metaprogramming.

View File

@@ -70,11 +70,12 @@ impl core::fmt::Display for ProtoNetwork {
}
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
/// Defines the arguments used to construct the boxed node struct. This is used to call the constructor function in the `node_registry.rs` file - which is hidden behind a wall of macros.
/// Defines the arguments used to construct the boxed node struct, passed to the
/// constructor registered in `NODE_REGISTRY` (`core-types/src/registry.rs`).
pub enum ConstructionArgs {
/// A value of a type that is known, allowing serialization (serde::Deserialize is not object safe)
Value(MemoHash<value::TaggedValue>),
/// A list of nodes used as inputs to the constructor function in `node_registry.rs`.
/// A list of nodes used as inputs to the registered constructor.
/// The bool indicates whether to treat the node as lambda node.
// TODO: use a struct for clearer naming.
Nodes(Vec<NodeId>),