mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Implement offset_of in hir-def and hir-ty
This commit is contained in:
parent
9b8eb807a3
commit
15048304e3
17 changed files with 120 additions and 193 deletions
|
@ -1014,6 +1014,9 @@ impl OffsetOfExpr {
|
|||
support::token(&self.syntax, T![offset_of])
|
||||
}
|
||||
pub fn l_paren_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T!['(']) }
|
||||
pub fn ty(&self) -> Option<Type> { support::child(&self.syntax) }
|
||||
pub fn comma_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![,]) }
|
||||
pub fn fields(&self) -> AstChildren<NameRef> { support::children(&self.syntax) }
|
||||
pub fn r_paren_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![')']) }
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue