feat(xatu): add manual inherit lint

This commit was merged in pull request #86.
This commit is contained in:
2026-09-19 21:27:23 -04:00
parent 213cd84642
commit 4b7d3834ab
8 changed files with 77 additions and 111 deletions

View File

@@ -28,20 +28,13 @@ impl std::fmt::Display for SourceRange {
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum NodeData {
Apply(Apply),
LetIn(LetIn),
Inherit(Inherit),
Binding(Binding),
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Apply {
pub function: Expr,
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum Expr {
Ident(Ident),
Select(Box<Select>),
pub struct Binding {
pub key: Ident,
pub value: Ident,
}
#[derive(Debug, Clone, PartialEq, Eq)]
@@ -49,22 +42,6 @@ pub struct Ident {
pub name: String,
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Select {
pub receiver: Expr,
pub attrs: Vec<Ident>,
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct LetIn {
pub binding_count: usize,
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Inherit {
pub attr_count: usize,
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Token {
pub range: SourceRange,