Update tests

This commit is contained in:
Micha Reiser 2023-05-14 17:10:21 +02:00
parent c2e9921785
commit cd89c0efc3
No known key found for this signature in database
101 changed files with 1506 additions and 1506 deletions

View file

@ -5,37 +5,37 @@ expression: parse_ast
[ [
AnnAssign( AnnAssign(
StmtAnnAssign { StmtAnnAssign {
range: 0..10,
target: Name( target: Name(
ExprName { ExprName {
range: 0..1,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Store, ctx: Store,
range: 0..1,
}, },
), ),
annotation: Name( annotation: Name(
ExprName { ExprName {
range: 3..6,
id: Identifier( id: Identifier(
"int", "int",
), ),
ctx: Load, ctx: Load,
range: 3..6,
}, },
), ),
value: Some( value: Some(
Constant( Constant(
ExprConstant { ExprConstant {
range: 9..10,
value: Int( value: Int(
1, 1,
), ),
kind: None, kind: None,
range: 9..10,
}, },
), ),
), ),
simple: true, simple: true,
range: 0..10,
}, },
), ),
] ]

View file

@ -5,63 +5,63 @@ expression: parse_ast
[ [
Assign( Assign(
StmtAssign { StmtAssign {
range: 0..15,
targets: [ targets: [
Attribute( Attribute(
ExprAttribute { ExprAttribute {
range: 0..3,
value: Name( value: Name(
ExprName { ExprName {
range: 0..1,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Load, ctx: Load,
range: 0..1,
}, },
), ),
attr: Identifier( attr: Identifier(
"y", "y",
), ),
ctx: Store, ctx: Store,
range: 0..3,
}, },
), ),
], ],
value: Tuple( value: Tuple(
ExprTuple { ExprTuple {
range: 6..15,
elts: [ elts: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 7..8,
value: Int( value: Int(
1, 1,
), ),
kind: None, kind: None,
range: 7..8,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 10..11,
value: Int( value: Int(
2, 2,
), ),
kind: None, kind: None,
range: 10..11,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 13..14,
value: Int( value: Int(
3, 3,
), ),
kind: None, kind: None,
range: 13..14,
}, },
), ),
], ],
ctx: Load, ctx: Load,
range: 6..15,
}, },
), ),
type_comment: None, type_comment: None,
range: 0..15,
}, },
), ),
] ]

View file

@ -5,48 +5,49 @@ expression: parse_ast
[ [
For( For(
StmtFor { StmtFor {
range: 0..24,
target: Name( target: Name(
ExprName { ExprName {
range: 4..5,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Store, ctx: Store,
range: 4..5,
}, },
), ),
iter: Tuple( iter: Tuple(
ExprTuple { ExprTuple {
range: 9..18,
elts: [ elts: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 10..11,
value: Int( value: Int(
1, 1,
), ),
kind: None, kind: None,
range: 10..11,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 13..14,
value: Int( value: Int(
2, 2,
), ),
kind: None, kind: None,
range: 13..14,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 16..17,
value: Int( value: Int(
3, 3,
), ),
kind: None, kind: None,
range: 16..17,
}, },
), ),
], ],
ctx: Load, ctx: Load,
range: 9..18,
}, },
), ),
body: [ body: [
@ -58,7 +59,6 @@ expression: parse_ast
], ],
orelse: [], orelse: [],
type_comment: None, type_comment: None,
range: 0..24,
}, },
), ),
] ]

View file

@ -5,71 +5,71 @@ expression: parse_ast
[ [
Assign( Assign(
StmtAssign { StmtAssign {
range: 0..18,
targets: [ targets: [
List( List(
ExprList { ExprList {
range: 0..6,
elts: [ elts: [
Name( Name(
ExprName { ExprName {
range: 1..2,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Store, ctx: Store,
range: 1..2,
}, },
), ),
Name( Name(
ExprName { ExprName {
range: 4..5,
id: Identifier( id: Identifier(
"y", "y",
), ),
ctx: Store, ctx: Store,
range: 4..5,
}, },
), ),
], ],
ctx: Store, ctx: Store,
range: 0..6,
}, },
), ),
], ],
value: Tuple( value: Tuple(
ExprTuple { ExprTuple {
range: 9..18,
elts: [ elts: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 10..11,
value: Int( value: Int(
1, 1,
), ),
kind: None, kind: None,
range: 10..11,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 13..14,
value: Int( value: Int(
2, 2,
), ),
kind: None, kind: None,
range: 13..14,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 16..17,
value: Int( value: Int(
3, 3,
), ),
kind: None, kind: None,
range: 16..17,
}, },
), ),
], ],
ctx: Load, ctx: Load,
range: 9..18,
}, },
), ),
type_comment: None, type_comment: None,
range: 0..18,
}, },
), ),
] ]

View file

@ -5,72 +5,74 @@ expression: parse_ast
[ [
Assign( Assign(
StmtAssign { StmtAssign {
range: 0..26,
targets: [ targets: [
Name( Name(
ExprName { ExprName {
range: 0..1,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Store, ctx: Store,
range: 0..1,
}, },
), ),
], ],
value: ListComp( value: ListComp(
ExprListComp { ExprListComp {
range: 4..26,
elt: Name( elt: Name(
ExprName { ExprName {
range: 5..6,
id: Identifier( id: Identifier(
"y", "y",
), ),
ctx: Load, ctx: Load,
range: 5..6,
}, },
), ),
generators: [ generators: [
Comprehension { Comprehension {
target: Name( target: Name(
ExprName { ExprName {
range: 11..12,
id: Identifier( id: Identifier(
"y", "y",
), ),
ctx: Store, ctx: Store,
range: 11..12,
}, },
), ),
iter: Tuple( iter: Tuple(
ExprTuple { ExprTuple {
range: 16..25,
elts: [ elts: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 17..18,
value: Int( value: Int(
1, 1,
), ),
kind: None, kind: None,
range: 17..18,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 20..21,
value: Int( value: Int(
2, 2,
), ),
kind: None, kind: None,
range: 20..21,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 23..24,
value: Int( value: Int(
3, 3,
), ),
kind: None, kind: None,
range: 23..24,
}, },
), ),
], ],
ctx: Load, ctx: Load,
range: 16..25,
}, },
), ),
ifs: [], ifs: [],
@ -78,11 +80,9 @@ expression: parse_ast
range: (), range: (),
}, },
], ],
range: 4..26,
}, },
), ),
type_comment: None, type_comment: None,
range: 0..26,
}, },
), ),
] ]

View file

@ -5,54 +5,54 @@ expression: parse_ast
[ [
Assign( Assign(
StmtAssign { StmtAssign {
range: 0..13,
targets: [ targets: [
Name( Name(
ExprName { ExprName {
range: 0..1,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Store, ctx: Store,
range: 0..1,
}, },
), ),
], ],
value: Tuple( value: Tuple(
ExprTuple { ExprTuple {
range: 4..13,
elts: [ elts: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 5..6,
value: Int( value: Int(
1, 1,
), ),
kind: None, kind: None,
range: 5..6,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 8..9,
value: Int( value: Int(
2, 2,
), ),
kind: None, kind: None,
range: 8..9,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 11..12,
value: Int( value: Int(
3, 3,
), ),
kind: None, kind: None,
range: 11..12,
}, },
), ),
], ],
ctx: Load, ctx: Load,
range: 4..13,
}, },
), ),
type_comment: None, type_comment: None,
range: 0..13,
}, },
), ),
] ]

View file

@ -5,27 +5,28 @@ expression: parse_ast
[ [
If( If(
StmtIf { StmtIf {
range: 0..14,
test: NamedExpr( test: NamedExpr(
ExprNamedExpr { ExprNamedExpr {
range: 3..8,
target: Name( target: Name(
ExprName { ExprName {
range: 3..4,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Store, ctx: Store,
range: 3..4,
}, },
), ),
value: Constant( value: Constant(
ExprConstant { ExprConstant {
range: 7..8,
value: Int( value: Int(
1, 1,
), ),
kind: None, kind: None,
range: 7..8,
}, },
), ),
range: 3..8,
}, },
), ),
body: [ body: [
@ -36,7 +37,6 @@ expression: parse_ast
), ),
], ],
orelse: [], orelse: [],
range: 0..14,
}, },
), ),
] ]

View file

@ -5,72 +5,74 @@ expression: parse_ast
[ [
Assign( Assign(
StmtAssign { StmtAssign {
range: 0..26,
targets: [ targets: [
Name( Name(
ExprName { ExprName {
range: 0..1,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Store, ctx: Store,
range: 0..1,
}, },
), ),
], ],
value: SetComp( value: SetComp(
ExprSetComp { ExprSetComp {
range: 4..26,
elt: Name( elt: Name(
ExprName { ExprName {
range: 5..6,
id: Identifier( id: Identifier(
"y", "y",
), ),
ctx: Load, ctx: Load,
range: 5..6,
}, },
), ),
generators: [ generators: [
Comprehension { Comprehension {
target: Name( target: Name(
ExprName { ExprName {
range: 11..12,
id: Identifier( id: Identifier(
"y", "y",
), ),
ctx: Store, ctx: Store,
range: 11..12,
}, },
), ),
iter: Tuple( iter: Tuple(
ExprTuple { ExprTuple {
range: 16..25,
elts: [ elts: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 17..18,
value: Int( value: Int(
1, 1,
), ),
kind: None, kind: None,
range: 17..18,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 20..21,
value: Int( value: Int(
2, 2,
), ),
kind: None, kind: None,
range: 20..21,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 23..24,
value: Int( value: Int(
3, 3,
), ),
kind: None, kind: None,
range: 23..24,
}, },
), ),
], ],
ctx: Load, ctx: Load,
range: 16..25,
}, },
), ),
ifs: [], ifs: [],
@ -78,11 +80,9 @@ expression: parse_ast
range: (), range: (),
}, },
], ],
range: 4..26,
}, },
), ),
type_comment: None, type_comment: None,
range: 0..26,
}, },
), ),
] ]

View file

@ -5,77 +5,77 @@ expression: parse_ast
[ [
Assign( Assign(
StmtAssign { StmtAssign {
range: 0..19,
targets: [ targets: [
Tuple( Tuple(
ExprTuple { ExprTuple {
range: 0..7,
elts: [ elts: [
Name( Name(
ExprName { ExprName {
range: 1..2,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Store, ctx: Store,
range: 1..2,
}, },
), ),
Starred( Starred(
ExprStarred { ExprStarred {
range: 4..6,
value: Name( value: Name(
ExprName { ExprName {
range: 5..6,
id: Identifier( id: Identifier(
"y", "y",
), ),
ctx: Store, ctx: Store,
range: 5..6,
}, },
), ),
ctx: Store, ctx: Store,
range: 4..6,
}, },
), ),
], ],
ctx: Store, ctx: Store,
range: 0..7,
}, },
), ),
], ],
value: Tuple( value: Tuple(
ExprTuple { ExprTuple {
range: 10..19,
elts: [ elts: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 11..12,
value: Int( value: Int(
1, 1,
), ),
kind: None, kind: None,
range: 11..12,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 14..15,
value: Int( value: Int(
2, 2,
), ),
kind: None, kind: None,
range: 14..15,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 17..18,
value: Int( value: Int(
3, 3,
), ),
kind: None, kind: None,
range: 17..18,
}, },
), ),
], ],
ctx: Load, ctx: Load,
range: 10..19,
}, },
), ),
type_comment: None, type_comment: None,
range: 0..19,
}, },
), ),
] ]

View file

@ -5,69 +5,69 @@ expression: parse_ast
[ [
Assign( Assign(
StmtAssign { StmtAssign {
range: 0..16,
targets: [ targets: [
Subscript( Subscript(
ExprSubscript { ExprSubscript {
range: 0..4,
value: Name( value: Name(
ExprName { ExprName {
range: 0..1,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Load, ctx: Load,
range: 0..1,
}, },
), ),
slice: Name( slice: Name(
ExprName { ExprName {
range: 2..3,
id: Identifier( id: Identifier(
"y", "y",
), ),
ctx: Load, ctx: Load,
range: 2..3,
}, },
), ),
ctx: Store, ctx: Store,
range: 0..4,
}, },
), ),
], ],
value: Tuple( value: Tuple(
ExprTuple { ExprTuple {
range: 7..16,
elts: [ elts: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 8..9,
value: Int( value: Int(
1, 1,
), ),
kind: None, kind: None,
range: 8..9,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 11..12,
value: Int( value: Int(
2, 2,
), ),
kind: None, kind: None,
range: 11..12,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 14..15,
value: Int( value: Int(
3, 3,
), ),
kind: None, kind: None,
range: 14..15,
}, },
), ),
], ],
ctx: Load, ctx: Load,
range: 7..16,
}, },
), ),
type_comment: None, type_comment: None,
range: 0..16,
}, },
), ),
] ]

View file

@ -5,71 +5,71 @@ expression: parse_ast
[ [
Assign( Assign(
StmtAssign { StmtAssign {
range: 0..18,
targets: [ targets: [
Tuple( Tuple(
ExprTuple { ExprTuple {
range: 0..6,
elts: [ elts: [
Name( Name(
ExprName { ExprName {
range: 1..2,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Store, ctx: Store,
range: 1..2,
}, },
), ),
Name( Name(
ExprName { ExprName {
range: 4..5,
id: Identifier( id: Identifier(
"y", "y",
), ),
ctx: Store, ctx: Store,
range: 4..5,
}, },
), ),
], ],
ctx: Store, ctx: Store,
range: 0..6,
}, },
), ),
], ],
value: Tuple( value: Tuple(
ExprTuple { ExprTuple {
range: 9..18,
elts: [ elts: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 10..11,
value: Int( value: Int(
1, 1,
), ),
kind: None, kind: None,
range: 10..11,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 13..14,
value: Int( value: Int(
2, 2,
), ),
kind: None, kind: None,
range: 13..14,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 16..17,
value: Int( value: Int(
3, 3,
), ),
kind: None, kind: None,
range: 16..17,
}, },
), ),
], ],
ctx: Load, ctx: Load,
range: 9..18,
}, },
), ),
type_comment: None, type_comment: None,
range: 0..18,
}, },
), ),
] ]

View file

