Rename generic_record_edge_type to generic_record_source_type

This commit is contained in:
Dennis Kobert
2026-09-06 16:27:25 +00:00
parent 33f7257e47
commit 02f9cf3e6b
2 changed files with 3 additions and 3 deletions

View File

@@ -91,8 +91,8 @@ pub fn record_source_type<T: 'static>() -> Type {
Type::Fn(Box::new(concrete!(Context)), Box::new(record_type::<T>()))
}
/// 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))))))
}

View File

@@ -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>()),
});