WIP: Refactor TypeSource

This commit is contained in:
Adam
2025-08-29 19:43:41 -07:00
parent 08b25f689e
commit e35e9886b1
13 changed files with 429 additions and 390 deletions

View File

@@ -209,6 +209,14 @@ pub enum DocumentNodeMetadata {
DocumentNodePath,
}
impl DocumentNodeMetadata {
pub fn ty(&self) -> Type {
match self {
DocumentNodeMetadata::DocumentNodePath => concrete!(Vec<NodeId>),
}
}
}
impl NodeInput {
pub const fn node(node_id: NodeId, output_index: usize) -> Self {
Self::Node { node_id, output_index }