mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-02 22:55:08 +00:00
Add Comments
data structure (#4641)
This commit is contained in:
parent
6146b75dd0
commit
84a5584888
5 changed files with 698 additions and 0 deletions
|
@ -0,0 +1,39 @@
|
|||
---
|
||||
source: crates/ruff_python_formatter/src/comments/debug.rs
|
||||
expression: formatted
|
||||
---
|
||||
{
|
||||
StmtContinue(
|
||||
StmtContinue {
|
||||
range: 0..0,
|
||||
},
|
||||
): {
|
||||
"leading": [
|
||||
SourceComment {
|
||||
text: "# leading comment",
|
||||
formatted: false,
|
||||
},
|
||||
],
|
||||
"dangling": [],
|
||||
"trailing": [
|
||||
SourceComment {
|
||||
text: "# trailing",
|
||||
formatted: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
StmtBreak(
|
||||
StmtBreak {
|
||||
range: 0..0,
|
||||
},
|
||||
): {
|
||||
"leading": [
|
||||
SourceComment {
|
||||
text: "# break leading",
|
||||
formatted: false,
|
||||
},
|
||||
],
|
||||
"dangling": [],
|
||||
"trailing": [],
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue