mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 21:05:08 +00:00
Generic "comment to node" association logic (#4642)
This commit is contained in:
parent
84a5584888
commit
0cd453bdf0
29 changed files with 1574 additions and 65 deletions
|
@ -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<'_> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue