This commit is contained in:
2026-05-18 13:58:59 +02:00
parent de1784f914
commit 5648c1da61
2 changed files with 25 additions and 2 deletions
+8 -1
View File
@@ -17,6 +17,9 @@ pub struct Identifier(pub String);
#[derive(Debug, Clone, Serialize, Default)]
pub struct ParamList(pub Vec<VarDecl>);
#[derive(Debug, Clone, Serialize)]
pub struct TypeExpr(pub TypeExprKind, pub Vec<TypePostfix>);
#[derive(Debug, Clone, Serialize)]
pub enum TypePostfix {
Ref,
@@ -34,7 +37,11 @@ pub enum TypeExprKind {
}
#[derive(Debug, Clone, Serialize)]
pub struct TypeExpr(pub TypeExprKind, pub Vec<TypePostfix>);
pub struct Spanned<T> {
pub line: usize,
pub column: usize,
pub item: T,
}
impl TypeExpr {
pub fn no_px(kind: TypeExprKind) -> Self {