mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-28 18:43:01 +00:00
feat: parse unsafe record fields
This commit is contained in:
parent
d3aeddfb77
commit
452e2ca031
9 changed files with 39 additions and 9 deletions
|
|
@ -1337,6 +1337,8 @@ impl RecordField {
|
|||
pub fn colon_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![:]) }
|
||||
#[inline]
|
||||
pub fn eq_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![=]) }
|
||||
#[inline]
|
||||
pub fn unsafe_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![unsafe]) }
|
||||
}
|
||||
pub struct RecordFieldList {
|
||||
pub(crate) syntax: SyntaxNode,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue