diff --git a/node-graph/libraries/core-types/src/record/input.rs b/node-graph/libraries/core-types/src/record/input.rs index fe10fc506f..11e150e8d1 100644 --- a/node-graph/libraries/core-types/src/record/input.rs +++ b/node-graph/libraries/core-types/src/record/input.rs @@ -171,13 +171,13 @@ where /// its wiring-proven layout, the pairing the kernel's unsafe record /// operations rely on. The kernel must only pair the layout with values this /// edge produced. -pub struct RecordEdgeInput<'a, 'e, N> { +pub struct RecordInput<'a, 'e, N> { node: &'a N, layout: &'a Layout, frames: &'a Frames<'e>, } -impl<'a, 'e, N> RecordEdgeInput<'a, 'e, N> { +impl<'a, 'e, N> RecordInput<'a, 'e, N> { pub fn new(node: &'a N, layout: &'a Layout, frames: &'a Frames<'e>) -> Self { Self { node, layout, frames } } diff --git a/node-graph/libraries/core-types/src/record/mod.rs b/node-graph/libraries/core-types/src/record/mod.rs index cc6496fa23..536b9af91f 100644 --- a/node-graph/libraries/core-types/src/record/mod.rs +++ b/node-graph/libraries/core-types/src/record/mod.rs @@ -23,7 +23,7 @@ mod testkit; pub use access::{Rec, RecordValue, apply_plan, borrow_element, erase_static, read_at, read_element, token_only, write_element, write_element_sized, write_field}; pub use frames::{FrameArena, FrameScope, Frames}; -pub use input::{DerivedLazyInput, DerivedRecordInput, ElementEdge, ElementLazyInput, LevelStatus, RecordEdgeInput, RecordExtract, RecordLazyInput, fill_frames, materialize_batch, materialize_level}; +pub use input::{DerivedLazyInput, DerivedRecordInput, ElementEdge, ElementLazyInput, LevelStatus, RecordExtract, RecordInput, RecordLazyInput, fill_frames, materialize_batch, materialize_level}; pub use layout::{ ElToken, ElementSpec, ElementWrite, ElementWritePick, ElementWritePickHashed, ElementWritePickPlain, FieldDesc, FieldOffset, FieldWrite, InputReads, Layout, LayoutMeta, RecordLayout, copy_plan, element_dims, element_parked, element_write, element_write_hashed, empty_layout, diff --git a/node-graph/node-macro/src/codegen.rs b/node-graph/node-macro/src/codegen.rs index 182b3ce7fb..288f8740d8 100644 --- a/node-graph/node-macro/src/codegen.rs +++ b/node-graph/node-macro/src/codegen.rs @@ -1132,7 +1132,7 @@ pub(crate) fn generate_node_impl(crate_ident: &CrateIdent, parsed: &ParsedNodeFn let out = lazy_read_out(field, output_type); quote!(#pat: #core_types::record::DerivedLazyInput<'_, #frames_lifetime, #out, #source_generic>) } - (LazyBinding::OpaqueRecord, _) => quote!(#pat: &#core_types::record::RecordEdgeInput<'_, #frames_lifetime, #source_generic>), + (LazyBinding::OpaqueRecord, _) => quote!(#pat: &#core_types::record::RecordInput<'_, #frames_lifetime, #source_generic>), (LazyBinding::Element, true) => { let out = lazy_read_out(field, output_type); quote!(#pat: &#core_types::record::ElementEdge<'_, #frames_lifetime, #out, #source_generic>) @@ -1484,7 +1484,7 @@ pub(crate) fn generate_node_impl(crate_ident: &CrateIdent, parsed: &ParsedNodeFn } } (LazyBinding::OpaqueRecord, _) => quote! { - let #name = #core_types::record::RecordEdgeInput::new(&self.#name, &self.__layout, &__lazy_frames); + let #name = #core_types::record::RecordInput::new(&self.#name, &self.__layout, &__lazy_frames); }, (LazyBinding::Generic, false) => quote! { let #name = #core_types::node::LazyInput::new(&self.#name, &__cell, #index, &__lazy_frames);