pub fn debug_assert_valid<N>(node: &N) where N: VisitWith<AssertValid>,
Assert in debug mode. This is noop in release build.