codama_nodes/generated/value_nodes/constant_value_node.rs
1use crate::{TypeNode, ValueNode};
2use codama_nodes_derive::node;
3
4#[node]
5pub struct ConstantValueNode {
6 // Children.
7 pub r#type: Box<TypeNode>,
8 pub value: Box<ValueNode>,
9}
10
11impl From<ConstantValueNode> for crate::Node {
12 fn from(val: ConstantValueNode) -> Self {
13 crate::Node::Value(val.into())
14 }
15}