@ -5,25 +5,26 @@ expression: parse_ast
[ [
With( With(
StmtWith { StmtWith {
range: 0..17,
items: [ items: [
Withitem { Withitem {
context_expr: Constant( context_expr: Constant(
ExprConstant { ExprConstant {
range: 5..6,
value: Int( value: Int(
1, 1,
), ),
kind: None, kind: None,
range: 5..6,
}, },
), ),
optional_vars: Some( optional_vars: Some(
Name( Name(
ExprName { ExprName {
range: 10..11,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Store, ctx: Store,
range: 10..11,
}, },
), ),
), ),
@ -38,7 +39,6 @@ expression: parse_ast
), ),
], ],
type_comment: None, type_comment: None,
range: 0..17,
}, },
), ),
] ]

View file

@ -5,61 +5,61 @@ expression: parse_ast
[ [
AugAssign( AugAssign(
StmtAugAssign { StmtAugAssign {
range: 0..16,
target: Attribute( target: Attribute(
ExprAttribute { ExprAttribute {
range: 0..3,
value: Name( value: Name(
ExprName { ExprName {
range: 0..1,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Load, ctx: Load,
range: 0..1,
}, },
), ),
attr: Identifier( attr: Identifier(
"y", "y",
), ),
ctx: Store, ctx: Store,
range: 0..3,
}, },
), ),
op: Add, op: Add,
value: Tuple( value: Tuple(
ExprTuple { ExprTuple {
range: 7..16,
elts: [ elts: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 8..9,
value: Int( value: Int(
1, 1,
), ),
kind: None, kind: None,
range: 8..9,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 11..12,
value: Int( value: Int(
2, 2,
), ),
kind: None, kind: None,
range: 11..12,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 14..15,
value: Int( value: Int(
3, 3,
), ),
kind: None, kind: None,
range: 14..15,
}, },
), ),
], ],
ctx: Load, ctx: Load,
range: 7..16,
}, },
), ),
range: 0..16,
}, },
), ),
] ]

View file

@ -5,26 +5,26 @@ expression: parse_ast
[ [
AugAssign( AugAssign(
StmtAugAssign { StmtAugAssign {
range: 0..6,
target: Name( target: Name(
ExprName { ExprName {
range: 0..1,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Store, ctx: Store,
range: 0..1,
}, },
), ),
op: Add, op: Add,
value: Constant( value: Constant(
ExprConstant { ExprConstant {
range: 5..6,
value: Int( value: Int(
1, 1,
), ),
kind: None, kind: None,
range: 5..6,
}, },
), ),
range: 0..6,
}, },
), ),
] ]

View file

@ -5,67 +5,67 @@ expression: parse_ast
[ [
AugAssign( AugAssign(
StmtAugAssign { StmtAugAssign {
range: 0..17,
target: Subscript( target: Subscript(
ExprSubscript { ExprSubscript {
range: 0..4,
value: Name( value: Name(
ExprName { ExprName {
range: 0..1,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Load, ctx: Load,
range: 0..1,
}, },
), ),
slice: Name( slice: Name(
ExprName { ExprName {
range: 2..3,
id: Identifier( id: Identifier(
"y", "y",
), ),
ctx: Load, ctx: Load,
range: 2..3,
}, },
), ),
ctx: Store, ctx: Store,
range: 0..4,
}, },
), ),
op: Add, op: Add,
value: Tuple( value: Tuple(
ExprTuple { ExprTuple {
range: 8..17,
elts: [ elts: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 9..10,
value: Int( value: Int(
1, 1,
), ),
kind: None, kind: None,
range: 9..10,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 12..13,
value: Int( value: Int(
2, 2,
), ),
kind: None, kind: None,
range: 12..13,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 15..16,
value: Int( value: Int(
3, 3,
), ),
kind: None, kind: None,
range: 15..16,
}, },
), ),
], ],
ctx: Load, ctx: Load,
range: 8..17,
}, },
), ),
range: 0..17,
}, },
), ),
] ]

View file

@ -5,27 +5,27 @@ expression: parse_ast
[ [
Delete( Delete(
StmtDelete { StmtDelete {
range: 0..7,
targets: [ targets: [
Attribute( Attribute(
ExprAttribute { ExprAttribute {
range: 4..7,
value: Name( value: Name(
ExprName { ExprName {
range: 4..5,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Load, ctx: Load,
range: 4..5,
}, },
), ),
attr: Identifier( attr: Identifier(
"y", "y",
), ),
ctx: Del, ctx: Del,
range: 4..7,
}, },
), ),
], ],
range: 0..7,
}, },
), ),
] ]

View file

@ -5,18 +5,18 @@ expression: parse_ast
[ [
Delete( Delete(
StmtDelete { StmtDelete {
range: 0..5,
targets: [ targets: [
Name( Name(
ExprName { ExprName {
range: 4..5,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Del, ctx: Del,
range: 4..5,
}, },
), ),
], ],
range: 0..5,
}, },
), ),
] ]

View file

@ -5,33 +5,33 @@ expression: parse_ast
[ [
Delete( Delete(
StmtDelete { StmtDelete {
range: 0..8,
targets: [ targets: [
Subscript( Subscript(
ExprSubscript { ExprSubscript {
range: 4..8,
value: Name( value: Name(
ExprName { ExprName {
range: 4..5,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Load, ctx: Load,
range: 4..5,
}, },
), ),
slice: Name( slice: Name(
ExprName { ExprName {
range: 6..7,
id: Identifier( id: Identifier(
"y", "y",
), ),
ctx: Load, ctx: Load,
range: 6..7,
}, },
), ),
ctx: Del, ctx: Del,
range: 4..8,
}, },
), ),
], ],
range: 0..8,
}, },
), ),
] ]

View file

@ -6,6 +6,7 @@ Ok(
[ [
FunctionDef( FunctionDef(
StmtFunctionDef { StmtFunctionDef {
range: 0..23,
name: Identifier( name: Identifier(
"f", "f",
), ),
@ -54,7 +55,6 @@ Ok(
decorator_list: [], decorator_list: [],
returns: None, returns: None,
type_comment: None, type_comment: None,
range: 0..23,
}, },
), ),
], ],

View file

@ -6,6 +6,7 @@ Ok(
[ [
FunctionDef( FunctionDef(
StmtFunctionDef { StmtFunctionDef {
range: 0..29,
name: Identifier( name: Identifier(
"f", "f",
), ),
@ -42,20 +43,20 @@ Ok(
kw_defaults: [ kw_defaults: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 14..16,
value: Int( value: Int(
20, 20,
), ),
kind: None, kind: None,
range: 14..16,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 20..22,
value: Int( value: Int(
30, 30,
), ),
kind: None, kind: None,
range: 20..22,
}, },
), ),
], ],
@ -73,7 +74,6 @@ Ok(
decorator_list: [], decorator_list: [],
returns: None, returns: None,
type_comment: None, type_comment: None,
range: 0..29,
}, },
), ),
], ],

View file

@ -6,6 +6,7 @@ Ok(
[ [
FunctionDef( FunctionDef(
StmtFunctionDef { StmtFunctionDef {
range: 0..13,
name: Identifier( name: Identifier(
"f", "f",
), ),
@ -29,7 +30,6 @@ Ok(
decorator_list: [], decorator_list: [],
returns: None, returns: None,
type_comment: None, type_comment: None,
range: 0..13,
}, },
), ),
], ],

View file

@ -6,6 +6,7 @@ Ok(
[ [
FunctionDef( FunctionDef(
StmtFunctionDef { StmtFunctionDef {
range: 0..32,
name: Identifier( name: Identifier(
"f", "f",
), ),
@ -79,7 +80,6 @@ Ok(
decorator_list: [], decorator_list: [],
returns: None, returns: None,
type_comment: None, type_comment: None,
range: 0..32,
}, },
), ),
], ],

View file

@ -6,6 +6,7 @@ Ok(
[ [
FunctionDef( FunctionDef(
StmtFunctionDef { StmtFunctionDef {
range: 0..38,
name: Identifier( name: Identifier(
"f", "f",
), ),
@ -67,20 +68,20 @@ Ok(
kw_defaults: [ kw_defaults: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 23..25,
value: Int( value: Int(
20, 20,
), ),
kind: None, kind: None,
range: 23..25,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 29..31,
value: Int( value: Int(
30, 30,
), ),
kind: None, kind: None,
range: 29..31,
}, },
), ),
], ],
@ -98,7 +99,6 @@ Ok(
decorator_list: [], decorator_list: [],
returns: None, returns: None,
type_comment: None, type_comment: None,
range: 0..38,
}, },
), ),
], ],

View file

@ -6,6 +6,7 @@ Ok(
[ [
FunctionDef( FunctionDef(
StmtFunctionDef { StmtFunctionDef {
range: 0..42,
name: Identifier( name: Identifier(
"f", "f",
), ),
@ -76,20 +77,20 @@ Ok(
kw_defaults: [ kw_defaults: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 27..29,
value: Int( value: Int(
20, 20,
), ),
kind: None, kind: None,
range: 27..29,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 33..35,
value: Int( value: Int(
30, 30,
), ),
kind: None, kind: None,
range: 33..35,
}, },
), ),
], ],
@ -107,7 +108,6 @@ Ok(
decorator_list: [], decorator_list: [],
returns: None, returns: None,
type_comment: None, type_comment: None,
range: 0..42,
}, },
), ),
], ],

View file

@ -6,6 +6,7 @@ Ok(
[ [
FunctionDef( FunctionDef(
StmtFunctionDef { StmtFunctionDef {
range: 0..52,
name: Identifier( name: Identifier(
"f", "f",
), ),
@ -76,20 +77,20 @@ Ok(
kw_defaults: [ kw_defaults: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 27..29,
value: Int( value: Int(
20, 20,
), ),
kind: None, kind: None,
range: 27..29,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 33..35,
value: Int( value: Int(
30, 30,
), ),
kind: None, kind: None,
range: 33..35,
}, },
), ),
], ],
@ -116,7 +117,6 @@ Ok(
decorator_list: [], decorator_list: [],
returns: None, returns: None,
type_comment: None, type_comment: None,
range: 0..52,
}, },
), ),
], ],

View file

@ -6,6 +6,7 @@ Ok(
[ [
FunctionDef( FunctionDef(
StmtFunctionDef { StmtFunctionDef {
range: 0..20,
name: Identifier( name: Identifier(
"f", "f",
), ),
@ -54,7 +55,6 @@ Ok(
decorator_list: [], decorator_list: [],
returns: None, returns: None,
type_comment: None, type_comment: None,
range: 0..20,
}, },
), ),
], ],

View file

@ -6,6 +6,7 @@ Ok(
[ [
FunctionDef( FunctionDef(
StmtFunctionDef { StmtFunctionDef {
range: 0..26,
name: Identifier( name: Identifier(
"f", "f",
), ),
@ -44,20 +45,20 @@ Ok(
defaults: [ defaults: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 11..13,
value: Int( value: Int(
20, 20,
), ),
kind: None, kind: None,
range: 11..13,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 17..19,
value: Int( value: Int(
30, 30,
), ),
kind: None, kind: None,
range: 17..19,
}, },
), ),
], ],
@ -73,7 +74,6 @@ Ok(
decorator_list: [], decorator_list: [],
returns: None, returns: None,
type_comment: None, type_comment: None,
range: 0..26,
}, },
), ),
], ],

View file

@ -6,8 +6,10 @@ Ok(
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..20,
value: Lambda( value: Lambda(
ExprLambda { ExprLambda {
range: 0..20,
args: Arguments { args: Arguments {
posonlyargs: [], posonlyargs: [],
args: [], args: [],
@ -45,17 +47,15 @@ Ok(
}, },
body: Constant( body: Constant(
ExprConstant { ExprConstant {
range: 19..20,
value: Int( value: Int(
1, 1,
), ),
kind: None, kind: None,
range: 19..20,
}, },
), ),
range: 0..20,
}, },
), ),
range: 0..20,
}, },
), ),
], ],

View file

@ -6,8 +6,10 @@ Ok(
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..26,
value: Lambda( value: Lambda(
ExprLambda { ExprLambda {
range: 0..26,
args: Arguments { args: Arguments {
posonlyargs: [], posonlyargs: [],
args: [], args: [],
@ -41,20 +43,20 @@ Ok(
kw_defaults: [ kw_defaults: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 15..17,
value: Int( value: Int(
20, 20,
), ),
kind: None, kind: None,
range: 15..17,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 21..23,
value: Int( value: Int(
30, 30,
), ),
kind: None, kind: None,
range: 21..23,
}, },
), ),
], ],
@ -64,17 +66,15 @@ Ok(
}, },
body: Constant( body: Constant(
ExprConstant { ExprConstant {
range: 25..26,
value: Int( value: Int(
1, 1,
), ),
kind: None, kind: None,
range: 25..26,
}, },
), ),
range: 0..26,
}, },
), ),
range: 0..26,
}, },
), ),
], ],

View file

@ -6,8 +6,10 @@ Ok(
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..9,
value: Lambda( value: Lambda(
ExprLambda { ExprLambda {
range: 0..9,
args: Arguments { args: Arguments {
posonlyargs: [], posonlyargs: [],
args: [], args: [],
@ -20,17 +22,15 @@ Ok(
}, },
body: Constant( body: Constant(
ExprConstant { ExprConstant {
range: 8..9,
value: Int( value: Int(
1, 1,
), ),
kind: None, kind: None,
range: 8..9,
}, },
), ),
range: 0..9,
}, },
), ),
range: 0..9,
}, },
), ),
], ],

View file

@ -6,8 +6,10 @@ Ok(
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..26,
value: Lambda( value: Lambda(
ExprLambda { ExprLambda {
range: 0..26,
args: Arguments { args: Arguments {
posonlyargs: [], posonlyargs: [],
args: [ args: [
@ -62,17 +64,15 @@ Ok(
}, },
body: Constant( body: Constant(
ExprConstant { ExprConstant {
range: 25..26,
value: Int( value: Int(
0, 0,
), ),
kind: None, kind: None,
range: 25..26,
}, },
), ),
range: 0..26,
}, },
), ),
range: 0..26,
}, },
), ),
], ],

View file

@ -6,8 +6,10 @@ Ok(
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..17,
value: Lambda( value: Lambda(
ExprLambda { ExprLambda {
range: 0..17,
args: Arguments { args: Arguments {
posonlyargs: [], posonlyargs: [],
args: [ args: [
@ -45,17 +47,15 @@ Ok(
}, },
body: Constant( body: Constant(
ExprConstant { ExprConstant {
range: 16..17,
value: Int( value: Int(
1, 1,
), ),
kind: None, kind: None,
range: 16..17,
}, },
), ),
range: 0..17,
}, },
), ),
range: 0..17,
}, },
), ),
], ],

