Stupid goto definition
This commit is contained in:
@@ -73,3 +73,11 @@ impl<R: TreeRoot> Name<R> {
|
||||
ident.leaf_text().unwrap()
|
||||
}
|
||||
}
|
||||
|
||||
impl<R: TreeRoot> NameRef<R> {
|
||||
pub fn text(&self) -> SmolStr {
|
||||
let ident = self.syntax().first_child()
|
||||
.unwrap();
|
||||
ident.leaf_text().unwrap()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user