use crate::vm::flowgraph::Color;
#[derive(Debug, Clone, Copy)]
pub enum NodeShape {
None,
Record,
Diamond,
}
#[derive(Debug, Clone)]
pub struct Node {
pub(super) location: usize,
pub(super) shape: NodeShape,
pub(super) label: Box<str>,
pub(super) color: Color,
}
impl Node {
pub(super) fn new(location: usize, shape: NodeShape, label: Box<str>, color: Color) -> Self {
Self {
location,
shape,
label,
color,
}
}
}