diff --git a/node-graph/libraries/core-types/src/registry.rs b/node-graph/libraries/core-types/src/registry.rs index 23ba1835d6..f612bcd2c6 100644 --- a/node-graph/libraries/core-types/src/registry.rs +++ b/node-graph/libraries/core-types/src/registry.rs @@ -91,8 +91,8 @@ pub fn record_source_type() -> Type { Type::Fn(Box::new(concrete!(Context)), Box::new(record_type::())) } -/// The record edge type of a token row, generic over the element. -pub fn generic_record_edge_type(name: &'static str) -> Type { +/// The record source type of a token row, generic over the element. +pub fn generic_record_source_type(name: &'static str) -> Type { Type::Fn(Box::new(concrete!(Context)), Box::new(Type::Record(Box::new(Type::Generic(std::borrow::Cow::Borrowed(name)))))) } diff --git a/node-graph/node-macro/src/codegen/entries.rs b/node-graph/node-macro/src/codegen/entries.rs index 02c5e9f065..dfeb79e929 100644 --- a/node-graph/node-macro/src/codegen/entries.rs +++ b/node-graph/node-macro/src/codegen/entries.rs @@ -339,7 +339,7 @@ fn single_row_entries(parsed: &ParsedNodeFn, struct_name: &Ident, regular_fields } let input_types = slots.iter().map(|slot| match slot { - SlotKind::BaseGeneric(name) => quote!(gcore::registry::generic_record_edge_type(#name)), + SlotKind::BaseGeneric(name) => quote!(gcore::registry::generic_record_source_type(#name)), SlotKind::BaseConcrete(ty) | SlotKind::Value(ty) | SlotKind::Extracted(ty) | SlotKind::Ranked(ty) => quote!(gcore::registry::record_source_type::<#ty>()), });