View file

@ -6,8 +6,10 @@ Ok(
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..23,
value: Lambda( value: Lambda(
ExprLambda { ExprLambda {
range: 0..23,
args: Arguments { args: Arguments {
posonlyargs: [], posonlyargs: [],
args: [ args: [
@ -43,20 +45,20 @@ Ok(
defaults: [ defaults: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 12..14,
value: Int( value: Int(
20, 20,
), ),
kind: None, kind: None,
range: 12..14,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 18..20,
value: Int( value: Int(
30, 30,
), ),
kind: None, kind: None,
range: 18..20,
}, },
), ),
], ],
@ -64,17 +66,15 @@ Ok(
}, },
body: Constant( body: Constant(
ExprConstant { ExprConstant {
range: 22..23,
value: Int( value: Int(
1, 1,
), ),
kind: None, kind: None,
range: 22..23,
}, },
), ),
range: 0..23,
}, },
), ),
range: 0..23,
}, },
), ),
], ],

View file

@ -4,15 +4,16 @@ expression: parse_ast
--- ---
Dict( Dict(
ExprDict { ExprDict {
range: 0..25,
keys: [ keys: [
Some( Some(
Constant( Constant(
ExprConstant { ExprConstant {
range: 1..4,
value: Str( value: Str(
"a", "a",
), ),
kind: None, kind: None,
range: 1..4,
}, },
), ),
), ),
@ -20,11 +21,11 @@ Dict(
Some( Some(
Constant( Constant(
ExprConstant { ExprConstant {
range: 16..19,
value: Str( value: Str(
"d", "d",
), ),
kind: None, kind: None,
range: 16..19,
}, },
), ),
), ),
@ -32,32 +33,31 @@ Dict(
values: [ values: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 6..9,
value: Str( value: Str(
"b", "b",
), ),
kind: None, kind: None,
range: 6..9,
}, },
), ),
Name( Name(
ExprName { ExprName {
range: 13..14,
id: Identifier( id: Identifier(
"c", "c",
), ),
ctx: Load, ctx: Load,
range: 13..14,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 21..24,
value: Str( value: Str(
"e", "e",
), ),
kind: None, kind: None,
range: 21..24,
}, },
), ),
], ],
range: 0..25,
}, },
) )

View file

@ -4,143 +4,145 @@ expression: parse_ast
--- ---
Call( Call(
ExprCall { ExprCall {
range: 0..141,
func: Attribute( func: Attribute(
ExprAttribute { ExprAttribute {
range: 0..8,
value: Constant( value: Constant(
ExprConstant { ExprConstant {
range: 0..3,
value: Str( value: Str(
" ", " ",
), ),
kind: None, kind: None,
range: 0..3,
}, },
), ),
attr: Identifier( attr: Identifier(
"join", "join",
), ),
ctx: Load, ctx: Load,
range: 0..8,
}, },
), ),
args: [ args: [
GeneratorExp( GeneratorExp(
ExprGeneratorExp { ExprGeneratorExp {
range: 14..139,
elt: Name( elt: Name(
ExprName { ExprName {
range: 14..17,
id: Identifier( id: Identifier(
"sql", "sql",
), ),
ctx: Load, ctx: Load,
range: 14..17,
}, },
), ),
generators: [ generators: [
Comprehension { Comprehension {
target: Name( target: Name(
ExprName { ExprName {
range: 26..29,
id: Identifier( id: Identifier(
"sql", "sql",
), ),
ctx: Store, ctx: Store,
range: 26..29,
}, },
), ),
iter: Tuple( iter: Tuple(
ExprTuple { ExprTuple {
range: 33..139,
elts: [ elts: [
IfExp( IfExp(
ExprIfExp { ExprIfExp {
range: 43..80,
test: Name( test: Name(
ExprName { ExprName {
range: 65..70,
id: Identifier( id: Identifier(
"limit", "limit",
), ),
ctx: Load, ctx: Load,
range: 65..70,
}, },
), ),
body: BinOp( body: BinOp(
ExprBinOp { ExprBinOp {
range: 43..61,
left: Constant( left: Constant(
ExprConstant { ExprConstant {
range: 43..53,
value: Str( value: Str(
"LIMIT %d", "LIMIT %d",
), ),
kind: None, kind: None,
range: 43..53,
}, },
), ),
op: Mod, op: Mod,
right: Name( right: Name(
ExprName { ExprName {
range: 56..61,
id: Identifier( id: Identifier(
"limit", "limit",
), ),
ctx: Load, ctx: Load,
range: 56..61,
}, },
), ),
range: 43..61,
}, },
), ),
orelse: Constant( orelse: Constant(
ExprConstant { ExprConstant {
range: 76..80,
value: None, value: None,
kind: None, kind: None,
range: 76..80,
}, },
), ),
range: 43..80,
}, },
), ),
IfExp( IfExp(
ExprIfExp { ExprIfExp {
range: 90..132,
test: Name( test: Name(
ExprName { ExprName {
range: 116..122,
id: Identifier( id: Identifier(
"offset", "offset",
), ),
ctx: Load, ctx: Load,
range: 116..122,
}, },
), ),
body: BinOp( body: BinOp(
ExprBinOp { ExprBinOp {
range: 91..111,
left: Constant( left: Constant(
ExprConstant { ExprConstant {
range: 91..102,
value: Str( value: Str(
"OFFSET %d", "OFFSET %d",
), ),
kind: None, kind: None,
range: 91..102,
}, },
), ),
op: Mod, op: Mod,
right: Name( right: Name(
ExprName { ExprName {
range: 105..111,
id: Identifier( id: Identifier(
"offset", "offset",
), ),
ctx: Load, ctx: Load,
range: 105..111,
}, },
), ),
range: 91..111,
}, },
), ),
orelse: Constant( orelse: Constant(
ExprConstant { ExprConstant {
range: 128..132,
value: None, value: None,
kind: None, kind: None,
range: 128..132,
}, },
), ),
range: 90..132,
}, },
), ),
], ],
ctx: Load, ctx: Load,
range: 33..139,
}, },
), ),
ifs: [], ifs: [],
@ -148,11 +150,9 @@ Call(
range: (), range: (),
}, },
], ],
range: 14..139,
}, },
), ),
], ],
keywords: [], keywords: [],
range: 0..141,
}, },
) )

View file

@ -5,17 +5,19 @@ expression: parse_ast
[ [
Match( Match(
StmtMatch { StmtMatch {
range: 1..73,
subject: Dict( subject: Dict(
ExprDict { ExprDict {
range: 7..18,
keys: [ keys: [
Some( Some(
Constant( Constant(
ExprConstant { ExprConstant {
range: 8..14,
value: Str( value: Str(
"test", "test",
), ),
kind: None, kind: None,
range: 8..14,
}, },
), ),
), ),
@ -23,21 +25,21 @@ expression: parse_ast
values: [ values: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 16..17,
value: Int( value: Int(
1, 1,
), ),
kind: None, kind: None,
range: 16..17,
}, },
), ),
], ],
range: 7..18,
}, },
), ),
cases: [ cases: [
MatchCase { MatchCase {
pattern: MatchMapping( pattern: MatchMapping(
PatternMatchMapping { PatternMatchMapping {
range: 29..52,
keys: [], keys: [],
patterns: [], patterns: [],
rest: Some( rest: Some(
@ -45,62 +47,62 @@ expression: parse_ast
"rest", "rest",
), ),
), ),
range: 29..52,
}, },
), ),
guard: None, guard: None,
body: [ body: [
Expr( Expr(
StmtExpr { StmtExpr {
range: 62..73,
value: Call( value: Call(
ExprCall { ExprCall {
range: 62..73,
func: Name( func: Name(
ExprName { ExprName {
range: 62..67,
id: Identifier( id: Identifier(
"print", "print",
), ),
ctx: Load, ctx: Load,
range: 62..67,
}, },
), ),
args: [ args: [
Name( Name(
ExprName { ExprName {
range: 68..72,
id: Identifier( id: Identifier(
"rest", "rest",
), ),
ctx: Load, ctx: Load,
range: 68..72,
}, },
), ),
], ],
keywords: [], keywords: [],
range: 62..73,
}, },
), ),
range: 62..73,
}, },
), ),
], ],
range: (), range: (),
}, },
], ],
range: 1..73,
}, },
), ),
Match( Match(
StmtMatch { StmtMatch {
range: 74..177,
subject: Dict( subject: Dict(
ExprDict { ExprDict {
range: 80..97,
keys: [ keys: [
Some( Some(
Constant( Constant(
ExprConstant { ExprConstant {
range: 81..88,
value: Str( value: Str(
"label", "label",
), ),
kind: None, kind: None,
range: 81..88,
}, },
), ),
), ),
@ -108,64 +110,65 @@ expression: parse_ast
values: [ values: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 90..96,
value: Str( value: Str(
"test", "test",
), ),
kind: None, kind: None,
range: 90..96,
}, },
), ),
], ],
range: 80..97,
}, },
), ),
cases: [ cases: [
MatchCase { MatchCase {
pattern: MatchMapping( pattern: MatchMapping(
PatternMatchMapping { PatternMatchMapping {
range: 108..155,
keys: [ keys: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 118..125,
value: Str( value: Str(
"label", "label",
), ),
kind: None, kind: None,
range: 118..125,
}, },
), ),
], ],
patterns: [ patterns: [
MatchAs( MatchAs(
PatternMatchAs { PatternMatchAs {
range: 127..148,
pattern: Some( pattern: Some(
MatchOr( MatchOr(
PatternMatchOr { PatternMatchOr {
range: 127..139,
patterns: [ patterns: [
MatchClass( MatchClass(
PatternMatchClass { PatternMatchClass {
range: 127..132,
cls: Name( cls: Name(
ExprName { ExprName {
range: 127..130,
id: Identifier( id: Identifier(
"str", "str",
), ),
ctx: Load, ctx: Load,
range: 127..130,
}, },
), ),
patterns: [], patterns: [],
kwd_attrs: [], kwd_attrs: [],
kwd_patterns: [], kwd_patterns: [],
range: 127..132,
}, },
), ),
MatchSingleton( MatchSingleton(
PatternMatchSingleton { PatternMatchSingleton {
value: None,
range: 135..139, range: 135..139,
value: None,
}, },
), ),
], ],
range: 127..139,
}, },
), ),
), ),
@ -174,287 +177,284 @@ expression: parse_ast
"label", "label",
), ),
), ),
range: 127..148,
}, },
), ),
], ],
rest: None, rest: None,
range: 108..155,
}, },
), ),
guard: None, guard: None,
body: [ body: [
Expr( Expr(
StmtExpr { StmtExpr {
range: 165..177,
value: Call( value: Call(
ExprCall { ExprCall {
range: 165..177,
func: Name( func: Name(
ExprName { ExprName {
range: 165..170,
id: Identifier( id: Identifier(
"print", "print",
), ),
ctx: Load, ctx: Load,
range: 165..170,
}, },
), ),
args: [ args: [
Name( Name(
ExprName { ExprName {
range: 171..176,
id: Identifier( id: Identifier(
"label", "label",
), ),
ctx: Load, ctx: Load,
range: 171..176,
}, },
), ),
], ],
keywords: [], keywords: [],
range: 165..177,
}, },
), ),
range: 165..177,
}, },
), ),
], ],
range: (), range: (),
}, },
], ],
range: 74..177,
}, },
), ),
Match( Match(
StmtMatch { StmtMatch {
subject: Name(
ExprName {
id: Identifier(
"x",
),
ctx: Load,
range: 184..185,
},
),
cases: [
MatchCase {
pattern: MatchSequence(
PatternMatchSequence {
patterns: [
MatchValue(
PatternMatchValue {
value: Constant(
ExprConstant {
value: Int(
0,
),
kind: None,
range: 197..198,
},
),
range: 197..198,
},
),
MatchValue(
PatternMatchValue {
value: Constant(
ExprConstant {
value: Int(
1,
),
kind: None,
range: 200..201,
},
),
range: 200..201,
},
),
],
range: 196..203,
},
),
guard: None,
body: [
Assign(
StmtAssign {
targets: [
Name(
ExprName {
id: Identifier(
"y",
),
ctx: Store,
range: 213..214,
},
),
],
value: Constant(
ExprConstant {
value: Int(
0,
),
kind: None,
range: 217..218,
},
),
type_comment: None,
range: 213..218,
},
),
],
range: (),
},
],
range: 178..218, range: 178..218,
},
),
Match(
StmtMatch {
subject: Name( subject: Name(
ExprName { ExprName {
range: 184..185,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Load, ctx: Load,
range: 225..226,
}, },
), ),
cases: [ cases: [
MatchCase { MatchCase {
pattern: MatchSequence( pattern: MatchSequence(
PatternMatchSequence { PatternMatchSequence {
range: 196..203,
patterns: [ patterns: [
MatchValue( MatchValue(
PatternMatchValue { PatternMatchValue {
range: 197..198,
value: Constant( value: Constant(
ExprConstant { ExprConstant {
range: 197..198,
value: Int( value: Int(
0, 0,
), ),
kind: None, kind: None,
range: 238..239,
}, },
), ),
range: 238..239,
}, },
), ),
MatchValue( MatchValue(
PatternMatchValue { PatternMatchValue {
range: 200..201,
value: Constant( value: Constant(
ExprConstant { ExprConstant {
range: 200..201,
value: Int( value: Int(
1, 1,
), ),
kind: None, kind: None,
range: 241..242,
}, },
), ),
range: 241..242,
}, },
), ),
], ],
range: 237..244,
}, },
), ),
guard: None, guard: None,
body: [ body: [
Assign( Assign(
StmtAssign { StmtAssign {
range: 213..218,
targets: [ targets: [
Name( Name(
ExprName { ExprName {
range: 213..214,
id: Identifier( id: Identifier(
"y", "y",
), ),
ctx: Store, ctx: Store,
range: 254..255,
}, },
), ),
], ],
value: Constant( value: Constant(
ExprConstant { ExprConstant {
range: 217..218,
value: Int( value: Int(
0, 0,
), ),
kind: None, kind: None,
range: 258..259,
}, },
), ),
type_comment: None, type_comment: None,
range: 254..259,
}, },
), ),
], ],
range: (), range: (),
}, },
], ],
range: 219..259,
}, },
), ),
Match( Match(
StmtMatch { StmtMatch {
range: 219..259,
subject: Name( subject: Name(
ExprName { ExprName {
range: 225..226,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Load, ctx: Load,
range: 266..267,
}, },
), ),
cases: [ cases: [
MatchCase { MatchCase {
pattern: MatchSequence( pattern: MatchSequence(
PatternMatchSequence { PatternMatchSequence {
range: 237..244,
patterns: [ patterns: [
MatchValue( MatchValue(
PatternMatchValue { PatternMatchValue {
range: 238..239,
value: Constant( value: Constant(
ExprConstant { ExprConstant {
range: 238..239,
value: Int( value: Int(
0, 0,
), ),
kind: None, kind: None,
range: 279..280,
}, },
), ),
range: 279..280, },
),
MatchValue(
PatternMatchValue {
range: 241..242,
value: Constant(
ExprConstant {
range: 241..242,
value: Int(
1,
),
kind: None,
},
),
}, },
), ),
], ],
range: 278..282,
}, },
), ),
guard: None, guard: None,
body: [ body: [
Assign( Assign(
StmtAssign { StmtAssign {
range: 254..259,
targets: [ targets: [
Name( Name(
ExprName { ExprName {
range: 254..255,
id: Identifier( id: Identifier(
"y", "y",
), ),
ctx: Store, ctx: Store,
range: 292..293,
}, },
), ),
], ],
value: Constant( value: Constant(
ExprConstant { ExprConstant {
range: 258..259,
value: Int( value: Int(
0, 0,
), ),
kind: None, kind: None,
range: 296..297,
}, },
), ),
type_comment: None, type_comment: None,
range: 292..297,
}, },
), ),
], ],
range: (), range: (),
}, },
], ],
},
),
Match(
StmtMatch {
range: 260..297, range: 260..297,
subject: Name(
ExprName {
range: 266..267,
id: Identifier(
"x",
),
ctx: Load,
},
),
cases: [
MatchCase {
pattern: MatchSequence(
PatternMatchSequence {
range: 278..282,
patterns: [
MatchValue(
PatternMatchValue {
range: 279..280,
value: Constant(
ExprConstant {
range: 279..280,
value: Int(
0,
),
kind: None,
},
),
},
),
],
},
),
guard: None,
body: [
Assign(
StmtAssign {
range: 292..297,
targets: [
Name(
ExprName {
range: 292..293,
id: Identifier(
"y",
),
ctx: Store,
},
),
],
value: Constant(
ExprConstant {
range: 296..297,
value: Int(
0,
),
kind: None,
},
),
type_comment: None,
},
),
],
range: (),
},
],
}, },
), ),
] ]

View file

@ -4,27 +4,27 @@ expression: parse_ast
--- ---
BoolOp( BoolOp(
ExprBoolOp { ExprBoolOp {
range: 0..7,
op: And, op: And,
values: [ values: [
Name( Name(
ExprName { ExprName {
range: 0..1,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Load, ctx: Load,
range: 0..1,
}, },
), ),
Name( Name(
ExprName { ExprName {
range: 6..7,
id: Identifier( id: Identifier(
"y", "y",
), ),
ctx: Load, ctx: Load,
range: 6..7,
}, },
), ),
], ],
range: 0..7,
}, },
) )

View file

@ -4,27 +4,27 @@ expression: parse_ast
--- ---
BoolOp( BoolOp(
ExprBoolOp { ExprBoolOp {
range: 0..6,
op: Or, op: Or,
values: [ values: [
Name( Name(
ExprName { ExprName {
range: 0..1,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Load, ctx: Load,
range: 0..1,
}, },
), ),
Name( Name(
ExprName { ExprName {
range: 5..6,
id: Identifier( id: Identifier(
"y", "y",
), ),
ctx: Load, ctx: Load,
range: 5..6,
}, },
), ),
], ],
range: 0..6,
}, },
) )

View file

@ -5,26 +5,27 @@ expression: "parse_program(source, \"<test>\").unwrap()"
[ [
ClassDef( ClassDef(
StmtClassDef { StmtClassDef {
range: 0..98,
name: Identifier( name: Identifier(
"Foo", "Foo",
), ),
bases: [ bases: [
Name( Name(
ExprName { ExprName {
range: 10..11,
id: Identifier( id: Identifier(
"A", "A",
), ),
ctx: Load, ctx: Load,
range: 10..11,
}, },
), ),
Name( Name(
ExprName { ExprName {
range: 13..14,
id: Identifier( id: Identifier(
"B", "B",
), ),
ctx: Load, ctx: Load,
range: 13..14,
}, },
), ),
], ],
@ -32,6 +33,7 @@ expression: "parse_program(source, \"<test>\").unwrap()"
body: [ body: [
FunctionDef( FunctionDef(
StmtFunctionDef { StmtFunctionDef {
range: 18..44,
name: Identifier( name: Identifier(
"__init__", "__init__",
), ),
@ -64,11 +66,11 @@ expression: "parse_program(source, \"<test>\").unwrap()"
decorator_list: [], decorator_list: [],
returns: None, returns: None,
type_comment: None, type_comment: None,
range: 18..44,
}, },
), ),
FunctionDef( FunctionDef(
StmtFunctionDef { StmtFunctionDef {
range: 46..98,
name: Identifier( name: Identifier(
"method_with_default", "method_with_default",
), ),
@ -99,11 +101,11 @@ expression: "parse_program(source, \"<test>\").unwrap()"
defaults: [ defaults: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 80..89,
value: Str( value: Str(
"default", "default",
), ),
kind: None, kind: None,
range: 80..89,
}, },
), ),
], ],
@ -119,12 +121,10 @@ expression: "parse_program(source, \"<test>\").unwrap()"
decorator_list: [], decorator_list: [],
returns: None, returns: None,
type_comment: None, type_comment: None,
range: 46..98,
}, },
), ),
], ],
decorator_list: [], decorator_list: [],
range: 0..98,
}, },
), ),
] ]

View file

@ -4,42 +4,43 @@ expression: parse_ast
--- ---
DictComp( DictComp(
ExprDictComp { ExprDictComp {
range: 0..19,
key: Name( key: Name(
ExprName { ExprName {
range: 1..3,
id: Identifier( id: Identifier(
"x1", "x1",
), ),
ctx: Load, ctx: Load,
range: 1..3,
}, },
), ),
value: Name( value: Name(
ExprName { ExprName {
range: 5..7,
id: Identifier( id: Identifier(
"x2", "x2",
), ),
ctx: Load, ctx: Load,
range: 5..7,
}, },
), ),
generators: [ generators: [
Comprehension { Comprehension {
target: Name( target: Name(
ExprName { ExprName {
range: 12..13,
id: Identifier( id: Identifier(
"y", "y",
), ),
ctx: Store, ctx: Store,
range: 12..13,
}, },
), ),
iter: Name( iter: Name(
ExprName { ExprName {
range: 17..18,
id: Identifier( id: Identifier(
"z", "z",
), ),
ctx: Load, ctx: Load,
range: 17..18,
}, },
), ),
ifs: [], ifs: [],
@ -47,6 +48,5 @@ DictComp(
range: (), range: (),
}, },
], ],
range: 0..19,
}, },
) )

View file

@ -4,50 +4,51 @@ expression: parse_ast
--- ---
ListComp( ListComp(
ExprListComp { ExprListComp {
range: 0..48,
elt: Name( elt: Name(
ExprName { ExprName {
range: 1..2,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Load, ctx: Load,
range: 1..2,
}, },
), ),
generators: [ generators: [
Comprehension { Comprehension {
target: Tuple( target: Tuple(
ExprTuple { ExprTuple {
range: 7..12,
elts: [ elts: [
Name( Name(
ExprName { ExprName {
range: 7..8,
id: Identifier( id: Identifier(
"y", "y",
), ),
ctx: Store, ctx: Store,
range: 7..8,
}, },
), ),
Name( Name(
ExprName { ExprName {
range: 10..12,
id: Identifier( id: Identifier(
"y2", "y2",
), ),
ctx: Store, ctx: Store,
range: 10..12,
}, },
), ),
], ],
ctx: Store, ctx: Store,
range: 7..12,
}, },
), ),
iter: Name( iter: Name(
ExprName { ExprName {
range: 16..17,
id: Identifier( id: Identifier(
"z", "z",
), ),
ctx: Load, ctx: Load,
range: 16..17,
}, },
), ),
ifs: [], ifs: [],
@ -57,32 +58,33 @@ ListComp(
Comprehension { Comprehension {
target: Name( target: Name(
ExprName { ExprName {
range: 22..23,
id: Identifier( id: Identifier(
"a", "a",
), ),
ctx: Store, ctx: Store,
range: 22..23,
}, },
), ),
iter: Name( iter: Name(
ExprName { ExprName {
range: 27..28,
id: Identifier( id: Identifier(
"b", "b",
), ),
ctx: Load, ctx: Load,
range: 27..28,
}, },
), ),
ifs: [ ifs: [
Compare( Compare(
ExprCompare { ExprCompare {
range: 32..37,
left: Name( left: Name(
ExprName { ExprName {
range: 32..33,
id: Identifier( id: Identifier(
"a", "a",
), ),
ctx: Load, ctx: Load,
range: 32..33,
}, },
), ),
ops: [ ops: [
@ -91,26 +93,26 @@ ListComp(
comparators: [ comparators: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 36..37,
value: Int( value: Int(
5, 5,
), ),
kind: None, kind: None,
range: 36..37,
}, },
), ),
], ],
range: 32..37,
}, },
), ),
Compare( Compare(
ExprCompare { ExprCompare {
range: 41..47,
left: Name( left: Name(
ExprName { ExprName {
range: 41..42,
id: Identifier( id: Identifier(
"a", "a",
), ),
ctx: Load, ctx: Load,
range: 41..42,
}, },
), ),
ops: [ ops: [
@ -119,15 +121,14 @@ ListComp(
comparators: [ comparators: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 45..47,
value: Int( value: Int(
10, 10,
), ),
kind: None, kind: None,
range: 45..47,
}, },
), ),
], ],
range: 41..47,
}, },
), ),
], ],
@ -135,6 +136,5 @@ ListComp(
range: (), range: (),
}, },
], ],
range: 0..48,
}, },
) )

View file

@ -5,23 +5,23 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..14,
value: JoinedStr( value: JoinedStr(
ExprJoinedStr { ExprJoinedStr {
range: 0..14,
values: [ values: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 0..14,
value: Str( value: Str(
"Hello world", "Hello world",
), ),
kind: None, kind: None,
range: 0..14,
}, },
), ),
], ],
range: 0..14,
}, },
), ),
range: 0..14,
}, },
), ),
] ]

View file

@ -4,33 +4,34 @@ expression: parse_ast
--- ---
GeneratorExp( GeneratorExp(
ExprGeneratorExp { ExprGeneratorExp {
range: 0..14,
elt: Name( elt: Name(
ExprName { ExprName {
range: 1..2,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Load, ctx: Load,
range: 1..2,
}, },
), ),
generators: [ generators: [
Comprehension { Comprehension {
target: Name( target: Name(
ExprName { ExprName {
range: 7..8,
id: Identifier( id: Identifier(
"y", "y",
), ),
ctx: Store, ctx: Store,
range: 7..8,
}, },
), ),
iter: Name( iter: Name(
ExprName { ExprName {
range: 12..13,
id: Identifier( id: Identifier(
"z", "z",
), ),
ctx: Load, ctx: Load,
range: 12..13,
}, },
), ),
ifs: [], ifs: [],
@ -38,6 +39,5 @@ GeneratorExp(
range: (), range: (),
}, },
], ],
range: 0..14,
}, },
) )

View file

@ -5,80 +5,80 @@ expression: parse_ast
[ [
If( If(
StmtIf { StmtIf {
range: 0..28,
test: Constant( test: Constant(
ExprConstant { ExprConstant {
range: 3..4,
value: Int( value: Int(
1, 1,
), ),
kind: None, kind: None,
range: 3..4,
}, },
), ),
body: [ body: [
Expr( Expr(
StmtExpr { StmtExpr {
range: 6..8,
value: Constant( value: Constant(
ExprConstant { ExprConstant {
range: 6..8,
value: Int( value: Int(
10, 10,
), ),
kind: None, kind: None,
range: 6..8,
}, },
), ),
range: 6..8,
}, },
), ),
], ],
orelse: [ orelse: [
If( If(
StmtIf { StmtIf {
range: 9..28,
test: Constant( test: Constant(
ExprConstant { ExprConstant {
range: 14..15,
value: Int( value: Int(
2, 2,
), ),
kind: None, kind: None,
range: 14..15,
}, },
), ),
body: [ body: [
Expr( Expr(
StmtExpr { StmtExpr {
range: 17..19,
value: Constant( value: Constant(
ExprConstant { ExprConstant {
range: 17..19,
value: Int( value: Int(
20, 20,
), ),
kind: None, kind: None,
range: 17..19,
}, },
), ),
range: 17..19,
}, },
), ),
], ],
orelse: [ orelse: [
Expr( Expr(
StmtExpr { StmtExpr {
range: 26..28,
value: Constant( value: Constant(
ExprConstant { ExprConstant {
range: 26..28,
value: Int( value: Int(
30, 30,
), ),
kind: None, kind: None,
range: 26..28,
}, },
), ),
range: 26..28,
}, },
), ),
], ],
range: 9..28,
}, },
), ),
], ],
range: 0..28,
}, },
), ),
] ]

View file

@ -4,56 +4,57 @@ expression: parse_ast
--- ---
GeneratorExp( GeneratorExp(
ExprGeneratorExp { ExprGeneratorExp {
range: 0..26,
elt: IfExp( elt: IfExp(
ExprIfExp { ExprIfExp {
range: 1..14,
test: Name( test: Name(
ExprName { ExprName {
range: 6..7,
id: Identifier( id: Identifier(
"y", "y",
), ),
ctx: Load, ctx: Load,
range: 6..7,
}, },
), ),
body: Name( body: Name(
ExprName { ExprName {
range: 1..2,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Load, ctx: Load,
range: 1..2,
}, },
), ),
orelse: Name( orelse: Name(
ExprName { ExprName {
range: 13..14,
id: Identifier( id: Identifier(
"y", "y",
), ),
ctx: Load, ctx: Load,
range: 13..14,
}, },
), ),
range: 1..14,
}, },
), ),
generators: [ generators: [
Comprehension { Comprehension {
target: Name( target: Name(
ExprName { ExprName {
range: 19..20,
id: Identifier( id: Identifier(
"y", "y",
), ),
ctx: Store, ctx: Store,
range: 19..20,
}, },
), ),
iter: Name( iter: Name(
ExprName { ExprName {
range: 24..25,
id: Identifier( id: Identifier(
"z", "z",
), ),
ctx: Load, ctx: Load,
range: 24..25,
}, },
), ),
ifs: [], ifs: [],
@ -61,6 +62,5 @@ GeneratorExp(
range: (), range: (),
}, },
], ],
range: 0..26,
}, },
) )

View file

@ -5,25 +5,27 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..32,
value: Call( value: Call(
ExprCall { ExprCall {
range: 0..32,
func: Name( func: Name(
ExprName { ExprName {
range: 0..7,
id: Identifier( id: Identifier(
"my_func", "my_func",
), ),
ctx: Load, ctx: Load,
range: 0..7,
}, },
), ),
args: [ args: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 8..20,
value: Str( value: Str(
"positional", "positional",
), ),
kind: None, kind: None,
range: 8..20,
}, },
), ),
], ],
@ -36,20 +38,18 @@ expression: parse_ast
), ),
value: Constant( value: Constant(
ExprConstant { ExprConstant {
range: 30..31,
value: Int( value: Int(
2, 2,
), ),
kind: None, kind: None,
range: 30..31,
}, },
), ),
range: 22..31, range: 22..31,
}, },
], ],
range: 0..32,
}, },
), ),
range: 0..32,
}, },
), ),
] ]

