mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
add impl works with lifetimes
This commit is contained in:
parent
ba02a55330
commit
15f15d92eb
6 changed files with 202 additions and 17 deletions
|
@ -67,6 +67,12 @@ impl<'a> Attr<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> Lifetime<'a> {
|
||||
pub fn text(&self) -> SmolStr {
|
||||
self.syntax().leaf_text().unwrap()
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> Name<'a> {
|
||||
pub fn text(&self) -> SmolStr {
|
||||
let ident = self.syntax().first_child()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue