use crate::prelude::*;
use std::fmt;
#[derive(Clone)]
pub struct ByFamilyAsSetStmt {
pub family_obj: Obj,
pub line_file: LineFile,
}
impl fmt::Display for ByFamilyAsSetStmt {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(
f,
"{} {} {} {}{} {}",
BY, FAMILY, AS, SET, COLON, self.family_obj
)
}
}
impl ByFamilyAsSetStmt {
pub fn new(family_obj: Obj, line_file: LineFile) -> Self {
ByFamilyAsSetStmt {
family_obj,
line_file,
}
}
}