Add character literal parsing and validation
This commit is contained in:
@@ -123,6 +123,12 @@ impl<'a> Lifetime<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> Char<'a> {
|
||||
pub fn text(&self) -> &SmolStr {
|
||||
&self.syntax().leaf_text().unwrap()
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> Comment<'a> {
|
||||
pub fn text(&self) -> &SmolStr {
|
||||
self.syntax().leaf_text().unwrap()
|
||||
|
||||
Reference in New Issue
Block a user