mirror of https://github.com/astral-sh/ruff
56 lines
1.4 KiB
Plaintext
56 lines
1.4 KiB
Plaintext
---
|
|
source: parser/src/parser.rs
|
|
expression: parse_ast
|
|
---
|
|
Subscript(
|
|
ExprSubscript {
|
|
range: 0..8,
|
|
value: Name(
|
|
ExprName {
|
|
range: 0..1,
|
|
id: "x",
|
|
ctx: Load,
|
|
},
|
|
),
|
|
slice: Slice(
|
|
ExprSlice {
|
|
range: 2..7,
|
|
lower: Some(
|
|
Constant(
|
|
ExprConstant {
|
|
range: 2..3,
|
|
value: Int(
|
|
1,
|
|
),
|
|
kind: None,
|
|
},
|
|
),
|
|
),
|
|
upper: Some(
|
|
Constant(
|
|
ExprConstant {
|
|
range: 4..5,
|
|
value: Int(
|
|
2,
|
|
),
|
|
kind: None,
|
|
},
|
|
),
|
|
),
|
|
step: Some(
|
|
Constant(
|
|
ExprConstant {
|
|
range: 6..7,
|
|
value: Int(
|
|
3,
|
|
),
|
|
kind: None,
|
|
},
|
|
),
|
|
),
|
|
},
|
|
),
|
|
ctx: Load,
|
|
},
|
|
)
|