refactor(natu): rename xatu

This commit was merged in pull request #97.
This commit is contained in:
2026-09-26 20:12:57 -04:00
parent 27d9194ac3
commit 0c1a1c1ffa
26 changed files with 82 additions and 81 deletions

View File

@@ -0,0 +1,24 @@
use crate::{ast, rules::NodeRule};
pub struct ManualInherit;
impl NodeRule for ManualInherit {
type Node = ast::Binding;
const ID: &'static str = "manual_inherit";
fn select(data: &ast::NodeData) -> Option<&Self::Node> {
let ast::NodeData::Binding(binding) = data;
Some(binding)
}
fn check(node: &Self::Node) -> Option<&'static str> {
match &node.value {
ast::Expr::Ident(value) if node.key == *value => {
Some("Use `inherit` for this assignment")
}
_ => None,
}
}
}