mirror of https://github.com/astral-sh/ruff
82 lines
2.3 KiB
Plaintext
82 lines
2.3 KiB
Plaintext
---
|
|
source: parser/src/parser.rs
|
|
expression: parse_ast
|
|
---
|
|
Attributed {
|
|
range: 0..25,
|
|
custom: (),
|
|
node: Dict(
|
|
ExprDict {
|
|
keys: [
|
|
Some(
|
|
Attributed {
|
|
range: 1..4,
|
|
custom: (),
|
|
node: Constant(
|
|
ExprConstant {
|
|
value: Str(
|
|
"a",
|
|
),
|
|
kind: None,
|
|
},
|
|
),
|
|
},
|
|
),
|
|
None,
|
|
Some(
|
|
Attributed {
|
|
range: 16..19,
|
|
custom: (),
|
|
node: Constant(
|
|
ExprConstant {
|
|
value: Str(
|
|
"d",
|
|
),
|
|
kind: None,
|
|
},
|
|
),
|
|
},
|
|
),
|
|
],
|
|
values: [
|
|
Attributed {
|
|
range: 6..9,
|
|
custom: (),
|
|
node: Constant(
|
|
ExprConstant {
|
|
value: Str(
|
|
"b",
|
|
),
|
|
kind: None,
|
|
},
|
|
),
|
|
},
|
|
Attributed {
|
|
range: 13..14,
|
|
custom: (),
|
|
node: Name(
|
|
ExprName {
|
|
id: Identifier(
|
|
"c",
|
|
),
|
|
ctx: Load,
|
|
},
|
|
),
|
|
},
|
|
Attributed {
|
|
range: 21..24,
|
|
custom: (),
|
|
node: Constant(
|
|
ExprConstant {
|
|
value: Str(
|
|
"e",
|
|
),
|
|
kind: None,
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
),
|
|
}
|