View file

@ -5,8 +5,10 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..18,
value: Lambda( value: Lambda(
ExprLambda { ExprLambda {
range: 0..18,
args: Arguments { args: Arguments {
posonlyargs: [], posonlyargs: [],
args: [ args: [
@ -36,32 +38,30 @@ expression: parse_ast
}, },
body: BinOp( body: BinOp(
ExprBinOp { ExprBinOp {
range: 13..18,
left: Name( left: Name(
ExprName { ExprName {
range: 13..14,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Load, ctx: Load,
range: 13..14,
}, },
), ),
op: Mult, op: Mult,
right: Name( right: Name(
ExprName { ExprName {
range: 17..18,
id: Identifier( id: Identifier(
"y", "y",
), ),
ctx: Load, ctx: Load,
range: 17..18,
}, },
), ),
range: 13..18,
}, },
), ),
range: 0..18,
}, },
), ),
range: 0..18,
}, },
), ),
] ]

View file

@ -4,33 +4,34 @@ expression: parse_ast
--- ---
ListComp( ListComp(
ExprListComp { ExprListComp {
range: 0..14,
elt: Name( elt: Name(
ExprName { ExprName {
range: 1..2,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Load, ctx: Load,
range: 1..2,
}, },
), ),
generators: [ generators: [
Comprehension { Comprehension {
target: Name( target: Name(
ExprName { ExprName {
range: 7..8,
id: Identifier( id: Identifier(
"y", "y",
), ),
ctx: Store, ctx: Store,
range: 7..8,
}, },
), ),
iter: Name( iter: Name(
ExprName { ExprName {
range: 12..13,
id: Identifier( id: Identifier(
"z", "z",
), ),
ctx: Load, ctx: Load,
range: 12..13,
}, },
), ),
ifs: [], ifs: [],
@ -38,6 +39,5 @@ ListComp(
range: (), range: (),
}, },
], ],
range: 0..14,
}, },
) )

View file

@ -4,62 +4,63 @@ expression: parse_ast
--- ---
GeneratorExp( GeneratorExp(
ExprGeneratorExp { ExprGeneratorExp {
range: 0..23,
elt: NamedExpr( elt: NamedExpr(
ExprNamedExpr { ExprNamedExpr {
range: 1..11,
target: Name( target: Name(
ExprName { ExprName {
range: 1..2,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Store, ctx: Store,
range: 1..2,
}, },
), ),
value: BinOp( value: BinOp(
ExprBinOp { ExprBinOp {
range: 6..11,
left: Name( left: Name(
ExprName { ExprName {
range: 6..7,
id: Identifier( id: Identifier(
"y", "y",
), ),
ctx: Load, ctx: Load,
range: 6..7,
}, },
), ),
op: Add, op: Add,
right: Constant( right: Constant(
ExprConstant { ExprConstant {
range: 10..11,
value: Int( value: Int(
1, 1,
), ),
kind: None, kind: None,
range: 10..11,
}, },
), ),
range: 6..11,
}, },
), ),
range: 1..11,
}, },
), ),
generators: [ generators: [
Comprehension { Comprehension {
target: Name( target: Name(
ExprName { ExprName {
range: 16..17,
id: Identifier( id: Identifier(
"y", "y",
), ),
ctx: Store, ctx: Store,
range: 16..17,
}, },
), ),
iter: Name( iter: Name(
ExprName { ExprName {
range: 21..22,
id: Identifier( id: Identifier(
"z", "z",
), ),
ctx: Load, ctx: Load,
range: 21..22,
}, },
), ),
ifs: [], ifs: [],
@ -67,6 +68,5 @@ GeneratorExp(
range: (), range: (),
}, },
], ],
range: 0..23,
}, },
) )

View file

@ -5,42 +5,42 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..23,
value: Call( value: Call(
ExprCall { ExprCall {
range: 0..23,
func: Name( func: Name(
ExprName { ExprName {
range: 0..5,
id: Identifier( id: Identifier(
"print", "print",
), ),
ctx: Load, ctx: Load,
range: 0..5,
}, },
), ),
args: [ args: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 6..19,
value: Str( value: Str(
"Hello world", "Hello world",
), ),
kind: None, kind: None,
range: 6..19,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 21..22,
value: Int( value: Int(
2, 2,
), ),
kind: None, kind: None,
range: 21..22,
}, },
), ),
], ],
keywords: [], keywords: [],
range: 0..23,
}, },
), ),
range: 0..23,
}, },
), ),
] ]

View file

@ -5,33 +5,33 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..20,
value: Call( value: Call(
ExprCall { ExprCall {
range: 0..20,
func: Name( func: Name(
ExprName { ExprName {
range: 0..5,
id: Identifier( id: Identifier(
"print", "print",
), ),
ctx: Load, ctx: Load,
range: 0..5,
}, },
), ),
args: [ args: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 6..19,
value: Str( value: Str(
"Hello world", "Hello world",
), ),
kind: None, kind: None,
range: 6..19,
}, },
), ),
], ],
keywords: [], keywords: [],
range: 0..20,
}, },
), ),
range: 0..20,
}, },
), ),
] ]

View file

@ -5,16 +5,16 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..13,
value: Constant( value: Constant(
ExprConstant { ExprConstant {
range: 0..13,
value: Str( value: Str(
"Hello world", "Hello world",
), ),
kind: None, kind: None,
range: 0..13,
}, },
), ),
range: 0..13,
}, },
), ),
] ]

View file

@ -5,62 +5,62 @@ expression: "parse_program(source, \"<test>\").unwrap()"
[ [
Assign( Assign(
StmtAssign { StmtAssign {
range: 0..11,
targets: [ targets: [
Tuple( Tuple(
ExprTuple { ExprTuple {
range: 0..4,
elts: [ elts: [
Name( Name(
ExprName { ExprName {
range: 0..1,
id: Identifier( id: Identifier(
"a", "a",
), ),
ctx: Store, ctx: Store,
range: 0..1,
}, },
), ),
Name( Name(
ExprName { ExprName {
range: 3..4,
id: Identifier( id: Identifier(
"b", "b",
), ),
ctx: Store, ctx: Store,
range: 3..4,
}, },
), ),
], ],
ctx: Store, ctx: Store,
range: 0..4,
}, },
), ),
], ],
value: Tuple( value: Tuple(
ExprTuple { ExprTuple {
range: 7..11,
elts: [ elts: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 7..8,
value: Int( value: Int(
4, 4,
), ),
kind: None, kind: None,
range: 7..8,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 10..11,
value: Int( value: Int(
5, 5,
), ),
kind: None, kind: None,
range: 10..11,
}, },
), ),
], ],
ctx: Load, ctx: Load,
range: 7..11,
}, },
), ),
type_comment: None, type_comment: None,
range: 0..11,
}, },
), ),
] ]

File diff suppressed because it is too large Load diff

View file

@ -4,54 +4,54 @@ expression: parse_ast
--- ---
Subscript( Subscript(
ExprSubscript { ExprSubscript {
range: 0..8,
value: Name( value: Name(
ExprName { ExprName {
range: 0..1,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Load, ctx: Load,
range: 0..1,
}, },
), ),
slice: Slice( slice: Slice(
ExprSlice { ExprSlice {
range: 2..7,
lower: Some( lower: Some(
Constant( Constant(
ExprConstant { ExprConstant {
range: 2..3,
value: Int( value: Int(
1, 1,
), ),
kind: None, kind: None,
range: 2..3,
}, },
), ),
), ),
upper: Some( upper: Some(
Constant( Constant(
ExprConstant { ExprConstant {
range: 4..5,
value: Int( value: Int(
2, 2,
), ),
kind: None, kind: None,
range: 4..5,
}, },
), ),
), ),
step: Some( step: Some(
Constant( Constant(
ExprConstant { ExprConstant {
range: 6..7,
value: Int( value: Int(
3, 3,
), ),
kind: None, kind: None,
range: 6..7,
}, },
), ),
), ),
range: 2..7,
}, },
), ),
ctx: Load, ctx: Load,
range: 0..8,
}, },
) )

View file

@ -5,289 +5,289 @@ expression: parse_ast
[ [
Assign( Assign(
StmtAssign { StmtAssign {
range: 0..36,
targets: [ targets: [
Name( Name(
ExprName { ExprName {
range: 0..11,
id: Identifier( id: Identifier(
"array_slice", "array_slice",
), ),
ctx: Store, ctx: Store,
range: 0..11,
}, },
), ),
], ],
value: Subscript( value: Subscript(
ExprSubscript { ExprSubscript {
range: 14..36,
value: Name( value: Name(
ExprName { ExprName {
range: 14..19,
id: Identifier( id: Identifier(
"array", "array",
), ),
ctx: Load, ctx: Load,
range: 14..19,
}, },
), ),
slice: Tuple( slice: Tuple(
ExprTuple { ExprTuple {
range: 20..35,
elts: [ elts: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 20..21,
value: Int( value: Int(
0, 0,
), ),
kind: None, kind: None,
range: 20..21,
}, },
), ),
Starred( Starred(
ExprStarred { ExprStarred {
range: 23..31,
value: Name( value: Name(
ExprName { ExprName {
range: 24..31,
id: Identifier( id: Identifier(
"indexes", "indexes",
), ),
ctx: Load, ctx: Load,
range: 24..31,
}, },
), ),
ctx: Load, ctx: Load,
range: 23..31,
}, },
), ),
UnaryOp( UnaryOp(
ExprUnaryOp { ExprUnaryOp {
range: 33..35,
op: USub, op: USub,
operand: Constant( operand: Constant(
ExprConstant { ExprConstant {
range: 34..35,
value: Int( value: Int(
1, 1,
), ),
kind: None, kind: None,
range: 34..35,
}, },
), ),
range: 33..35,
}, },
), ),
], ],
ctx: Load, ctx: Load,
range: 20..35,
}, },
), ),
ctx: Load, ctx: Load,
range: 14..36,
}, },
), ),
type_comment: None, type_comment: None,
range: 0..36,
}, },
), ),
Assign( Assign(
StmtAssign { StmtAssign {
range: 37..73,
targets: [ targets: [
Subscript( Subscript(
ExprSubscript { ExprSubscript {
range: 37..59,
value: Name( value: Name(
ExprName { ExprName {
range: 37..42,
id: Identifier( id: Identifier(
"array", "array",
), ),
ctx: Load, ctx: Load,
range: 37..42,
}, },
), ),
slice: Tuple( slice: Tuple(
ExprTuple { ExprTuple {
range: 43..58,
elts: [ elts: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 43..44,
value: Int( value: Int(
0, 0,
), ),
kind: None, kind: None,
range: 43..44,
}, },
), ),
Starred( Starred(
ExprStarred { ExprStarred {
range: 46..54,
value: Name( value: Name(
ExprName { ExprName {
range: 47..54,
id: Identifier( id: Identifier(
"indexes", "indexes",
), ),
ctx: Load, ctx: Load,
range: 47..54,
}, },
), ),
ctx: Load, ctx: Load,
range: 46..54,
}, },
), ),
UnaryOp( UnaryOp(
ExprUnaryOp { ExprUnaryOp {
range: 56..58,
op: USub, op: USub,
operand: Constant( operand: Constant(
ExprConstant { ExprConstant {
range: 57..58,
value: Int( value: Int(
1, 1,
), ),
kind: None, kind: None,
range: 57..58,
}, },
), ),
range: 56..58,
}, },
), ),
], ],
ctx: Load, ctx: Load,
range: 43..58,
}, },
), ),
ctx: Store, ctx: Store,
range: 37..59,
}, },
), ),
], ],
value: Name( value: Name(
ExprName { ExprName {
range: 62..73,
id: Identifier( id: Identifier(
"array_slice", "array_slice",
), ),
ctx: Load, ctx: Load,
range: 62..73,
}, },
), ),
type_comment: None, type_comment: None,
range: 37..73,
}, },
), ),
Expr( Expr(
StmtExpr { StmtExpr {
range: 74..119,
value: Subscript( value: Subscript(
ExprSubscript { ExprSubscript {
range: 74..119,
value: Name( value: Name(
ExprName { ExprName {
range: 74..79,
id: Identifier( id: Identifier(
"array", "array",
), ),
ctx: Load, ctx: Load,
range: 74..79,
}, },
), ),
slice: Tuple( slice: Tuple(
ExprTuple { ExprTuple {
range: 80..118,
elts: [ elts: [
Starred( Starred(
ExprStarred { ExprStarred {
range: 80..98,
value: Name( value: Name(
ExprName { ExprName {
range: 81..98,
id: Identifier( id: Identifier(
"indexes_to_select", "indexes_to_select",
), ),
ctx: Load, ctx: Load,
range: 81..98,
}, },
), ),
ctx: Load, ctx: Load,
range: 80..98,
}, },
), ),
Starred( Starred(
ExprStarred { ExprStarred {
range: 100..118,
value: Name( value: Name(
ExprName { ExprName {
range: 101..118,
id: Identifier( id: Identifier(
"indexes_to_select", "indexes_to_select",
), ),
ctx: Load, ctx: Load,
range: 101..118,
}, },
), ),
ctx: Load, ctx: Load,
range: 100..118,
}, },
), ),
], ],
ctx: Load, ctx: Load,
range: 80..118,
}, },
), ),
ctx: Load, ctx: Load,
range: 74..119,
}, },
), ),
range: 74..119,
}, },
), ),
Expr( Expr(
StmtExpr { StmtExpr {
range: 120..150,
value: Subscript( value: Subscript(
ExprSubscript { ExprSubscript {
range: 120..150,
value: Name( value: Name(
ExprName { ExprName {
range: 120..125,
id: Identifier( id: Identifier(
"array", "array",
), ),
ctx: Load, ctx: Load,
range: 120..125,
}, },
), ),
slice: Tuple( slice: Tuple(
ExprTuple { ExprTuple {
range: 126..149,
elts: [ elts: [
Slice( Slice(
ExprSlice { ExprSlice {
range: 126..129,
lower: Some( lower: Some(
Constant( Constant(
ExprConstant { ExprConstant {
range: 126..127,
value: Int( value: Int(
3, 3,
), ),
kind: None, kind: None,
range: 126..127,
}, },
), ),
), ),
upper: Some( upper: Some(
Constant( Constant(
ExprConstant { ExprConstant {
range: 128..129,
value: Int( value: Int(
5, 5,
), ),
kind: None, kind: None,
range: 128..129,
}, },
), ),
), ),
step: None, step: None,
range: 126..129,
}, },
), ),
Starred( Starred(
ExprStarred { ExprStarred {
range: 131..149,
value: Name( value: Name(
ExprName { ExprName {
range: 132..149,
id: Identifier( id: Identifier(
"indexes_to_select", "indexes_to_select",
), ),
ctx: Load, ctx: Load,
range: 132..149,
}, },
), ),
ctx: Load, ctx: Load,
range: 131..149,
}, },
), ),
], ],
ctx: Load, ctx: Load,
range: 126..149,
}, },
), ),
ctx: Load, ctx: Load,
range: 120..150,
}, },
), ),
range: 120..150,
}, },
), ),
] ]

