mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
feat:Record FnAbi
This commit is contained in:
parent
85c9a83262
commit
3a722bdf2e
21 changed files with 315 additions and 117 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue