Override(path) syntax

This commit is contained in:
2026-06-09 12:30:22 +02:00
parent 20762a01bd
commit 0347892056
4 changed files with 21 additions and 8 deletions
+4 -1
View File
@@ -91,10 +91,13 @@ pub struct ClassConstructor {
pub body: Block,
}
#[derive(Debug, Clone, Serialize)]
pub struct Override(pub Option<ExprPath>);
#[derive(Debug, Clone, Serialize)]
pub struct FunctionDecl {
pub visibility: Visibility,
pub is_override: bool,
pub is_override: Option<Override>,
pub name: Identifier,
pub generics: GenericsDecl,
pub params: ParamList,