mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-05 21:24:12 +00:00
Generate AST code after rust-analyzer/ungrammar#46
This commit is contained in:
parent
1f5f4ccfb1
commit
2df7a1af17
@ -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) }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user