From 2df7a1af17f4b851b452f2189dab78294a83cd60 Mon Sep 17 00:00:00 2001 From: Chayim Refael Friedman Date: Fri, 25 Feb 2022 00:02:06 +0000 Subject: [PATCH] Generate AST code after rust-analyzer/ungrammar#46 --- crates/syntax/src/ast/generated/nodes.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/syntax/src/ast/generated/nodes.rs b/crates/syntax/src/ast/generated/nodes.rs index 6c4729ef365..5c1bd8084ec 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 { support::token(&self.syntax, T![unsafe]) } pub fn abi(&self) -> Option { support::child(&self.syntax) } pub fn extern_item_list(&self) -> Option { support::child(&self.syntax) } }