View file

@ -5,53 +5,55 @@ expression: parse_ast
[ [
Try( Try(
StmtTry { StmtTry {
range: 0..134,
body: [ body: [
Raise( Raise(
StmtRaise { StmtRaise {
range: 9..28,
exc: Some( exc: Some(
Call( Call(
ExprCall { ExprCall {
range: 15..28,
func: Name( func: Name(
ExprName { ExprName {
range: 15..25,
id: Identifier( id: Identifier(
"ValueError", "ValueError",
), ),
ctx: Load, ctx: Load,
range: 15..25,
}, },
), ),
args: [ args: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 26..27,
value: Int( value: Int(
1, 1,
), ),
kind: None, kind: None,
range: 26..27,
}, },
), ),
], ],
keywords: [], keywords: [],
range: 15..28,
}, },
), ),
), ),
cause: None, cause: None,
range: 9..28,
}, },
), ),
], ],
handlers: [ handlers: [
ExceptHandler( ExceptHandler(
ExcepthandlerExceptHandler { ExcepthandlerExceptHandler {
range: 29..82,
type_: Some( type_: Some(
Name( Name(
ExprName { ExprName {
range: 36..45,
id: Identifier( id: Identifier(
"TypeError", "TypeError",
), ),
ctx: Load, ctx: Load,
range: 36..45,
}, },
), ),
), ),
@ -63,91 +65,91 @@ expression: parse_ast
body: [ body: [
Expr( Expr(
StmtExpr { StmtExpr {
range: 56..82,
value: Call( value: Call(
ExprCall { ExprCall {
range: 56..82,
func: Name( func: Name(
ExprName { ExprName {
range: 56..61,
id: Identifier( id: Identifier(
"print", "print",
), ),
ctx: Load, ctx: Load,
range: 56..61,
}, },
), ),
args: [ args: [
JoinedStr( JoinedStr(
ExprJoinedStr { ExprJoinedStr {
range: 62..81,
values: [ values: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 62..81,
value: Str( value: Str(
"caught ", "caught ",
), ),
kind: None, kind: None,
range: 62..81,
}, },
), ),
FormattedValue( FormattedValue(
ExprFormattedValue { ExprFormattedValue {
range: 62..81,
value: Call( value: Call(
ExprCall { ExprCall {
range: 72..79,
func: Name( func: Name(
ExprName { ExprName {
range: 72..76,
id: Identifier( id: Identifier(
"type", "type",
), ),
ctx: Load, ctx: Load,
range: 72..76,
}, },
), ),
args: [ args: [
Name( Name(
ExprName { ExprName {
range: 77..78,
id: Identifier( id: Identifier(
"e", "e",
), ),
ctx: Load, ctx: Load,
range: 77..78,
}, },
), ),
], ],
keywords: [], keywords: [],
range: 72..79,
}, },
), ),
conversion: Int( conversion: Int(
0, 0,
), ),
format_spec: None, format_spec: None,
range: 62..81,
}, },
), ),
], ],
range: 62..81,
}, },
), ),
], ],
keywords: [], keywords: [],
range: 56..82,
}, },
), ),
range: 56..82,
}, },
), ),
], ],
range: 29..82,
}, },
), ),
ExceptHandler( ExceptHandler(
ExcepthandlerExceptHandler { ExcepthandlerExceptHandler {
range: 83..134,
type_: Some( type_: Some(
Name( Name(
ExprName { ExprName {
range: 90..97,
id: Identifier( id: Identifier(
"OSError", "OSError",
), ),
ctx: Load, ctx: Load,
range: 90..97,
}, },
), ),
), ),
@ -159,85 +161,83 @@ expression: parse_ast
body: [ body: [
Expr( Expr(
StmtExpr { StmtExpr {
range: 108..134,
value: Call( value: Call(
ExprCall { ExprCall {
range: 108..134,
func: Name( func: Name(
ExprName { ExprName {
range: 108..113,
id: Identifier( id: Identifier(
"print", "print",
), ),
ctx: Load, ctx: Load,
range: 108..113,
}, },
), ),
args: [ args: [
JoinedStr( JoinedStr(
ExprJoinedStr { ExprJoinedStr {
range: 114..133,
values: [ values: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 114..133,
value: Str( value: Str(
"caught ", "caught ",
), ),
kind: None, kind: None,
range: 114..133,
}, },
), ),
FormattedValue( FormattedValue(
ExprFormattedValue { ExprFormattedValue {
range: 114..133,
value: Call( value: Call(
ExprCall { ExprCall {
range: 124..131,
func: Name( func: Name(
ExprName { ExprName {
range: 124..128,
id: Identifier( id: Identifier(
"type", "type",
), ),
ctx: Load, ctx: Load,
range: 124..128,
}, },
), ),
args: [ args: [
Name( Name(
ExprName { ExprName {
range: 129..130,
id: Identifier( id: Identifier(
"e", "e",
), ),
ctx: Load, ctx: Load,
range: 129..130,
}, },
), ),
], ],
keywords: [], keywords: [],
range: 124..131,
}, },
), ),
conversion: Int( conversion: Int(
0, 0,
), ),
format_spec: None, format_spec: None,
range: 114..133,
}, },
), ),
], ],
range: 114..133,
}, },
), ),
], ],
keywords: [], keywords: [],
range: 108..134,
}, },
), ),
range: 108..134,
}, },
), ),
], ],
range: 83..134,
}, },
), ),
], ],
orelse: [], orelse: [],
finalbody: [], finalbody: [],
range: 0..134,
}, },
), ),
] ]

View file

@ -5,165 +5,167 @@ expression: parse_ast
[ [
TryStar( TryStar(
StmtTryStar { StmtTryStar {
range: 0..260,
body: [ body: [
Raise( Raise(
StmtRaise { StmtRaise {
range: 9..98,
exc: Some( exc: Some(
Call( Call(
ExprCall { ExprCall {
range: 15..98,
func: Name( func: Name(
ExprName { ExprName {
range: 15..29,
id: Identifier( id: Identifier(
"ExceptionGroup", "ExceptionGroup",
), ),
ctx: Load, ctx: Load,
range: 15..29,
}, },
), ),
args: [ args: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 30..34,
value: Str( value: Str(
"eg", "eg",
), ),
kind: None, kind: None,
range: 30..34,
}, },
), ),
List( List(
ExprList { ExprList {
range: 44..97,
elts: [ elts: [
Call( Call(
ExprCall { ExprCall {
range: 45..58,
func: Name( func: Name(
ExprName { ExprName {
range: 45..55,
id: Identifier( id: Identifier(
"ValueError", "ValueError",
), ),
ctx: Load, ctx: Load,
range: 45..55,
}, },
), ),
args: [ args: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 56..57,
value: Int( value: Int(
1, 1,
), ),
kind: None, kind: None,
range: 56..57,
}, },
), ),
], ],
keywords: [], keywords: [],
range: 45..58,
}, },
), ),
Call( Call(
ExprCall { ExprCall {
range: 60..72,
func: Name( func: Name(
ExprName { ExprName {
range: 60..69,
id: Identifier( id: Identifier(
"TypeError", "TypeError",
), ),
ctx: Load, ctx: Load,
range: 60..69,
}, },
), ),
args: [ args: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 70..71,
value: Int( value: Int(
2, 2,
), ),
kind: None, kind: None,
range: 70..71,
}, },
), ),
], ],
keywords: [], keywords: [],
range: 60..72,
}, },
), ),
Call( Call(
ExprCall { ExprCall {
range: 74..84,
func: Name( func: Name(
ExprName { ExprName {
range: 74..81,
id: Identifier( id: Identifier(
"OSError", "OSError",
), ),
ctx: Load, ctx: Load,
range: 74..81,
}, },
), ),
args: [ args: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 82..83,
value: Int( value: Int(
3, 3,
), ),
kind: None, kind: None,
range: 82..83,
}, },
), ),
], ],
keywords: [], keywords: [],
range: 74..84,
}, },
), ),
Call( Call(
ExprCall { ExprCall {
range: 86..96,
func: Name( func: Name(
ExprName { ExprName {
range: 86..93,
id: Identifier( id: Identifier(
"OSError", "OSError",
), ),
ctx: Load, ctx: Load,
range: 86..93,
}, },
), ),
args: [ args: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 94..95,
value: Int( value: Int(
4, 4,
), ),
kind: None, kind: None,
range: 94..95,
}, },
), ),
], ],
keywords: [], keywords: [],
range: 86..96,
}, },
), ),
], ],
ctx: Load, ctx: Load,
range: 44..97,
}, },
), ),
], ],
keywords: [], keywords: [],
range: 15..98,
}, },
), ),
), ),
cause: None, cause: None,
range: 9..98,
}, },
), ),
], ],
handlers: [ handlers: [
ExceptHandler( ExceptHandler(
ExcepthandlerExceptHandler { ExcepthandlerExceptHandler {
range: 99..180,
type_: Some( type_: Some(
Name( Name(
ExprName { ExprName {
range: 107..116,
id: Identifier( id: Identifier(
"TypeError", "TypeError",
), ),
ctx: Load, ctx: Load,
range: 107..116,
}, },
), ),
), ),
@ -175,127 +177,127 @@ expression: parse_ast
body: [ body: [
Expr( Expr(
StmtExpr { StmtExpr {
range: 127..180,
value: Call( value: Call(
ExprCall { ExprCall {
range: 127..180,
func: Name( func: Name(
ExprName { ExprName {
range: 127..132,
id: Identifier( id: Identifier(
"print", "print",
), ),
ctx: Load, ctx: Load,
range: 127..132,
}, },
), ),
args: [ args: [
JoinedStr( JoinedStr(
ExprJoinedStr { ExprJoinedStr {
range: 133..179,
values: [ values: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 133..179,
value: Str( value: Str(
"caught ", "caught ",
), ),
kind: None, kind: None,
range: 133..179,
}, },
), ),
FormattedValue( FormattedValue(
ExprFormattedValue { ExprFormattedValue {
range: 133..179,
value: Call( value: Call(
ExprCall { ExprCall {
range: 143..150,
func: Name( func: Name(
ExprName { ExprName {
range: 143..147,
id: Identifier( id: Identifier(
"type", "type",
), ),
ctx: Load, ctx: Load,
range: 143..147,
}, },
), ),
args: [ args: [
Name( Name(
ExprName { ExprName {
range: 148..149,
id: Identifier( id: Identifier(
"e", "e",
), ),
ctx: Load, ctx: Load,
range: 148..149,
}, },
), ),
], ],
keywords: [], keywords: [],
range: 143..150,
}, },
), ),
conversion: Int( conversion: Int(
0, 0,
), ),
format_spec: None, format_spec: None,
range: 133..179,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 133..179,
value: Str( value: Str(
" with nested ", " with nested ",
), ),
kind: None, kind: None,
range: 133..179,
}, },
), ),
FormattedValue( FormattedValue(
ExprFormattedValue { ExprFormattedValue {
range: 133..179,
value: Attribute( value: Attribute(
ExprAttribute { ExprAttribute {
range: 165..177,
value: Name( value: Name(
ExprName { ExprName {
range: 165..166,
id: Identifier( id: Identifier(
"e", "e",
), ),
ctx: Load, ctx: Load,
range: 165..166,
}, },
), ),
attr: Identifier( attr: Identifier(
"exceptions", "exceptions",
), ),
ctx: Load, ctx: Load,
range: 165..177,
}, },
), ),
conversion: Int( conversion: Int(
0, 0,
), ),
format_spec: None, format_spec: None,
range: 133..179,
}, },
), ),
], ],
range: 133..179,
}, },
), ),
], ],
keywords: [], keywords: [],
range: 127..180,
}, },
), ),
range: 127..180,
}, },
), ),
], ],
range: 99..180,
}, },
), ),
ExceptHandler( ExceptHandler(
ExcepthandlerExceptHandler { ExcepthandlerExceptHandler {
range: 181..260,
type_: Some( type_: Some(
Name( Name(
ExprName { ExprName {
range: 189..196,
id: Identifier( id: Identifier(
"OSError", "OSError",
), ),
ctx: Load, ctx: Load,
range: 189..196,
}, },
), ),
), ),
@ -307,121 +309,119 @@ expression: parse_ast
body: [ body: [
Expr( Expr(
StmtExpr { StmtExpr {
range: 207..260,
value: Call( value: Call(
ExprCall { ExprCall {
range: 207..260,
func: Name( func: Name(
ExprName { ExprName {
range: 207..212,
id: Identifier( id: Identifier(
"print", "print",
), ),
ctx: Load, ctx: Load,
range: 207..212,
}, },
), ),
args: [ args: [
JoinedStr( JoinedStr(
ExprJoinedStr { ExprJoinedStr {
range: 213..259,
values: [ values: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 213..259,
value: Str( value: Str(
"caught ", "caught ",
), ),
kind: None, kind: None,
range: 213..259,
}, },
), ),
FormattedValue( FormattedValue(
ExprFormattedValue { ExprFormattedValue {
range: 213..259,
value: Call( value: Call(
ExprCall { ExprCall {
range: 223..230,
func: Name( func: Name(
ExprName { ExprName {
range: 223..227,
id: Identifier( id: Identifier(
"type", "type",
), ),
ctx: Load, ctx: Load,
range: 223..227,
}, },
), ),
args: [ args: [
Name( Name(
ExprName { ExprName {
range: 228..229,
id: Identifier( id: Identifier(
"e", "e",
), ),
ctx: Load, ctx: Load,
range: 228..229,
}, },
), ),
], ],
keywords: [], keywords: [],
range: 223..230,
}, },
), ),
conversion: Int( conversion: Int(
0, 0,
), ),
format_spec: None, format_spec: None,
range: 213..259,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 213..259,
value: Str( value: Str(
" with nested ", " with nested ",
), ),
kind: None, kind: None,
range: 213..259,
}, },
), ),
FormattedValue( FormattedValue(
ExprFormattedValue { ExprFormattedValue {
range: 213..259,
value: Attribute( value: Attribute(
ExprAttribute { ExprAttribute {
range: 245..257,
value: Name( value: Name(
ExprName { ExprName {
range: 245..246,
id: Identifier( id: Identifier(
"e", "e",
), ),
ctx: Load, ctx: Load,
range: 245..246,
}, },
), ),
attr: Identifier( attr: Identifier(
"exceptions", "exceptions",
), ),
ctx: Load, ctx: Load,
range: 245..257,
}, },
), ),
conversion: Int( conversion: Int(
0, 0,
), ),
format_spec: None, format_spec: None,
range: 213..259,
}, },
), ),
], ],
range: 213..259,
}, },
), ),
], ],
keywords: [], keywords: [],
range: 207..260,
}, },
), ),
range: 207..260,
}, },
), ),
], ],
range: 181..260,
}, },
), ),
], ],
orelse: [], orelse: [],
finalbody: [], finalbody: [],
range: 0..260,
}, },
), ),
] ]

