mirror of https://github.com/astral-sh/ruff
134 lines
4.3 KiB
Plaintext
134 lines
4.3 KiB
Plaintext
---
|
|
source: compiler/parser/src/context.rs
|
|
expression: parse_ast
|
|
---
|
|
[
|
|
Located {
|
|
start: Location {
|
|
row: 1,
|
|
column: 1,
|
|
},
|
|
end: Location {
|
|
row: 1,
|
|
column: 17,
|
|
},
|
|
custom: (),
|
|
node: Assign {
|
|
targets: [
|
|
Located {
|
|
start: Location {
|
|
row: 1,
|
|
column: 2,
|
|
},
|
|
end: Location {
|
|
row: 1,
|
|
column: 5,
|
|
},
|
|
custom: (),
|
|
node: Subscript {
|
|
value: Located {
|
|
start: Location {
|
|
row: 1,
|
|
column: 1,
|
|
},
|
|
end: Location {
|
|
row: 1,
|
|
column: 2,
|
|
},
|
|
custom: (),
|
|
node: Name {
|
|
id: "x",
|
|
ctx: Load,
|
|
},
|
|
},
|
|
slice: Located {
|
|
start: Location {
|
|
row: 1,
|
|
column: 3,
|
|
},
|
|
end: Location {
|
|
row: 1,
|
|
column: 4,
|
|
},
|
|
custom: (),
|
|
node: Name {
|
|
id: "y",
|
|
ctx: Load,
|
|
},
|
|
},
|
|
ctx: Store,
|
|
},
|
|
},
|
|
],
|
|
value: Located {
|
|
start: Location {
|
|
row: 1,
|
|
column: 9,
|
|
},
|
|
end: Location {
|
|
row: 1,
|
|
column: 16,
|
|
},
|
|
custom: (),
|
|
node: Tuple {
|
|
elts: [
|
|
Located {
|
|
start: Location {
|
|
row: 1,
|
|
column: 9,
|
|
},
|
|
end: Location {
|
|
row: 1,
|
|
column: 10,
|
|
},
|
|
custom: (),
|
|
node: Constant {
|
|
value: Int(
|
|
1,
|
|
),
|
|
kind: None,
|
|
},
|
|
},
|
|
Located {
|
|
start: Location {
|
|
row: 1,
|
|
column: 12,
|
|
},
|
|
end: Location {
|
|
row: 1,
|
|
column: 13,
|
|
},
|
|
custom: (),
|
|
node: Constant {
|
|
value: Int(
|
|
2,
|
|
),
|
|
kind: None,
|
|
},
|
|
},
|
|
Located {
|
|
start: Location {
|
|
row: 1,
|
|
column: 15,
|
|
},
|
|
end: Location {
|
|
row: 1,
|
|
column: 16,
|
|
},
|
|
custom: (),
|
|
node: Constant {
|
|
value: Int(
|
|
3,
|
|
),
|
|
kind: None,
|
|
},
|
|
},
|
|
],
|
|
ctx: Load,
|
|
},
|
|
},
|
|
type_comment: None,
|
|
},
|
|
},
|
|
]
|