mirror of https://github.com/astral-sh/ruff
148 lines
5.6 KiB
Plaintext
148 lines
5.6 KiB
Plaintext
---
|
|
source: parser/src/context.rs
|
|
expression: parse_ast
|
|
---
|
|
[
|
|
Located {
|
|
location: Location {
|
|
row: 1,
|
|
column: 0,
|
|
},
|
|
end_location: Some(
|
|
Location {
|
|
row: 1,
|
|
column: 15,
|
|
},
|
|
),
|
|
custom: (),
|
|
node: Assign(
|
|
StmtAssign {
|
|
targets: [
|
|
Located {
|
|
location: Location {
|
|
row: 1,
|
|
column: 0,
|
|
},
|
|
end_location: Some(
|
|
Location {
|
|
row: 1,
|
|
column: 3,
|
|
},
|
|
),
|
|
custom: (),
|
|
node: Attribute(
|
|
ExprAttribute {
|
|
value: Located {
|
|
location: Location {
|
|
row: 1,
|
|
column: 0,
|
|
},
|
|
end_location: Some(
|
|
Location {
|
|
row: 1,
|
|
column: 1,
|
|
},
|
|
),
|
|
custom: (),
|
|
node: Name(
|
|
ExprName {
|
|
id: "x",
|
|
ctx: Load,
|
|
},
|
|
),
|
|
},
|
|
attr: "y",
|
|
ctx: Store,
|
|
},
|
|
),
|
|
},
|
|
],
|
|
value: Located {
|
|
location: Location {
|
|
row: 1,
|
|
column: 6,
|
|
},
|
|
end_location: Some(
|
|
Location {
|
|
row: 1,
|
|
column: 15,
|
|
},
|
|
),
|
|
custom: (),
|
|
node: Tuple(
|
|
ExprTuple {
|
|
elts: [
|
|
Located {
|
|
location: Location {
|
|
row: 1,
|
|
column: 7,
|
|
},
|
|
end_location: Some(
|
|
Location {
|
|
row: 1,
|
|
column: 8,
|
|
},
|
|
),
|
|
custom: (),
|
|
node: Constant(
|
|
ExprConstant {
|
|
value: Int(
|
|
1,
|
|
),
|
|
kind: None,
|
|
},
|
|
),
|
|
},
|
|
Located {
|
|
location: Location {
|
|
row: 1,
|
|
column: 10,
|
|
},
|
|
end_location: Some(
|
|
Location {
|
|
row: 1,
|
|
column: 11,
|
|
},
|
|
),
|
|
custom: (),
|
|
node: Constant(
|
|
ExprConstant {
|
|
value: Int(
|
|
2,
|
|
),
|
|
kind: None,
|
|
},
|
|
),
|
|
},
|
|
Located {
|
|
location: Location {
|
|
row: 1,
|
|
column: 13,
|
|
},
|
|
end_location: Some(
|
|
Location {
|
|
row: 1,
|
|
column: 14,
|
|
},
|
|
),
|
|
custom: (),
|
|
node: Constant(
|
|
ExprConstant {
|
|
value: Int(
|
|
3,
|
|
),
|
|
kind: None,
|
|
},
|
|
),
|
|
},
|
|
],
|
|
ctx: Load,
|
|
},
|
|
),
|
|
},
|
|
type_comment: None,
|
|
},
|
|
),
|
|
},
|
|
]
|