Unnamed repository; edit this file 'description' to name the repository.
Generate AST code after rust-analyzer/ungrammar#46
Chayim Refael Friedman 2022-02-25
parent 1f5f4cc · commit 2df7a1a
-rw-r--r--crates/syntax/src/ast/generated/nodes.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/syntax/src/ast/generated/nodes.rs b/crates/syntax/src/ast/generated/nodes.rs
index 6c4729ef36..5c1bd8084e 100644
--- a/crates/syntax/src/ast/generated/nodes.rs
+++ b/crates/syntax/src/ast/generated/nodes.rs
@@ -262,6 +262,7 @@ pub struct ExternBlock {
impl ast::HasAttrs for ExternBlock {}
impl ast::HasDocComments for ExternBlock {}
impl ExternBlock {
+ pub fn unsafe_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![unsafe]) }
pub fn abi(&self) -> Option<Abi> { support::child(&self.syntax) }
pub fn extern_item_list(&self) -> Option<ExternItemList> { support::child(&self.syntax) }
}