View file

@ -5,6 +5,7 @@ expression: parse_ast
[ [
FunctionDef( FunctionDef(
StmtFunctionDef { StmtFunctionDef {
range: 1..49,
name: Identifier( name: Identifier(
"args_to_tuple", "args_to_tuple",
), ),
@ -19,17 +20,17 @@ expression: parse_ast
annotation: Some( annotation: Some(
Starred( Starred(
ExprStarred { ExprStarred {
range: 26..29,
value: Name( value: Name(
ExprName { ExprName {
range: 27..29,
id: Identifier( id: Identifier(
"Ts", "Ts",
), ),
ctx: Load, ctx: Load,
range: 27..29,
}, },
), ),
ctx: Load, ctx: Load,
range: 26..29,
}, },
), ),
), ),
@ -46,14 +47,14 @@ expression: parse_ast
body: [ body: [
Expr( Expr(
StmtExpr { StmtExpr {
range: 46..49,
value: Constant( value: Constant(
ExprConstant { ExprConstant {
range: 46..49,
value: Ellipsis, value: Ellipsis,
kind: None, kind: None,
range: 46..49,
}, },
), ),
range: 46..49,
}, },
), ),
], ],
@ -61,37 +62,36 @@ expression: parse_ast
returns: Some( returns: Some(
Subscript( Subscript(
ExprSubscript { ExprSubscript {
range: 34..44,
value: Name( value: Name(
ExprName { ExprName {
range: 34..39,
id: Identifier( id: Identifier(
"Tuple", "Tuple",
), ),
ctx: Load, ctx: Load,
range: 34..39,
}, },
), ),
slice: Starred( slice: Starred(
ExprStarred { ExprStarred {
range: 40..43,
value: Name( value: Name(
ExprName { ExprName {
range: 41..43,
id: Identifier( id: Identifier(
"Ts", "Ts",
), ),
ctx: Load, ctx: Load,
range: 41..43,
}, },
), ),
ctx: Load, ctx: Load,
range: 40..43,
}, },
), ),
ctx: Load, ctx: Load,
range: 34..44,
}, },
), ),
), ),
type_comment: None, type_comment: None,
range: 1..49,
}, },
), ),
] ]

File diff suppressed because it is too large Load diff

View file

@ -5,16 +5,16 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..15,
value: Constant( value: Constant(
ExprConstant { ExprConstant {
range: 0..15,
value: Str( value: Str(
"\u{8}", "\u{8}",
), ),
kind: None, kind: None,
range: 0..15,
}, },
), ),
range: 0..15,
}, },
), ),
] ]

View file

@ -5,16 +5,16 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..9,
value: Constant( value: Constant(
ExprConstant { ExprConstant {
range: 0..9,
value: Str( value: Str(
"\u{7}", "\u{7}",
), ),
kind: None, kind: None,
range: 0..9,
}, },
), ),
range: 0..9,
}, },
), ),
] ]

View file

@ -5,16 +5,16 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..21,
value: Constant( value: Constant(
ExprConstant { ExprConstant {
range: 0..21,
value: Str( value: Str(
"\r", "\r",
), ),
kind: None, kind: None,
range: 0..21,
}, },
), ),
range: 0..21,
}, },
), ),
] ]

View file

@ -5,16 +5,16 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..45,
value: Constant( value: Constant(
ExprConstant { ExprConstant {
range: 0..45,
value: Str( value: Str(
"\u{89}", "\u{89}",
), ),
kind: None, kind: None,
range: 0..45,
}, },
), ),
range: 0..45,
}, },
), ),
] ]

View file

@ -5,16 +5,16 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..12,
value: Constant( value: Constant(
ExprConstant { ExprConstant {
range: 0..12,
value: Str( value: Str(
"\u{7f}", "\u{7f}",
), ),
kind: None, kind: None,
range: 0..12,
}, },
), ),
range: 0..12,
}, },
), ),
] ]

View file

@ -5,8 +5,10 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..738,
value: Constant( value: Constant(
ExprConstant { ExprConstant {
range: 0..738,
value: Bytes( value: Bytes(
[ [
0, 0,
@ -268,10 +270,8 @@ expression: parse_ast
], ],
), ),
kind: None, kind: None,
range: 0..738,
}, },
), ),
range: 0..738,
}, },
), ),
] ]

View file

@ -5,16 +5,16 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..12,
value: Constant( value: Constant(
ExprConstant { ExprConstant {
range: 0..12,
value: Str( value: Str(
"\u{1b}", "\u{1b}",
), ),
kind: None, kind: None,
range: 0..12,
}, },
), ),
range: 0..12,
}, },
), ),
] ]

View file

@ -5,8 +5,10 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..13,
value: Constant( value: Constant(
ExprConstant { ExprConstant {
range: 0..13,
value: Bytes( value: Bytes(
[ [
111, 111,
@ -22,10 +24,8 @@ expression: parse_ast
], ],
), ),
kind: None, kind: None,
range: 0..13,
}, },
), ),
range: 0..13,
}, },
), ),
] ]

View file

@ -5,8 +5,10 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..14,
value: Constant( value: Constant(
ExprConstant { ExprConstant {
range: 0..14,
value: Bytes( value: Bytes(
[ [
35, 35,
@ -17,10 +19,8 @@ expression: parse_ast
], ],
), ),
kind: None, kind: None,
range: 0..14,
}, },
), ),
range: 0..14,
}, },
), ),
] ]

View file

@ -5,16 +5,16 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..15,
value: Constant( value: Constant(
ExprConstant { ExprConstant {
range: 0..15,
value: Str( value: Str(
"\u{c}", "\u{c}",
), ),
kind: None, kind: None,
range: 0..15,
}, },
), ),
range: 0..15,
}, },
), ),
] ]

View file

@ -5,41 +5,41 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..8,
value: JoinedStr( value: JoinedStr(
ExprJoinedStr { ExprJoinedStr {
range: 0..8,
values: [ values: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 0..8,
value: Str( value: Str(
"\\", "\\",
), ),
kind: None, kind: None,
range: 0..8,
}, },
), ),
FormattedValue( FormattedValue(
ExprFormattedValue { ExprFormattedValue {
range: 0..8,
value: Name( value: Name(
ExprName { ExprName {
range: 5..6,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Load, ctx: Load,
range: 5..6,
}, },
), ),
conversion: Int( conversion: Int(
0, 0,
), ),
format_spec: None, format_spec: None,
range: 0..8,
}, },
), ),
], ],
range: 0..8,
}, },
), ),
range: 0..8,
}, },
), ),
] ]

View file

@ -5,41 +5,41 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..8,
value: JoinedStr( value: JoinedStr(
ExprJoinedStr { ExprJoinedStr {
range: 0..8,
values: [ values: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 0..8,
value: Str( value: Str(
"\n", "\n",
), ),
kind: None, kind: None,
range: 0..8,
}, },
), ),
FormattedValue( FormattedValue(
ExprFormattedValue { ExprFormattedValue {
range: 0..8,
value: Name( value: Name(
ExprName { ExprName {
range: 5..6,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Load, ctx: Load,
range: 5..6,
}, },
), ),
conversion: Int( conversion: Int(
0, 0,
), ),
format_spec: None, format_spec: None,
range: 0..8,
}, },
), ),
], ],
range: 0..8,
}, },
), ),
range: 0..8,
}, },
), ),
] ]

View file

@ -5,41 +5,41 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..9,
value: JoinedStr( value: JoinedStr(
ExprJoinedStr { ExprJoinedStr {
range: 0..9,
values: [ values: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 0..9,
value: Str( value: Str(
"\\\n", "\\\n",
), ),
kind: None, kind: None,
range: 0..9,
}, },
), ),
FormattedValue( FormattedValue(
ExprFormattedValue { ExprFormattedValue {
range: 0..9,
value: Name( value: Name(
ExprName { ExprName {
range: 6..7,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Load, ctx: Load,
range: 6..7,
}, },
), ),
conversion: Int( conversion: Int(
0, 0,
), ),
format_spec: None, format_spec: None,
range: 0..9,
}, },
), ),
], ],
range: 0..9,
}, },
), ),
range: 0..9,
}, },
), ),
] ]

View file

@ -5,38 +5,38 @@ expression: parse_ast
[ [
Constant( Constant(
ExprConstant { ExprConstant {
range: 0..10,
value: Str( value: Str(
"user=", "user=",
), ),
kind: None, kind: None,
range: 0..10,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 0..10,
value: Str( value: Str(
"", "",
), ),
kind: None, kind: None,
range: 0..10,
}, },
), ),
FormattedValue( FormattedValue(
ExprFormattedValue { ExprFormattedValue {
range: 0..10,
value: Name( value: Name(
ExprName { ExprName {
range: 3..7,
id: Identifier( id: Identifier(
"user", "user",
), ),
ctx: Load, ctx: Load,
range: 3..7,
}, },
), ),
conversion: Int( conversion: Int(
114, 114,
), ),
format_spec: None, format_spec: None,
range: 0..10,
}, },
), ),
] ]

View file

@ -5,92 +5,92 @@ expression: parse_ast
[ [
Constant( Constant(
ExprConstant { ExprConstant {
range: 0..38,
value: Str( value: Str(
"mix ", "mix ",
), ),
kind: None, kind: None,
range: 0..38,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 0..38,
value: Str( value: Str(
"user=", "user=",
), ),
kind: None, kind: None,
range: 0..38,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 0..38,
value: Str( value: Str(
"", "",
), ),
kind: None, kind: None,
range: 0..38,
}, },
), ),
FormattedValue( FormattedValue(
ExprFormattedValue { ExprFormattedValue {
range: 0..38,
value: Name( value: Name(
ExprName { ExprName {
range: 7..11,
id: Identifier( id: Identifier(
"user", "user",
), ),
ctx: Load, ctx: Load,
range: 7..11,
}, },
), ),
conversion: Int( conversion: Int(
114, 114,
), ),
format_spec: None, format_spec: None,
range: 0..38,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 0..38,
value: Str( value: Str(
" with text and ", " with text and ",
), ),
kind: None, kind: None,
range: 0..38,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 0..38,
value: Str( value: Str(
"second=", "second=",
), ),
kind: None, kind: None,
range: 0..38,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 0..38,
value: Str( value: Str(
"", "",
), ),
kind: None, kind: None,
range: 0..38,
}, },
), ),
FormattedValue( FormattedValue(
ExprFormattedValue { ExprFormattedValue {
range: 0..38,
value: Name( value: Name(
ExprName { ExprName {
range: 29..35,
id: Identifier( id: Identifier(
"second", "second",
), ),
ctx: Load, ctx: Load,
range: 29..35,
}, },
), ),
conversion: Int( conversion: Int(
114, 114,
), ),
format_spec: None, format_spec: None,
range: 0..38,
}, },
), ),
] ]

View file

@ -5,31 +5,32 @@ expression: parse_ast
[ [
Constant( Constant(
ExprConstant { ExprConstant {
range: 0..14,
value: Str( value: Str(
"user=", "user=",
), ),
kind: None, kind: None,
range: 0..14,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 0..14,
value: Str( value: Str(
"", "",
), ),
kind: None, kind: None,
range: 0..14,
}, },
), ),
FormattedValue( FormattedValue(
ExprFormattedValue { ExprFormattedValue {
range: 0..14,
value: Name( value: Name(
ExprName { ExprName {
range: 3..7,
id: Identifier( id: Identifier(
"user", "user",
), ),
ctx: Load, ctx: Load,
range: 3..7,
}, },
), ),
conversion: Int( conversion: Int(
@ -38,22 +39,21 @@ expression: parse_ast
format_spec: Some( format_spec: Some(
JoinedStr( JoinedStr(
ExprJoinedStr { ExprJoinedStr {
range: 0..14,
values: [ values: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 0..14,
value: Str( value: Str(
">10", ">10",
), ),
kind: None, kind: None,
range: 0..14,
}, },
), ),
], ],
range: 0..14,
}, },
), ),
), ),
range: 0..14,
}, },
), ),
] ]

View file

