use crate::Loc;
use crate::Node;
impl Node {
pub fn inspect(&self, indent: usize) -> String {
self.inner_ref().inspect(indent)
}
pub fn expression(&self) -> &Loc {
self.inner_ref().expression()
}
pub fn str_type(&self) -> &'static str {
self.inner_ref().str_type()
}
pub fn print_with_locs(&self) {
self.inner_ref().print_with_locs()
}
}
#[cfg(test)]
mod tests {
#[cfg(feature = "link-with-external-c-structures")]
#[test]
fn test_size_c() {
use super::Node;
assert_eq!(std::mem::size_of::<Node>(), 192);
}
#[cfg(feature = "link-with-external-cpp-structures")]
#[test]
fn test_size_cpp() {
use super::Node;
assert_eq!(std::mem::size_of::<Node>(), 184);
}
}