Generic "comment to node" association logic (#4642)

This commit is contained in:
Micha Reiser 2023-05-30 11:28:01 +02:00 committed by GitHub
parent 84a5584888
commit 0cd453bdf0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 1574 additions and 65 deletions

View file

@ -38,6 +38,10 @@ impl<'a> SourceCode<'a> {
text: String::from(&self.text[range]).into_boxed_str(),
}
}
pub fn as_str(&self) -> &'a str {
self.text
}
}
impl Debug for SourceCode<'_> {