This commit is contained in:
Chayim Refael Friedman 2022-02-25 00:02:06 +00:00 committed by GitHub
parent 1f5f4ccfb1
commit 2df7a1af17

View File

@ -262,6 +262,7 @@ pub struct ExternBlock {
impl ast::HasAttrs for ExternBlock {} impl ast::HasAttrs for ExternBlock {}
impl ast::HasDocComments for ExternBlock {} impl ast::HasDocComments for ExternBlock {}
impl 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 abi(&self) -> Option<Abi> { support::child(&self.syntax) }
pub fn extern_item_list(&self) -> Option<ExternItemList> { support::child(&self.syntax) } pub fn extern_item_list(&self) -> Option<ExternItemList> { support::child(&self.syntax) }
} }