mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-30 15:58:12 +08:00
Rename the record_edge accessor to record_source
This commit is contained in:
@@ -197,7 +197,7 @@ impl DynamicExecutor {
|
|||||||
let edge = self
|
let edge = self
|
||||||
.tree
|
.tree
|
||||||
.get_by_path(node_path)
|
.get_by_path(node_path)
|
||||||
.and_then(SourceHandle::record_edge)
|
.and_then(SourceHandle::record_source)
|
||||||
.ok_or_else(|| IntrospectError::PathNotFound(node_path.to_vec()))?;
|
.ok_or_else(|| IntrospectError::PathNotFound(node_path.to_vec()))?;
|
||||||
let arena = self.arena.lock().unwrap_or_else(PoisonError::into_inner);
|
let arena = self.arena.lock().unwrap_or_else(PoisonError::into_inner);
|
||||||
let persistent = self.persistent.lock().unwrap_or_else(PoisonError::into_inner);
|
let persistent = self.persistent.lock().unwrap_or_else(PoisonError::into_inner);
|
||||||
|
|||||||
@@ -263,9 +263,9 @@ impl SourceHandle {
|
|||||||
self.downcast_erased(record_edge_type::<T>())
|
self.downcast_erased(record_edge_type::<T>())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The erased record edge, for callers that dispatch on the layout rather
|
/// The erased record source, for callers that dispatch on the layout rather
|
||||||
/// than a static element type. `None` for an edge erased to another node type.
|
/// than a static element type. `None` for a source erased to another node type.
|
||||||
pub fn record_edge(self) -> Option<SharedSource<ErasedRecordNode>> {
|
pub fn record_source(self) -> Option<SharedSource<ErasedRecordNode>> {
|
||||||
self.node.downcast::<SharedSource<ErasedRecordNode>>().ok().map(|edge| *edge)
|
self.node.downcast::<SharedSource<ErasedRecordNode>>().ok().map(|edge| *edge)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user