feat:Record FnAbi

This commit is contained in:
Lukas Wirth 2024-01-17 18:23:14 +01:00
parent 85c9a83262
commit 3a722bdf2e
21 changed files with 315 additions and 117 deletions

View file

@ -53,6 +53,12 @@ fn text_of_first_token(node: &SyntaxNode) -> TokenText<'_> {
}
}
impl ast::Abi {
pub fn abi_string(&self) -> Option<ast::String> {
support::token(&self.syntax, SyntaxKind::STRING).and_then(ast::String::cast)
}
}
impl ast::HasModuleItem for ast::StmtList {}
impl ast::BlockExpr {