mirror of https://github.com/astral-sh/ruff
94 lines
2.0 KiB
Plaintext
94 lines
2.0 KiB
Plaintext
---
|
|
source: compiler/parser/src/fstring.rs
|
|
expression: parse_ast
|
|
---
|
|
[
|
|
Located {
|
|
location: Location {
|
|
row: 0,
|
|
column: 0,
|
|
},
|
|
end_location: Some(
|
|
Location {
|
|
row: 0,
|
|
column: 0,
|
|
},
|
|
),
|
|
custom: (),
|
|
node: FormattedValue {
|
|
value: Located {
|
|
location: Location {
|
|
row: 1,
|
|
column: 2,
|
|
},
|
|
end_location: Some(
|
|
Location {
|
|
row: 1,
|
|
column: 3,
|
|
},
|
|
),
|
|
custom: (),
|
|
node: Name {
|
|
id: "a",
|
|
ctx: Load,
|
|
},
|
|
},
|
|
conversion: 0,
|
|
format_spec: None,
|
|
},
|
|
},
|
|
Located {
|
|
location: Location {
|
|
row: 0,
|
|
column: 0,
|
|
},
|
|
end_location: Some(
|
|
Location {
|
|
row: 0,
|
|
column: 0,
|
|
},
|
|
),
|
|
custom: (),
|
|
node: FormattedValue {
|
|
value: Located {
|
|
location: Location {
|
|
row: 1,
|
|
column: 3,
|
|
},
|
|
end_location: Some(
|
|
Location {
|
|
row: 1,
|
|
column: 4,
|
|
},
|
|
),
|
|
custom: (),
|
|
node: Name {
|
|
id: "b",
|
|
ctx: Load,
|
|
},
|
|
},
|
|
conversion: 0,
|
|
format_spec: None,
|
|
},
|
|
},
|
|
Located {
|
|
location: Location {
|
|
row: 0,
|
|
column: 0,
|
|
},
|
|
end_location: Some(
|
|
Location {
|
|
row: 0,
|
|
column: 0,
|
|
},
|
|
),
|
|
custom: (),
|
|
node: Constant {
|
|
value: Str(
|
|
"{foo}",
|
|
),
|
|
kind: None,
|
|
},
|
|
},
|
|
]
|