@ -5,41 +5,41 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..11,
value: JoinedStr( value: JoinedStr(
ExprJoinedStr { ExprJoinedStr {
range: 0..11,
values: [ values: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 0..11,
value: Str( value: Str(
"\n", "\n",
), ),
kind: None, kind: None,
range: 0..11,
}, },
), ),
FormattedValue( FormattedValue(
ExprFormattedValue { ExprFormattedValue {
range: 0..11,
value: Name( value: Name(
ExprName { ExprName {
range: 6..7,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Load, ctx: Load,
range: 6..7,
}, },
), ),
conversion: Int( conversion: Int(
0, 0,
), ),
format_spec: None, format_spec: None,
range: 0..11,
}, },
), ),
], ],
range: 0..11,
}, },
), ),
range: 0..11,
}, },
), ),
] ]

View file

@ -5,16 +5,16 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..9,
value: Constant( value: Constant(
ExprConstant { ExprConstant {
range: 0..9,
value: Str( value: Str(
"\u{88}", "\u{88}",
), ),
kind: None, kind: None,
range: 0..9,
}, },
), ),
range: 0..9,
}, },
), ),
] ]

View file

@ -5,23 +5,23 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..17,
value: JoinedStr( value: JoinedStr(
ExprJoinedStr { ExprJoinedStr {
range: 0..17,
values: [ values: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 0..17,
value: Str( value: Str(
"Hello world", "Hello world",
), ),
kind: None, kind: None,
range: 0..17,
}, },
), ),
], ],
range: 0..17,
}, },
), ),
range: 0..17,
}, },
), ),
] ]

View file

@ -5,23 +5,23 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..17,
value: JoinedStr( value: JoinedStr(
ExprJoinedStr { ExprJoinedStr {
range: 0..17,
values: [ values: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 0..17,
value: Str( value: Str(
"Hello world", "Hello world",
), ),
kind: None, kind: None,
range: 0..17,
}, },
), ),
], ],
range: 0..17,
}, },
), ),
range: 0..17,
}, },
), ),
] ]

View file

@ -5,41 +5,41 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..22,
value: JoinedStr( value: JoinedStr(
ExprJoinedStr { ExprJoinedStr {
range: 0..22,
values: [ values: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 0..22,
value: Str( value: Str(
"Hello world", "Hello world",
), ),
kind: None, kind: None,
range: 0..22,
}, },
), ),
FormattedValue( FormattedValue(
ExprFormattedValue { ExprFormattedValue {
range: 9..22,
value: Constant( value: Constant(
ExprConstant { ExprConstant {
range: 17..20,
value: Str( value: Str(
"!", "!",
), ),
kind: None, kind: None,
range: 17..20,
}, },
), ),
conversion: Int( conversion: Int(
0, 0,
), ),
format_spec: None, format_spec: None,
range: 9..22,
}, },
), ),
], ],
range: 0..22,
}, },
), ),
range: 0..22,
}, },
), ),
] ]

View file

@ -5,47 +5,47 @@ expression: parse_ast
[ [
FormattedValue( FormattedValue(
ExprFormattedValue { ExprFormattedValue {
range: 0..18,
value: Name( value: Name(
ExprName { ExprName {
range: 3..4,
id: Identifier( id: Identifier(
"a", "a",
), ),
ctx: Load, ctx: Load,
range: 3..4,
}, },
), ),
conversion: Int( conversion: Int(
0, 0,
), ),
format_spec: None, format_spec: None,
range: 0..18,
}, },
), ),
FormattedValue( FormattedValue(
ExprFormattedValue { ExprFormattedValue {
range: 0..18,
value: Name( value: Name(
ExprName { ExprName {
range: 7..8,
id: Identifier( id: Identifier(
"b", "b",
), ),
ctx: Load, ctx: Load,
range: 7..8,
}, },
), ),
conversion: Int( conversion: Int(
0, 0,
), ),
format_spec: None, format_spec: None,
range: 0..18,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 0..18,
value: Str( value: Str(
"{foo}", "{foo}",
), ),
kind: None, kind: None,
range: 0..18,
}, },
), ),
] ]

View file

@ -5,15 +5,17 @@ expression: parse_ast
[ [
FormattedValue( FormattedValue(
ExprFormattedValue { ExprFormattedValue {
range: 0..13,
value: Compare( value: Compare(
ExprCompare { ExprCompare {
range: 3..11,
left: Constant( left: Constant(
ExprConstant { ExprConstant {
range: 3..5,
value: Int( value: Int(
42, 42,
), ),
kind: None, kind: None,
range: 3..5,
}, },
), ),
ops: [ ops: [
@ -22,22 +24,20 @@ expression: parse_ast
comparators: [ comparators: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 9..11,
value: Int( value: Int(
42, 42,
), ),
kind: None, kind: None,
range: 9..11,
}, },
), ),
], ],
range: 3..11,
}, },
), ),
conversion: Int( conversion: Int(
0, 0,
), ),
format_spec: None, format_spec: None,
range: 0..13,
}, },
), ),
] ]

View file

@ -5,13 +5,14 @@ expression: parse_ast
[ [
FormattedValue( FormattedValue(
ExprFormattedValue { ExprFormattedValue {
range: 0..15,
value: Name( value: Name(
ExprName { ExprName {
range: 3..6,
id: Identifier( id: Identifier(
"foo", "foo",
), ),
ctx: Load, ctx: Load,
range: 3..6,
}, },
), ),
conversion: Int( conversion: Int(
@ -20,31 +21,30 @@ expression: parse_ast
format_spec: Some( format_spec: Some(
JoinedStr( JoinedStr(
ExprJoinedStr { ExprJoinedStr {
range: 0..15,
values: [ values: [
FormattedValue( FormattedValue(
ExprFormattedValue { ExprFormattedValue {
range: 0..15,
value: Name( value: Name(
ExprName { ExprName {
range: 8..12,
id: Identifier( id: Identifier(
"spec", "spec",
), ),
ctx: Load, ctx: Load,
range: 8..12,
}, },
), ),
conversion: Int( conversion: Int(
0, 0,
), ),
format_spec: None, format_spec: None,
range: 0..15,
}, },
), ),
], ],
range: 0..15,
}, },
), ),
), ),
range: 0..15,
}, },
), ),
] ]

View file

@ -5,15 +5,17 @@ expression: parse_ast
[ [
FormattedValue( FormattedValue(
ExprFormattedValue { ExprFormattedValue {
range: 0..11,
value: Compare( value: Compare(
ExprCompare { ExprCompare {
range: 3..9,
left: Constant( left: Constant(
ExprConstant { ExprConstant {
range: 3..4,
value: Int( value: Int(
1, 1,
), ),
kind: None, kind: None,
range: 3..4,
}, },
), ),
ops: [ ops: [
@ -22,22 +24,20 @@ expression: parse_ast
comparators: [ comparators: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 8..9,
value: Int( value: Int(
2, 2,
), ),
kind: None, kind: None,
range: 8..9,
}, },
), ),
], ],
range: 3..9,
}, },
), ),
conversion: Int( conversion: Int(
0, 0,
), ),
format_spec: None, format_spec: None,
range: 0..11,
}, },
), ),
] ]

View file

@ -5,13 +5,14 @@ expression: parse_ast
[ [
FormattedValue( FormattedValue(
ExprFormattedValue { ExprFormattedValue {
range: 0..13,
value: Name( value: Name(
ExprName { ExprName {
range: 3..6,
id: Identifier( id: Identifier(
"foo", "foo",
), ),
ctx: Load, ctx: Load,
range: 3..6,
}, },
), ),
conversion: Int( conversion: Int(
@ -20,22 +21,21 @@ expression: parse_ast
format_spec: Some( format_spec: Some(
JoinedStr( JoinedStr(
ExprJoinedStr { ExprJoinedStr {
range: 0..13,
values: [ values: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 0..13,
value: Str( value: Str(
"spec", "spec",
), ),
kind: None, kind: None,
range: 0..13,
}, },
), ),
], ],
range: 0..13,
}, },
), ),
), ),
range: 0..13,
}, },
), ),
] ]

View file

@ -5,38 +5,38 @@ expression: parse_ast
[ [
Constant( Constant(
ExprConstant { ExprConstant {
range: 0..10,
value: Str( value: Str(
"x =", "x =",
), ),
kind: None, kind: None,
range: 0..10,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 0..10,
value: Str( value: Str(
"", "",
), ),
kind: None, kind: None,
range: 0..10,
}, },
), ),
FormattedValue( FormattedValue(
ExprFormattedValue { ExprFormattedValue {
range: 0..10,
value: Name( value: Name(
ExprName { ExprName {
range: 3..4,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Load, ctx: Load,
range: 3..4,
}, },
), ),
conversion: Int( conversion: Int(
114, 114,
), ),
format_spec: None, format_spec: None,
range: 0..10,
}, },
), ),
] ]

View file

@ -5,38 +5,38 @@ expression: parse_ast
[ [
Constant( Constant(
ExprConstant { ExprConstant {
range: 0..10,
value: Str( value: Str(
"x=", "x=",
), ),
kind: None, kind: None,
range: 0..10,
}, },
), ),
Constant( Constant(
ExprConstant { ExprConstant {
range: 0..10,
value: Str( value: Str(
" ", " ",
), ),
kind: None, kind: None,
range: 0..10,
}, },
), ),
FormattedValue( FormattedValue(
ExprFormattedValue { ExprFormattedValue {
range: 0..10,
value: Name( value: Name(
ExprName { ExprName {
range: 3..4,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Load, ctx: Load,
range: 3..4,
}, },
), ),
conversion: Int( conversion: Int(
114, 114,
), ),
format_spec: None, format_spec: None,
range: 0..10,
}, },
), ),
] ]

View file

@ -5,17 +5,17 @@ expression: parse_ast
[ [
FormattedValue( FormattedValue(
ExprFormattedValue { ExprFormattedValue {
range: 0..10,
value: Yield( value: Yield(
ExprYield { ExprYield {
value: None,
range: 3..8, range: 3..8,
value: None,
}, },
), ),
conversion: Int( conversion: Int(
0, 0,
), ),
format_spec: None, format_spec: None,
range: 0..10,
}, },
), ),
] ]

View file

@ -5,16 +5,16 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..16,
value: Constant( value: Constant(
ExprConstant { ExprConstant {
range: 0..16,
value: Str( value: Str(
"Hello world", "Hello world",
), ),
kind: None, kind: None,
range: 0..16,
}, },
), ),
range: 0..16,
}, },
), ),
] ]

View file

@ -5,18 +5,18 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..20,
value: Constant( value: Constant(
ExprConstant { ExprConstant {
range: 0..20,
value: Str( value: Str(
"Hello, world!", "Hello, world!",
), ),
kind: Some( kind: Some(
"u", "u",
), ),
range: 0..20,
}, },
), ),
range: 0..20,
}, },
), ),
] ]

View file

@ -5,25 +5,25 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..18,
value: JoinedStr( value: JoinedStr(
ExprJoinedStr { ExprJoinedStr {
range: 0..18,
values: [ values: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 0..18,
value: Str( value: Str(
"Hello world", "Hello world",
), ),
kind: Some( kind: Some(
"u", "u",
), ),
range: 0..18,
}, },
), ),
], ],
range: 0..18,
}, },
), ),
range: 0..18,
}, },
), ),
] ]

View file

@ -5,25 +5,25 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..22,
value: JoinedStr( value: JoinedStr(
ExprJoinedStr { ExprJoinedStr {
range: 0..22,
values: [ values: [
Constant( Constant(
ExprConstant { ExprConstant {
range: 0..22,
value: Str( value: Str(
"Hello world!", "Hello world!",
), ),
kind: Some( kind: Some(
"u", "u",
), ),
range: 0..22,
}, },
), ),
], ],
range: 0..22,
}, },
), ),
range: 0..22,
}, },
), ),
] ]

View file

@ -5,16 +5,16 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..17,
value: Constant( value: Constant(
ExprConstant { ExprConstant {
range: 0..17,
value: Str( value: Str(
"Hello world", "Hello world",
), ),
kind: None, kind: None,
range: 0..17,
}, },
), ),
range: 0..17,
}, },
), ),
] ]

View file

@ -5,18 +5,18 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..17,
value: Constant( value: Constant(
ExprConstant { ExprConstant {
range: 0..17,
value: Str( value: Str(
"Hello world", "Hello world",
), ),
kind: Some( kind: Some(
"u", "u",
), ),
range: 0..17,
}, },
), ),
range: 0..17,
}, },
), ),
] ]

View file

@ -5,8 +5,10 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..8,
value: Constant( value: Constant(
ExprConstant { ExprConstant {
range: 0..8,
value: Bytes( value: Bytes(
[ [
92, 92,
@ -16,10 +18,8 @@ expression: parse_ast
], ],
), ),
kind: None, kind: None,
range: 0..8,
}, },
), ),
range: 0..8,
}, },
), ),
] ]

View file

@ -5,8 +5,10 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..6,
value: Constant( value: Constant(
ExprConstant { ExprConstant {
range: 0..6,
value: Bytes( value: Bytes(
[ [
92, 92,
@ -14,10 +16,8 @@ expression: parse_ast
], ],
), ),
kind: None, kind: None,
range: 0..6,
}, },
), ),
range: 0..6,
}, },
), ),
] ]

View file

@ -5,32 +5,32 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..7,
value: JoinedStr( value: JoinedStr(
ExprJoinedStr { ExprJoinedStr {
range: 0..7,
values: [ values: [
FormattedValue( FormattedValue(
ExprFormattedValue { ExprFormattedValue {
range: 0..7,
value: Name( value: Name(
ExprName { ExprName {
range: 4..5,
id: Identifier( id: Identifier(
"x", "x",
), ),
ctx: Load, ctx: Load,
range: 4..5,
}, },
), ),
conversion: Int( conversion: Int(
0, 0,
), ),
format_spec: None, format_spec: None,
range: 0..7,
}, },
), ),
], ],
range: 0..7,
}, },
), ),
range: 0..7,
}, },
), ),
] ]

View file

@ -5,8 +5,10 @@ expression: parse_ast
[ [
Expr( Expr(
StmtExpr { StmtExpr {
range: 0..738,
value: Constant( value: Constant(
ExprConstant { ExprConstant {
range: 0..738,
value: Bytes( value: Bytes(
[ [
0, 0,
@ -268,10 +270,8 @@ expression: parse_ast
], ],
), ),
kind: None, kind: None,
range: 0..738,
}, },
), ),
range: 0..738,
}, },
), ),
] ]

Some files were not shown because too many files have changed in this diff Show more