mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-04 05:48:11 +08:00
Point the construction docs at the registry that exists
This commit is contained in:
@@ -315,7 +315,7 @@ pub enum DocumentNodeImplementation {
|
|||||||
Network(NodeNetwork),
|
Network(NodeNetwork),
|
||||||
/// This describes a (document) node implemented as a proto node.
|
/// 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
|
#[serde(alias = "Unresolved")] // TODO: Eventually remove this alias document upgrade code
|
||||||
ProtoNode(ProtoNodeIdentifier),
|
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.
|
/// 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.
|
||||||
|
|||||||
@@ -70,11 +70,12 @@ impl core::fmt::Display for ProtoNetwork {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
|
#[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 {
|
pub enum ConstructionArgs {
|
||||||
/// A value of a type that is known, allowing serialization (serde::Deserialize is not object safe)
|
/// A value of a type that is known, allowing serialization (serde::Deserialize is not object safe)
|
||||||
Value(MemoHash<value::TaggedValue>),
|
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.
|
/// The bool indicates whether to treat the node as lambda node.
|
||||||
// TODO: use a struct for clearer naming.
|
// TODO: use a struct for clearer naming.
|
||||||
Nodes(Vec<NodeId>),
|
Nodes(Vec<NodeId>),
|
||||||
|
|||||||
Reference in New Issue
Block a user