mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-19 02:55:20 +00:00
Split Constant
to individual literal nodes (#8064)
## Summary This PR splits the `Constant` enum as individual literal nodes. It introduces the following new nodes for each variant: * `ExprStringLiteral` * `ExprBytesLiteral` * `ExprNumberLiteral` * `ExprBooleanLiteral` * `ExprNoneLiteral` * `ExprEllipsisLiteral` The main motivation behind this refactor is to introduce the new AST node for implicit string concatenation in the coming PR. The elements of that node will be either a string literal, bytes literal or a f-string which can be implemented using an enum. This means that a string or bytes literal cannot be represented by `Constant::Str` / `Constant::Bytes` which creates an inconsistency. This PR avoids that inconsistency by splitting the constant nodes into it's own literal nodes, literal being the more appropriate naming convention from a static analysis tool perspective. This also makes working with literals in the linter and formatter much more ergonomic like, for example, if one would want to check if this is a string literal, it can be done easily using `Expr::is_string_literal_expr` or matching against `Expr::StringLiteral` as oppose to matching against the `ExprConstant` and enum `Constant`. A few AST helper methods can be simplified as well which will be done in a follow-up PR. This introduces a new `Expr::is_literal_expr` method which is the same as `Expr::is_constant_expr`. There are also intermediary changes related to implicit string concatenation which are quiet less. This is done so as to avoid having a huge PR which this already is. ## Test Plan 1. Verify and update all of the existing snapshots (parser, visitor) 2. Verify that the ecosystem check output remains **unchanged** for both the linter and formatter ### Formatter ecosystem check #### `main` | project | similarity index | total files | changed files | |----------------|------------------:|------------------:|------------------:| | cpython | 0.75803 | 1799 | 1647 | | django | 0.99983 | 2772 | 34 | | home-assistant | 0.99953 | 10596 | 186 | | poetry | 0.99891 | 317 | 17 | | transformers | 0.99966 | 2657 | 330 | | twine | 1.00000 | 33 | 0 | | typeshed | 0.99978 | 3669 | 20 | | warehouse | 0.99977 | 654 | 13 | | zulip | 0.99970 | 1459 | 22 | #### `dhruv/constant-to-literal` | project | similarity index | total files | changed files | |----------------|------------------:|------------------:|------------------:| | cpython | 0.75803 | 1799 | 1647 | | django | 0.99983 | 2772 | 34 | | home-assistant | 0.99953 | 10596 | 186 | | poetry | 0.99891 | 317 | 17 | | transformers | 0.99966 | 2657 | 330 | | twine | 1.00000 | 33 | 0 | | typeshed | 0.99978 | 3669 | 20 | | warehouse | 0.99977 | 654 | 13 | | zulip | 0.99970 | 1459 | 22 |
This commit is contained in:
parent
78bbf6d403
commit
230c9ce236
268 changed files with 6663 additions and 6741 deletions
|
@ -377,9 +377,9 @@ IpyHelpEndEscapeCommandStatement: ast::Stmt = {
|
|||
buffer.push_str(id.as_str());
|
||||
},
|
||||
ast::Expr::Subscript(ast::ExprSubscript { value, slice, range, .. }) => {
|
||||
let ast::Expr::Constant(ast::ExprConstant { value: ast::Constant::Int(integer), .. }) = slice.as_ref() else {
|
||||
let ast::Expr::NumberLiteral(ast::ExprNumberLiteral { value: ast::Number::Int(integer), .. }) = slice.as_ref() else {
|
||||
return Err(LexicalError {
|
||||
error: LexicalErrorType::OtherError("only integer constants are allowed in Subscript expressions in help end escape command".to_string()),
|
||||
error: LexicalErrorType::OtherError("only integer literals are allowed in Subscript expressions in help end escape command".to_string()),
|
||||
location: range.start(),
|
||||
});
|
||||
};
|
||||
|
@ -627,15 +627,15 @@ StarPattern: ast::Pattern = {
|
|||
}.into(),
|
||||
}
|
||||
|
||||
ConstantAtom: ast::ParenthesizedExpr = {
|
||||
<location:@L> <value:Constant> <end_location:@R> => ast::Expr::Constant(
|
||||
ast::ExprConstant { value, range: (location..end_location).into() }
|
||||
NumberAtom: ast::ParenthesizedExpr = {
|
||||
<location:@L> <value:Number> <end_location:@R> => ast::Expr::NumberLiteral(
|
||||
ast::ExprNumberLiteral { value, range: (location..end_location).into() }
|
||||
).into(),
|
||||
}
|
||||
|
||||
ConstantExpr: ast::ParenthesizedExpr = {
|
||||
ConstantAtom,
|
||||
<location:@L> "-" <operand:ConstantAtom> <end_location:@R> => ast::Expr::UnaryOp(
|
||||
NumberExpr: ast::ParenthesizedExpr = {
|
||||
NumberAtom,
|
||||
<location:@L> "-" <operand:NumberAtom> <end_location:@R> => ast::Expr::UnaryOp(
|
||||
ast::ExprUnaryOp {
|
||||
op: ast::UnaryOp::USub,
|
||||
operand: Box::new(operand.into()),
|
||||
|
@ -645,7 +645,7 @@ ConstantExpr: ast::ParenthesizedExpr = {
|
|||
}
|
||||
|
||||
AddOpExpr: ast::ParenthesizedExpr = {
|
||||
<location:@L> <left:ConstantExpr> <op:AddOp> <right:ConstantAtom> <end_location:@R> => ast::ExprBinOp {
|
||||
<location:@L> <left:NumberExpr> <op:AddOp> <right:NumberAtom> <end_location:@R> => ast::ExprBinOp {
|
||||
left: Box::new(left.into()),
|
||||
op,
|
||||
right: Box::new(right.into()),
|
||||
|
@ -666,7 +666,7 @@ LiteralPattern: ast::Pattern = {
|
|||
value: false.into(),
|
||||
range: (location..end_location).into()
|
||||
}.into(),
|
||||
<location:@L> <value:ConstantExpr> <end_location:@R> => ast::PatternMatchValue {
|
||||
<location:@L> <value:NumberExpr> <end_location:@R> => ast::PatternMatchValue {
|
||||
value: Box::new(value.into()),
|
||||
range: (location..end_location).into()
|
||||
}.into(),
|
||||
|
@ -718,18 +718,17 @@ ValuePattern: ast::Pattern = {
|
|||
|
||||
MappingKey: ast::Expr = {
|
||||
MatchNameOrAttr,
|
||||
<e:ConstantExpr> => e.into(),
|
||||
<e:NumberExpr> => e.into(),
|
||||
<e:AddOpExpr> => e.into(),
|
||||
<location:@L> "None" <end_location:@R> => ast::ExprConstant {
|
||||
value: ast::Constant::None,
|
||||
<location:@L> "None" <end_location:@R> => ast::ExprNoneLiteral {
|
||||
range: (location..end_location).into()
|
||||
}.into(),
|
||||
<location:@L> "True" <end_location:@R> => ast::ExprConstant {
|
||||
value: true.into(),
|
||||
<location:@L> "True" <end_location:@R> => ast::ExprBooleanLiteral {
|
||||
value: true,
|
||||
range: (location..end_location).into()
|
||||
}.into(),
|
||||
<location:@L> "False" <end_location:@R> => ast::ExprConstant {
|
||||
value: false.into(),
|
||||
<location:@L> "False" <end_location:@R> => ast::ExprBooleanLiteral {
|
||||
value: false,
|
||||
range: (location..end_location).into()
|
||||
}.into(),
|
||||
<location:@L> <strings:StringLiteralOrFString+> <end_location:@R> =>? Ok(concatenate_strings(strings, (location..end_location).into())?),
|
||||
|
@ -1684,7 +1683,7 @@ FStringConversion: (TextSize, ast::ConversionFlag) = {
|
|||
|
||||
Atom<Goal>: ast::ParenthesizedExpr = {
|
||||
<location:@L> <strings:StringLiteralOrFString+> <end_location:@R> =>? Ok(concatenate_strings(strings, (location..end_location).into())?.into()),
|
||||
<location:@L> <value:Constant> <end_location:@R> => ast::ExprConstant {
|
||||
<location:@L> <value:Number> <end_location:@R> => ast::ExprNumberLiteral {
|
||||
value,
|
||||
range: (location..end_location).into(),
|
||||
}.into(),
|
||||
|
@ -1776,10 +1775,10 @@ Atom<Goal>: ast::ParenthesizedExpr = {
|
|||
generators,
|
||||
range: (location..end_location).into(),
|
||||
}.into(),
|
||||
<location:@L> "True" <end_location:@R> => ast::ExprConstant { value: true.into(), range: (location..end_location).into() }.into(),
|
||||
<location:@L> "False" <end_location:@R> => ast::ExprConstant { value: false.into(), range: (location..end_location).into() }.into(),
|
||||
<location:@L> "None" <end_location:@R> => ast::ExprConstant { value: ast::Constant::None, range: (location..end_location).into() }.into(),
|
||||
<location:@L> "..." <end_location:@R> => ast::ExprConstant { value: ast::Constant::Ellipsis, range: (location..end_location).into() }.into(),
|
||||
<location:@L> "True" <end_location:@R> => ast::ExprBooleanLiteral { value: true, range: (location..end_location).into() }.into(),
|
||||
<location:@L> "False" <end_location:@R> => ast::ExprBooleanLiteral { value: false, range: (location..end_location).into() }.into(),
|
||||
<location:@L> "None" <end_location:@R> => ast::ExprNoneLiteral { range: (location..end_location).into() }.into(),
|
||||
<location:@L> "..." <end_location:@R> => ast::ExprEllipsisLiteral { range: (location..end_location).into() }.into(),
|
||||
};
|
||||
|
||||
ListLiteralValues: Vec<ast::ParenthesizedExpr> = {
|
||||
|
@ -1932,10 +1931,10 @@ TwoOrMore<T, Sep>: Vec<T> = {
|
|||
}
|
||||
};
|
||||
|
||||
Constant: ast::Constant = {
|
||||
<value:int> => ast::Constant::Int(value),
|
||||
<value:float> => ast::Constant::Float(value),
|
||||
<s:complex> => ast::Constant::Complex { real: s.0, imag: s.1 },
|
||||
Number: ast::Number = {
|
||||
<value:int> => ast::Number::Int(value),
|
||||
<value:float> => ast::Number::Float(value),
|
||||
<s:complex> => ast::Number::Complex { real: s.0, imag: s.1 },
|
||||
};
|
||||
|
||||
Identifier: ast::Identifier = {
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -21,8 +21,8 @@ expression: parse_ast
|
|||
},
|
||||
),
|
||||
value: Some(
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 9..10,
|
||||
value: Int(
|
||||
1,
|
||||
|
|
|
@ -29,24 +29,24 @@ expression: parse_ast
|
|||
ExprTuple {
|
||||
range: 6..15,
|
||||
elts: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 7..8,
|
||||
value: Int(
|
||||
1,
|
||||
),
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 10..11,
|
||||
value: Int(
|
||||
2,
|
||||
),
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 13..14,
|
||||
value: Int(
|
||||
3,
|
||||
|
|
|
@ -18,24 +18,24 @@ expression: parse_ast
|
|||
ExprTuple {
|
||||
range: 9..18,
|
||||
elts: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 10..11,
|
||||
value: Int(
|
||||
1,
|
||||
),
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 13..14,
|
||||
value: Int(
|
||||
2,
|
||||
),
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 16..17,
|
||||
value: Int(
|
||||
3,
|
||||
|
|
|
@ -34,24 +34,24 @@ expression: parse_ast
|
|||
ExprTuple {
|
||||
range: 9..18,
|
||||
elts: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 10..11,
|
||||
value: Int(
|
||||
1,
|
||||
),
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 13..14,
|
||||
value: Int(
|
||||
2,
|
||||
),
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 16..17,
|
||||
value: Int(
|
||||
3,
|
||||
|
|
|
@ -39,24 +39,24 @@ expression: parse_ast
|
|||
ExprTuple {
|
||||
range: 16..25,
|
||||
elts: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 17..18,
|
||||
value: Int(
|
||||
1,
|
||||
),
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 20..21,
|
||||
value: Int(
|
||||
2,
|
||||
),
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 23..24,
|
||||
value: Int(
|
||||
3,
|
||||
|
|
|
@ -19,24 +19,24 @@ expression: parse_ast
|
|||
ExprTuple {
|
||||
range: 4..13,
|
||||
elts: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 5..6,
|
||||
value: Int(
|
||||
1,
|
||||
),
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 8..9,
|
||||
value: Int(
|
||||
2,
|
||||
),
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 11..12,
|
||||
value: Int(
|
||||
3,
|
||||
|
|
|
@ -16,8 +16,8 @@ expression: parse_ast
|
|||
ctx: Store,
|
||||
},
|
||||
),
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 7..8,
|
||||
value: Int(
|
||||
1,
|
||||
|
|
|
@ -39,24 +39,24 @@ expression: parse_ast
|
|||
ExprTuple {
|
||||
range: 16..25,
|
||||
elts: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 17..18,
|
||||
value: Int(
|
||||
1,
|
||||
),
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 20..21,
|
||||
value: Int(
|
||||
2,
|
||||
),
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 23..24,
|
||||
value: Int(
|
||||
3,
|
||||
|
|
|
@ -40,24 +40,24 @@ expression: parse_ast
|
|||
ExprTuple {
|
||||
range: 10..19,
|
||||
elts: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 11..12,
|
||||
value: Int(
|
||||
1,
|
||||
),
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 14..15,
|
||||
value: Int(
|
||||
2,
|
||||
),
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 17..18,
|
||||
value: Int(
|
||||
3,
|
||||
|
|
|
@ -32,24 +32,24 @@ expression: parse_ast
|
|||
ExprTuple {
|
||||
range: 7..16,
|
||||
elts: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 8..9,
|
||||
value: Int(
|
||||
1,
|
||||
),
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 11..12,
|
||||
value: Int(
|
||||
2,
|
||||
),
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 14..15,
|
||||
value: Int(
|
||||
3,
|
||||
|
|
|
@ -34,24 +34,24 @@ expression: parse_ast
|
|||
ExprTuple {
|
||||
range: 9..18,
|
||||
elts: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 10..11,
|
||||
value: Int(
|
||||
1,
|
||||
),
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 13..14,
|
||||
value: Int(
|
||||
2,
|
||||
),
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 16..17,
|
||||
value: Int(
|
||||
3,
|
||||
|
|
|
@ -10,8 +10,8 @@ expression: parse_ast
|
|||
items: [
|
||||
WithItem {
|
||||
range: 5..11,
|
||||
context_expr: Constant(
|
||||
ExprConstant {
|
||||
context_expr: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 5..6,
|
||||
value: Int(
|
||||
1,
|
||||
|
|
|
@ -28,24 +28,24 @@ expression: parse_ast
|
|||
ExprTuple {
|
||||
range: 7..16,
|
||||
elts: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 8..9,
|
||||
value: Int(
|
||||
1,
|
||||
),
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 11..12,
|
||||
value: Int(
|
||||
2,
|
||||
),
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 14..15,
|
||||
value: Int(
|
||||
3,
|
||||
|
|
|
@ -14,8 +14,8 @@ expression: parse_ast
|
|||
},
|
||||
),
|
||||
op: Add,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 5..6,
|
||||
value: Int(
|
||||
1,
|
||||
|
|
|
@ -31,24 +31,24 @@ expression: parse_ast
|
|||
ExprTuple {
|
||||
range: 8..17,
|
||||
elts: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 9..10,
|
||||
value: Int(
|
||||
1,
|
||||
),
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 12..13,
|
||||
value: Int(
|
||||
2,
|
||||
),
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 15..16,
|
||||
value: Int(
|
||||
3,
|
||||
|
|
|
@ -43,8 +43,8 @@ Ok(
|
|||
annotation: None,
|
||||
},
|
||||
default: Some(
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 14..16,
|
||||
value: Int(
|
||||
20,
|
||||
|
@ -64,8 +64,8 @@ Ok(
|
|||
annotation: None,
|
||||
},
|
||||
default: Some(
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 20..22,
|
||||
value: Int(
|
||||
30,
|
||||
|
|
|
@ -80,8 +80,8 @@ Ok(
|
|||
annotation: None,
|
||||
},
|
||||
default: Some(
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 23..25,
|
||||
value: Int(
|
||||
20,
|
||||
|
@ -101,8 +101,8 @@ Ok(
|
|||
annotation: None,
|
||||
},
|
||||
default: Some(
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 29..31,
|
||||
value: Int(
|
||||
30,
|
||||
|
|
|
@ -89,8 +89,8 @@ Ok(
|
|||
annotation: None,
|
||||
},
|
||||
default: Some(
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 27..29,
|
||||
value: Int(
|
||||
20,
|
||||
|
@ -110,8 +110,8 @@ Ok(
|
|||
annotation: None,
|
||||
},
|
||||
default: Some(
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 33..35,
|
||||
value: Int(
|
||||
30,
|
||||
|
|
|
@ -89,8 +89,8 @@ Ok(
|
|||
annotation: None,
|
||||
},
|
||||
default: Some(
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 27..29,
|
||||
value: Int(
|
||||
20,
|
||||
|
@ -110,8 +110,8 @@ Ok(
|
|||
annotation: None,
|
||||
},
|
||||
default: Some(
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 33..35,
|
||||
value: Int(
|
||||
30,
|
||||
|
|
|
@ -41,8 +41,8 @@ Ok(
|
|||
annotation: None,
|
||||
},
|
||||
default: Some(
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 11..13,
|
||||
value: Int(
|
||||
20,
|
||||
|
@ -62,8 +62,8 @@ Ok(
|
|||
annotation: None,
|
||||
},
|
||||
default: Some(
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 17..19,
|
||||
value: Int(
|
||||
30,
|
||||
|
|
|
@ -57,8 +57,8 @@ Ok(
|
|||
kwarg: None,
|
||||
},
|
||||
),
|
||||
body: Constant(
|
||||
ExprConstant {
|
||||
body: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 19..20,
|
||||
value: Int(
|
||||
1,
|
||||
|
|
|
@ -40,8 +40,8 @@ Ok(
|
|||
annotation: None,
|
||||
},
|
||||
default: Some(
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 15..17,
|
||||
value: Int(
|
||||
20,
|
||||
|
@ -61,8 +61,8 @@ Ok(
|
|||
annotation: None,
|
||||
},
|
||||
default: Some(
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 21..23,
|
||||
value: Int(
|
||||
30,
|
||||
|
@ -75,8 +75,8 @@ Ok(
|
|||
kwarg: None,
|
||||
},
|
||||
),
|
||||
body: Constant(
|
||||
ExprConstant {
|
||||
body: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 25..26,
|
||||
value: Int(
|
||||
1,
|
||||
|
|
|
@ -11,8 +11,8 @@ Ok(
|
|||
ExprLambda {
|
||||
range: 0..9,
|
||||
parameters: None,
|
||||
body: Constant(
|
||||
ExprConstant {
|
||||
body: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 8..9,
|
||||
value: Int(
|
||||
1,
|
||||
|
|
|
@ -82,8 +82,8 @@ Ok(
|
|||
kwarg: None,
|
||||
},
|
||||
),
|
||||
body: Constant(
|
||||
ExprConstant {
|
||||
body: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 25..26,
|
||||
value: Int(
|
||||
0,
|
||||
|
|
|
@ -57,8 +57,8 @@ Ok(
|
|||
kwarg: None,
|
||||
},
|
||||
),
|
||||
body: Constant(
|
||||
ExprConstant {
|
||||
body: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 16..17,
|
||||
value: Int(
|
||||
1,
|
||||
|
|
|
@ -38,8 +38,8 @@ Ok(
|
|||
annotation: None,
|
||||
},
|
||||
default: Some(
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 12..14,
|
||||
value: Int(
|
||||
20,
|
||||
|
@ -59,8 +59,8 @@ Ok(
|
|||
annotation: None,
|
||||
},
|
||||
default: Some(
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 18..20,
|
||||
value: Int(
|
||||
30,
|
||||
|
@ -75,8 +75,8 @@ Ok(
|
|||
kwarg: None,
|
||||
},
|
||||
),
|
||||
body: Constant(
|
||||
ExprConstant {
|
||||
body: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 22..23,
|
||||
value: Int(
|
||||
1,
|
||||
|
|
|
@ -7,46 +7,34 @@ Dict(
|
|||
range: 0..25,
|
||||
keys: [
|
||||
Some(
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 1..4,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "a",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "a",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
),
|
||||
None,
|
||||
Some(
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 16..19,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "d",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "d",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
),
|
||||
],
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 6..9,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "b",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "b",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
Name(
|
||||
|
@ -56,16 +44,12 @@ Dict(
|
|||
ctx: Load,
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 21..24,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "e",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "e",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
|
@ -13,16 +13,12 @@ expression: parse_ast
|
|||
FormattedValue(
|
||||
ExprFormattedValue {
|
||||
range: 2..8,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 3..7,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: " f",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: " f",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
debug_text: None,
|
||||
|
@ -78,8 +74,8 @@ expression: parse_ast
|
|||
ExprTuple {
|
||||
range: 24..26,
|
||||
elts: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 24..25,
|
||||
value: Int(
|
||||
3,
|
||||
|
@ -114,8 +110,8 @@ expression: parse_ast
|
|||
value: Compare(
|
||||
ExprCompare {
|
||||
range: 32..36,
|
||||
left: Constant(
|
||||
ExprConstant {
|
||||
left: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 32..33,
|
||||
value: Int(
|
||||
3,
|
||||
|
@ -126,8 +122,8 @@ expression: parse_ast
|
|||
NotEq,
|
||||
],
|
||||
comparators: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 35..36,
|
||||
value: Int(
|
||||
4,
|
||||
|
@ -166,8 +162,8 @@ expression: parse_ast
|
|||
FormattedValue(
|
||||
ExprFormattedValue {
|
||||
range: 42..54,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 43..44,
|
||||
value: Int(
|
||||
3,
|
||||
|
@ -184,16 +180,12 @@ expression: parse_ast
|
|||
FormattedValue(
|
||||
ExprFormattedValue {
|
||||
range: 45..50,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 46..49,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "}",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "}",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
debug_text: None,
|
||||
|
@ -201,16 +193,12 @@ expression: parse_ast
|
|||
format_spec: None,
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 50..53,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: ">10",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: ">10",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -236,8 +224,8 @@ expression: parse_ast
|
|||
FormattedValue(
|
||||
ExprFormattedValue {
|
||||
range: 58..70,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 59..60,
|
||||
value: Int(
|
||||
3,
|
||||
|
@ -254,16 +242,12 @@ expression: parse_ast
|
|||
FormattedValue(
|
||||
ExprFormattedValue {
|
||||
range: 61..66,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 62..65,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "{",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "{",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
debug_text: None,
|
||||
|
@ -271,16 +255,12 @@ expression: parse_ast
|
|||
format_spec: None,
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 66..69,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: ">10",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: ">10",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -358,16 +338,12 @@ expression: parse_ast
|
|||
ExprFString {
|
||||
range: 100..105,
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 100..105,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: ".3f ",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: ".3f ",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -430,16 +406,16 @@ expression: parse_ast
|
|||
ExprTuple {
|
||||
range: 132..136,
|
||||
elts: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 132..133,
|
||||
value: Int(
|
||||
1,
|
||||
),
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 135..136,
|
||||
value: Int(
|
||||
2,
|
||||
|
@ -483,8 +459,8 @@ expression: parse_ast
|
|||
FormattedValue(
|
||||
ExprFormattedValue {
|
||||
range: 149..162,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 150..156,
|
||||
value: Float(
|
||||
3.1415,
|
||||
|
@ -503,16 +479,12 @@ expression: parse_ast
|
|||
ExprFString {
|
||||
range: 158..161,
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 158..161,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: ".1f",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: ".1f",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -533,16 +505,12 @@ expression: parse_ast
|
|||
ExprFString {
|
||||
range: 164..168,
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 164..168,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "*^20",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "*^20",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -570,16 +538,12 @@ expression: parse_ast
|
|||
ExprFString {
|
||||
range: 173..201,
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 174..186,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "foo bar ",
|
||||
unicode: false,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
value: "foo bar ",
|
||||
unicode: false,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
FormattedValue(
|
||||
|
@ -610,16 +574,12 @@ expression: parse_ast
|
|||
format_spec: None,
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 193..200,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: " baz",
|
||||
unicode: false,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
value: " baz",
|
||||
unicode: false,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -629,8 +589,8 @@ expression: parse_ast
|
|||
),
|
||||
],
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 203..205,
|
||||
value: Int(
|
||||
10,
|
||||
|
@ -658,16 +618,12 @@ expression: parse_ast
|
|||
pattern: MatchValue(
|
||||
PatternMatchValue {
|
||||
range: 227..232,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 227..232,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "one",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "one",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
@ -686,16 +642,12 @@ expression: parse_ast
|
|||
pattern: MatchValue(
|
||||
PatternMatchValue {
|
||||
range: 256..284,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 256..284,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "implicitly concatenated",
|
||||
unicode: false,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
value: "implicitly concatenated",
|
||||
unicode: false,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
@ -719,16 +671,12 @@ expression: parse_ast
|
|||
ExprFString {
|
||||
range: 300..317,
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 302..303,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "\\",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "\\",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
FormattedValue(
|
||||
|
@ -746,16 +694,12 @@ expression: parse_ast
|
|||
format_spec: None,
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 308..309,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "\\",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "\\",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
FormattedValue(
|
||||
|
@ -775,16 +719,12 @@ expression: parse_ast
|
|||
ExprFString {
|
||||
range: 314..315,
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 314..315,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "\\",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "\\",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -807,16 +747,12 @@ expression: parse_ast
|
|||
ExprFString {
|
||||
range: 318..332,
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 320..331,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "\\{foo\\}",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "\\{foo\\}",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -849,16 +785,12 @@ expression: parse_ast
|
|||
ExprFString {
|
||||
range: 347..369,
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 347..369,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "x\n y\n z\n",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "x\n y\n z\n",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
|
@ -10,16 +10,12 @@ expression: parse_ast
|
|||
ExprFString {
|
||||
range: 0..29,
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 2..5,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "foo",
|
||||
unicode: true,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
value: "foo",
|
||||
unicode: true,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
FormattedValue(
|
||||
|
@ -37,16 +33,12 @@ expression: parse_ast
|
|||
format_spec: None,
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 17..28,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "baz some",
|
||||
unicode: false,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
value: "baz some",
|
||||
unicode: false,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -62,16 +54,12 @@ expression: parse_ast
|
|||
ExprFString {
|
||||
range: 30..59,
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 31..34,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "foo",
|
||||
unicode: false,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
value: "foo",
|
||||
unicode: false,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
FormattedValue(
|
||||
|
@ -89,16 +77,12 @@ expression: parse_ast
|
|||
format_spec: None,
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 47..58,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "baz some",
|
||||
unicode: true,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
value: "baz some",
|
||||
unicode: true,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -114,16 +98,12 @@ expression: parse_ast
|
|||
ExprFString {
|
||||
range: 60..89,
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 61..64,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "foo",
|
||||
unicode: false,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
value: "foo",
|
||||
unicode: false,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
FormattedValue(
|
||||
|
@ -141,16 +121,12 @@ expression: parse_ast
|
|||
format_spec: None,
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 76..88,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "baz some",
|
||||
unicode: false,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
value: "baz some",
|
||||
unicode: false,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -166,16 +142,12 @@ expression: parse_ast
|
|||
ExprFString {
|
||||
range: 90..128,
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 92..103,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "foobar ",
|
||||
unicode: true,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
value: "foobar ",
|
||||
unicode: true,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
FormattedValue(
|
||||
|
@ -193,16 +165,12 @@ expression: parse_ast
|
|||
format_spec: None,
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 108..127,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: " reallybarno",
|
||||
unicode: false,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
value: " reallybarno",
|
||||
unicode: false,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
|
@ -8,16 +8,12 @@ Call(
|
|||
func: Attribute(
|
||||
ExprAttribute {
|
||||
range: 0..8,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 0..3,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: " ",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: " ",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
attr: Identifier {
|
||||
|
@ -67,16 +63,12 @@ Call(
|
|||
body: BinOp(
|
||||
ExprBinOp {
|
||||
range: 43..61,
|
||||
left: Constant(
|
||||
ExprConstant {
|
||||
left: StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 43..53,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "LIMIT %d",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "LIMIT %d",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
op: Mod,
|
||||
|
@ -89,10 +81,9 @@ Call(
|
|||
),
|
||||
},
|
||||
),
|
||||
orelse: Constant(
|
||||
ExprConstant {
|
||||
orelse: NoneLiteral(
|
||||
ExprNoneLiteral {
|
||||
range: 76..80,
|
||||
value: None,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
@ -110,16 +101,12 @@ Call(
|
|||
body: BinOp(
|
||||
ExprBinOp {
|
||||
range: 91..111,
|
||||
left: Constant(
|
||||
ExprConstant {
|
||||
left: StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 91..102,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "OFFSET %d",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "OFFSET %d",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
op: Mod,
|
||||
|
@ -132,10 +119,9 @@ Call(
|
|||
),
|
||||
},
|
||||
),
|
||||
orelse: Constant(
|
||||
ExprConstant {
|
||||
orelse: NoneLiteral(
|
||||
ExprNoneLiteral {
|
||||
range: 128..132,
|
||||
value: None,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
|
|
@ -221,8 +221,8 @@ Module(
|
|||
arguments: Arguments {
|
||||
range: 725..728,
|
||||
args: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 726..727,
|
||||
value: Int(
|
||||
5,
|
||||
|
|
|
@ -11,23 +11,19 @@ expression: parse_ast
|
|||
range: 7..18,
|
||||
keys: [
|
||||
Some(
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 8..14,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "test",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "test",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
),
|
||||
],
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 16..17,
|
||||
value: Int(
|
||||
1,
|
||||
|
@ -98,31 +94,23 @@ expression: parse_ast
|
|||
range: 80..97,
|
||||
keys: [
|
||||
Some(
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 81..88,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "label",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "label",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
),
|
||||
],
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 90..96,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "test",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "test",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -135,16 +123,12 @@ expression: parse_ast
|
|||
PatternMatchMapping {
|
||||
range: 108..155,
|
||||
keys: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 118..125,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "label",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "label",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -253,8 +237,8 @@ expression: parse_ast
|
|||
MatchValue(
|
||||
PatternMatchValue {
|
||||
range: 197..198,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 197..198,
|
||||
value: Int(
|
||||
0,
|
||||
|
@ -266,8 +250,8 @@ expression: parse_ast
|
|||
MatchValue(
|
||||
PatternMatchValue {
|
||||
range: 200..201,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 200..201,
|
||||
value: Int(
|
||||
1,
|
||||
|
@ -293,8 +277,8 @@ expression: parse_ast
|
|||
},
|
||||
),
|
||||
],
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 217..218,
|
||||
value: Int(
|
||||
0,
|
||||
|
@ -328,8 +312,8 @@ expression: parse_ast
|
|||
MatchValue(
|
||||
PatternMatchValue {
|
||||
range: 238..239,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 238..239,
|
||||
value: Int(
|
||||
0,
|
||||
|
@ -341,8 +325,8 @@ expression: parse_ast
|
|||
MatchValue(
|
||||
PatternMatchValue {
|
||||
range: 241..242,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 241..242,
|
||||
value: Int(
|
||||
1,
|
||||
|
@ -368,8 +352,8 @@ expression: parse_ast
|
|||
},
|
||||
),
|
||||
],
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 258..259,
|
||||
value: Int(
|
||||
0,
|
||||
|
@ -403,8 +387,8 @@ expression: parse_ast
|
|||
MatchValue(
|
||||
PatternMatchValue {
|
||||
range: 279..280,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 279..280,
|
||||
value: Int(
|
||||
0,
|
||||
|
@ -430,8 +414,8 @@ expression: parse_ast
|
|||
},
|
||||
),
|
||||
],
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 296..297,
|
||||
value: Int(
|
||||
0,
|
||||
|
|
|
@ -627,8 +627,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
ctx: Store,
|
||||
},
|
||||
),
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 520..521,
|
||||
value: Int(
|
||||
1,
|
||||
|
@ -663,8 +663,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
pattern: MatchValue(
|
||||
PatternMatchValue {
|
||||
range: 550..551,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 550..551,
|
||||
value: Int(
|
||||
1,
|
||||
|
@ -687,8 +687,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
pattern: MatchValue(
|
||||
PatternMatchValue {
|
||||
range: 567..568,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 567..568,
|
||||
value: Int(
|
||||
2,
|
||||
|
@ -804,8 +804,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
arguments: Arguments {
|
||||
range: 631..635,
|
||||
args: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 632..634,
|
||||
value: Int(
|
||||
12,
|
||||
|
|
|
@ -15,8 +15,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 4..13,
|
||||
value: Int(
|
||||
123456789,
|
||||
|
@ -37,8 +37,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 18..24,
|
||||
value: Int(
|
||||
123456,
|
||||
|
@ -59,8 +59,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 29..31,
|
||||
value: Float(
|
||||
0.1,
|
||||
|
@ -81,8 +81,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 36..38,
|
||||
value: Float(
|
||||
1.0,
|
||||
|
@ -103,8 +103,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 43..47,
|
||||
value: Float(
|
||||
10.0,
|
||||
|
@ -125,8 +125,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 52..56,
|
||||
value: Float(
|
||||
0.1,
|
||||
|
@ -147,8 +147,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 61..73,
|
||||
value: Float(
|
||||
1.00000001,
|
||||
|
@ -169,8 +169,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 78..97,
|
||||
value: Float(
|
||||
123456789.12345679,
|
||||
|
@ -191,8 +191,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 102..131,
|
||||
value: Float(
|
||||
inf,
|
||||
|
@ -213,8 +213,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 136..155,
|
||||
value: Float(
|
||||
inf,
|
||||
|
@ -235,8 +235,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 160..170,
|
||||
value: Complex {
|
||||
real: 0.0,
|
||||
|
@ -258,8 +258,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 175..195,
|
||||
value: Complex {
|
||||
real: 0.0,
|
||||
|
@ -281,8 +281,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 200..207,
|
||||
value: Int(
|
||||
727756,
|
||||
|
@ -303,8 +303,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 212..218,
|
||||
value: Int(
|
||||
11,
|
||||
|
@ -325,8 +325,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 223..228,
|
||||
value: Int(
|
||||
511,
|
||||
|
@ -347,8 +347,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 233..244,
|
||||
value: Float(
|
||||
6e-9,
|
||||
|
@ -369,8 +369,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 249..254,
|
||||
value: Int(
|
||||
10000,
|
||||
|
@ -391,8 +391,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 259..265,
|
||||
value: Int(
|
||||
133333,
|
||||
|
|
|
@ -21,8 +21,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
func: Attribute(
|
||||
ExprAttribute {
|
||||
range: 4..17,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 4..6,
|
||||
value: Float(
|
||||
0.1,
|
||||
|
@ -60,8 +60,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
value: Attribute(
|
||||
ExprAttribute {
|
||||
range: 24..32,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 24..26,
|
||||
value: Float(
|
||||
1.0,
|
||||
|
@ -92,8 +92,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
value: Attribute(
|
||||
ExprAttribute {
|
||||
range: 37..46,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 37..41,
|
||||
value: Float(
|
||||
10.0,
|
||||
|
@ -124,8 +124,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
value: Attribute(
|
||||
ExprAttribute {
|
||||
range: 51..60,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 51..55,
|
||||
value: Float(
|
||||
0.1,
|
||||
|
@ -159,8 +159,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
func: Attribute(
|
||||
ExprAttribute {
|
||||
range: 65..88,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 65..84,
|
||||
value: Float(
|
||||
123456789.12345679,
|
||||
|
@ -198,8 +198,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
value: Attribute(
|
||||
ExprAttribute {
|
||||
range: 95..130,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 95..124,
|
||||
value: Float(
|
||||
inf,
|
||||
|
@ -233,8 +233,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
func: Attribute(
|
||||
ExprAttribute {
|
||||
range: 135..165,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 135..154,
|
||||
value: Float(
|
||||
inf,
|
||||
|
@ -272,8 +272,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
value: Attribute(
|
||||
ExprAttribute {
|
||||
range: 172..187,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 172..182,
|
||||
value: Complex {
|
||||
real: 0.0,
|
||||
|
@ -308,8 +308,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
func: Attribute(
|
||||
ExprAttribute {
|
||||
range: 192..220,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 192..212,
|
||||
value: Complex {
|
||||
real: 0.0,
|
||||
|
@ -333,8 +333,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
func: Attribute(
|
||||
ExprAttribute {
|
||||
range: 221..238,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 221..227,
|
||||
value: Int(
|
||||
11,
|
||||
|
@ -380,8 +380,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
func: Attribute(
|
||||
ExprAttribute {
|
||||
range: 246..263,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 246..253,
|
||||
value: Int(
|
||||
727756,
|
||||
|
@ -422,8 +422,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
func: Attribute(
|
||||
ExprAttribute {
|
||||
range: 270..287,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 270..276,
|
||||
value: Int(
|
||||
11,
|
||||
|
@ -461,8 +461,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
value: Attribute(
|
||||
ExprAttribute {
|
||||
range: 294..305,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 294..299,
|
||||
value: Int(
|
||||
511,
|
||||
|
@ -496,8 +496,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
func: Attribute(
|
||||
ExprAttribute {
|
||||
range: 310..327,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 310..321,
|
||||
value: Float(
|
||||
6e-9,
|
||||
|
@ -536,8 +536,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
ExprUnaryOp {
|
||||
range: 334..344,
|
||||
op: USub,
|
||||
operand: Constant(
|
||||
ExprConstant {
|
||||
operand: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 335..344,
|
||||
value: Complex {
|
||||
real: 0.0,
|
||||
|
@ -555,8 +555,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
test: Attribute(
|
||||
ExprAttribute {
|
||||
range: 349..357,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 349..351,
|
||||
value: Int(
|
||||
10,
|
||||
|
@ -574,10 +574,9 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 363..366,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: EllipsisLiteral(
|
||||
ExprEllipsisLiteral {
|
||||
range: 363..366,
|
||||
value: Ellipsis,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
@ -601,8 +600,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
value: Subscript(
|
||||
ExprSubscript {
|
||||
range: 372..379,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 372..375,
|
||||
value: Int(
|
||||
100,
|
||||
|
@ -636,8 +635,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
value: Call(
|
||||
ExprCall {
|
||||
range: 384..391,
|
||||
func: Constant(
|
||||
ExprConstant {
|
||||
func: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 384..387,
|
||||
value: Int(
|
||||
100,
|
||||
|
|
|
@ -319,8 +319,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
ctx: Store,
|
||||
},
|
||||
),
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 169..170,
|
||||
value: Int(
|
||||
0,
|
||||
|
@ -358,8 +358,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
ctx: Store,
|
||||
},
|
||||
),
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 189..190,
|
||||
value: Int(
|
||||
0,
|
||||
|
@ -431,8 +431,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
ctx: Store,
|
||||
},
|
||||
),
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 232..233,
|
||||
value: Int(
|
||||
0,
|
||||
|
@ -489,8 +489,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
ctx: Store,
|
||||
},
|
||||
),
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 262..263,
|
||||
value: Int(
|
||||
0,
|
||||
|
@ -539,8 +539,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
ctx: Store,
|
||||
},
|
||||
),
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 287..288,
|
||||
value: Int(
|
||||
0,
|
||||
|
|
|
@ -113,16 +113,12 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
annotation: None,
|
||||
},
|
||||
default: Some(
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 80..89,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "default",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "default",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
),
|
||||
|
|
|
@ -39,10 +39,9 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 26..29,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: EllipsisLiteral(
|
||||
ExprEllipsisLiteral {
|
||||
range: 26..29,
|
||||
value: Ellipsis,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
@ -94,10 +93,9 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 73..76,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: EllipsisLiteral(
|
||||
ExprEllipsisLiteral {
|
||||
range: 73..76,
|
||||
value: Ellipsis,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
@ -164,10 +162,9 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 135..138,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: EllipsisLiteral(
|
||||
ExprEllipsisLiteral {
|
||||
range: 135..138,
|
||||
value: Ellipsis,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
@ -221,10 +218,9 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 178..181,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: EllipsisLiteral(
|
||||
ExprEllipsisLiteral {
|
||||
range: 178..181,
|
||||
value: Ellipsis,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
@ -278,10 +274,9 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 220..223,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: EllipsisLiteral(
|
||||
ExprEllipsisLiteral {
|
||||
range: 220..223,
|
||||
value: Ellipsis,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
@ -324,10 +319,9 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 258..261,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: EllipsisLiteral(
|
||||
ExprEllipsisLiteral {
|
||||
range: 258..261,
|
||||
value: Ellipsis,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
@ -370,10 +364,9 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 293..296,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: EllipsisLiteral(
|
||||
ExprEllipsisLiteral {
|
||||
range: 293..296,
|
||||
value: Ellipsis,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
|
|
@ -78,8 +78,8 @@ ListComp(
|
|||
Lt,
|
||||
],
|
||||
comparators: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 36..37,
|
||||
value: Int(
|
||||
5,
|
||||
|
@ -103,8 +103,8 @@ ListComp(
|
|||
Gt,
|
||||
],
|
||||
comparators: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 45..47,
|
||||
value: Int(
|
||||
10,
|
||||
|
|
|
@ -10,16 +10,12 @@ expression: parse_ast
|
|||
ExprFString {
|
||||
range: 0..14,
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 2..13,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "Hello world",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "Hello world",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
|
@ -39,10 +39,9 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 17..20,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: EllipsisLiteral(
|
||||
ExprEllipsisLiteral {
|
||||
range: 17..20,
|
||||
value: Ellipsis,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
@ -118,10 +117,9 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 50..53,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: EllipsisLiteral(
|
||||
ExprEllipsisLiteral {
|
||||
range: 50..53,
|
||||
value: Ellipsis,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
@ -205,10 +203,9 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 88..91,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: EllipsisLiteral(
|
||||
ExprEllipsisLiteral {
|
||||
range: 88..91,
|
||||
value: Ellipsis,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
@ -307,10 +304,9 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 135..138,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: EllipsisLiteral(
|
||||
ExprEllipsisLiteral {
|
||||
range: 135..138,
|
||||
value: Ellipsis,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
@ -379,10 +375,9 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 168..171,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: EllipsisLiteral(
|
||||
ExprEllipsisLiteral {
|
||||
range: 168..171,
|
||||
value: Ellipsis,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
@ -482,10 +477,9 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 227..230,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: EllipsisLiteral(
|
||||
ExprEllipsisLiteral {
|
||||
range: 227..230,
|
||||
value: Ellipsis,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
|
|
@ -6,8 +6,8 @@ expression: parse_ast
|
|||
If(
|
||||
StmtIf {
|
||||
range: 0..28,
|
||||
test: Constant(
|
||||
ExprConstant {
|
||||
test: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 3..4,
|
||||
value: Int(
|
||||
1,
|
||||
|
@ -18,8 +18,8 @@ expression: parse_ast
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 6..8,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 6..8,
|
||||
value: Int(
|
||||
10,
|
||||
|
@ -33,8 +33,8 @@ expression: parse_ast
|
|||
ElifElseClause {
|
||||
range: 9..19,
|
||||
test: Some(
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 14..15,
|
||||
value: Int(
|
||||
2,
|
||||
|
@ -46,8 +46,8 @@ expression: parse_ast
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 17..19,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 17..19,
|
||||
value: Int(
|
||||
20,
|
||||
|
@ -65,8 +65,8 @@ expression: parse_ast
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 26..28,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 26..28,
|
||||
value: Int(
|
||||
30,
|
||||
|
|
|
@ -19,16 +19,12 @@ expression: parse_ast
|
|||
arguments: Arguments {
|
||||
range: 7..32,
|
||||
args: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 8..20,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "positional",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "positional",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -41,8 +37,8 @@ expression: parse_ast
|
|||
range: 22..29,
|
||||
},
|
||||
),
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 30..31,
|
||||
value: Int(
|
||||
2,
|
||||
|
|
|
@ -10,8 +10,8 @@ expression: parse_ast
|
|||
ExprLambda {
|
||||
range: 0..9,
|
||||
parameters: None,
|
||||
body: Constant(
|
||||
ExprConstant {
|
||||
body: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 8..9,
|
||||
value: Int(
|
||||
1,
|
||||
|
|
|
@ -26,8 +26,8 @@ GeneratorExp(
|
|||
},
|
||||
),
|
||||
op: Add,
|
||||
right: Constant(
|
||||
ExprConstant {
|
||||
right: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 10..11,
|
||||
value: Int(
|
||||
1,
|
||||
|
|
|
@ -19,20 +19,16 @@ expression: parse_ast
|
|||
arguments: Arguments {
|
||||
range: 5..23,
|
||||
args: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 6..19,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "Hello world",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "Hello world",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 21..22,
|
||||
value: Int(
|
||||
2,
|
||||
|
|
|
@ -19,16 +19,12 @@ expression: parse_ast
|
|||
arguments: Arguments {
|
||||
range: 5..20,
|
||||
args: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 6..19,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "Hello world",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "Hello world",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
|
@ -6,16 +6,12 @@ expression: parse_ast
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 0..13,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 0..13,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "Hello world",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "Hello world",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
|
|
@ -34,16 +34,16 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
ExprTuple {
|
||||
range: 7..11,
|
||||
elts: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 7..8,
|
||||
value: Int(
|
||||
4,
|
||||
),
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 10..11,
|
||||
value: Int(
|
||||
5,
|
||||
|
|
|
@ -78,16 +78,12 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
op: BitOr,
|
||||
right: Constant(
|
||||
ExprConstant {
|
||||
right: StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 48..61,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "ForwardRefY",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "ForwardRefY",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -16,8 +16,8 @@ Subscript(
|
|||
ExprSlice {
|
||||
range: 2..7,
|
||||
lower: Some(
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 2..3,
|
||||
value: Int(
|
||||
1,
|
||||
|
@ -26,8 +26,8 @@ Subscript(
|
|||
),
|
||||
),
|
||||
upper: Some(
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 4..5,
|
||||
value: Int(
|
||||
2,
|
||||
|
@ -36,8 +36,8 @@ Subscript(
|
|||
),
|
||||
),
|
||||
step: Some(
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 6..7,
|
||||
value: Int(
|
||||
3,
|
||||
|
|
|
@ -29,8 +29,8 @@ expression: parse_ast
|
|||
ExprTuple {
|
||||
range: 20..35,
|
||||
elts: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 20..21,
|
||||
value: Int(
|
||||
0,
|
||||
|
@ -54,8 +54,8 @@ expression: parse_ast
|
|||
ExprUnaryOp {
|
||||
range: 33..35,
|
||||
op: USub,
|
||||
operand: Constant(
|
||||
ExprConstant {
|
||||
operand: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 34..35,
|
||||
value: Int(
|
||||
1,
|
||||
|
@ -91,8 +91,8 @@ expression: parse_ast
|
|||
ExprTuple {
|
||||
range: 43..58,
|
||||
elts: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 43..44,
|
||||
value: Int(
|
||||
0,
|
||||
|
@ -116,8 +116,8 @@ expression: parse_ast
|
|||
ExprUnaryOp {
|
||||
range: 56..58,
|
||||
op: USub,
|
||||
operand: Constant(
|
||||
ExprConstant {
|
||||
operand: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 57..58,
|
||||
value: Int(
|
||||
1,
|
||||
|
@ -216,8 +216,8 @@ expression: parse_ast
|
|||
ExprSlice {
|
||||
range: 126..129,
|
||||
lower: Some(
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 126..127,
|
||||
value: Int(
|
||||
3,
|
||||
|
@ -226,8 +226,8 @@ expression: parse_ast
|
|||
),
|
||||
),
|
||||
upper: Some(
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 128..129,
|
||||
value: Int(
|
||||
5,
|
||||
|
|
|
@ -24,8 +24,8 @@ expression: parse_ast
|
|||
arguments: Arguments {
|
||||
range: 25..28,
|
||||
args: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 26..27,
|
||||
value: Int(
|
||||
1,
|
||||
|
@ -82,16 +82,12 @@ expression: parse_ast
|
|||
ExprFString {
|
||||
range: 62..81,
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 64..71,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "caught ",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "caught ",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
FormattedValue(
|
||||
|
@ -180,16 +176,12 @@ expression: parse_ast
|
|||
ExprFString {
|
||||
range: 114..133,
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 116..123,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "caught ",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "caught ",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
FormattedValue(
|
||||
|
|
|
@ -24,16 +24,12 @@ expression: parse_ast
|
|||
arguments: Arguments {
|
||||
range: 29..98,
|
||||
args: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 30..34,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "eg",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "eg",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
List(
|
||||
|
@ -53,8 +49,8 @@ expression: parse_ast
|
|||
arguments: Arguments {
|
||||
range: 55..58,
|
||||
args: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 56..57,
|
||||
value: Int(
|
||||
1,
|
||||
|
@ -79,8 +75,8 @@ expression: parse_ast
|
|||
arguments: Arguments {
|
||||
range: 69..72,
|
||||
args: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 70..71,
|
||||
value: Int(
|
||||
2,
|
||||
|
@ -105,8 +101,8 @@ expression: parse_ast
|
|||
arguments: Arguments {
|
||||
range: 81..84,
|
||||
args: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 82..83,
|
||||
value: Int(
|
||||
3,
|
||||
|
@ -131,8 +127,8 @@ expression: parse_ast
|
|||
arguments: Arguments {
|
||||
range: 93..96,
|
||||
args: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 94..95,
|
||||
value: Int(
|
||||
4,
|
||||
|
@ -198,16 +194,12 @@ expression: parse_ast
|
|||
ExprFString {
|
||||
range: 133..179,
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 135..142,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "caught ",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "caught ",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
FormattedValue(
|
||||
|
@ -243,16 +235,12 @@ expression: parse_ast
|
|||
format_spec: None,
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 151..164,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: " with nested ",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: " with nested ",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
FormattedValue(
|
||||
|
@ -333,16 +321,12 @@ expression: parse_ast
|
|||
ExprFString {
|
||||
range: 213..259,
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 215..222,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "caught ",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "caught ",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
FormattedValue(
|
||||
|
@ -378,16 +362,12 @@ expression: parse_ast
|
|||
format_spec: None,
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 231..244,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: " with nested ",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: " with nested ",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
FormattedValue(
|
||||
|
|
|
@ -627,8 +627,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
ctx: Store,
|
||||
},
|
||||
),
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 492..493,
|
||||
value: Int(
|
||||
1,
|
||||
|
@ -742,8 +742,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
arguments: Arguments {
|
||||
range: 546..550,
|
||||
args: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 547..549,
|
||||
value: Int(
|
||||
12,
|
||||
|
@ -920,8 +920,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 624..625,
|
||||
value: Int(
|
||||
1,
|
||||
|
@ -949,8 +949,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 637..638,
|
||||
value: Int(
|
||||
1,
|
||||
|
@ -978,8 +978,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 650..651,
|
||||
value: Int(
|
||||
1,
|
||||
|
|
|
@ -15,16 +15,12 @@ expression: parse_ast
|
|||
},
|
||||
),
|
||||
],
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 4..37,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "\u{8}another cool trick",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "\u{8}another cool trick",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
|
|
@ -76,10 +76,9 @@ expression: parse_ast
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 46..49,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: EllipsisLiteral(
|
||||
ExprEllipsisLiteral {
|
||||
range: 46..49,
|
||||
value: Ellipsis,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
|
|
@ -10,8 +10,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
items: [
|
||||
WithItem {
|
||||
range: 5..6,
|
||||
context_expr: Constant(
|
||||
ExprConstant {
|
||||
context_expr: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 5..6,
|
||||
value: Int(
|
||||
0,
|
||||
|
@ -37,8 +37,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
items: [
|
||||
WithItem {
|
||||
range: 18..24,
|
||||
context_expr: Constant(
|
||||
ExprConstant {
|
||||
context_expr: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 18..19,
|
||||
value: Int(
|
||||
0,
|
||||
|
@ -72,8 +72,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
items: [
|
||||
WithItem {
|
||||
range: 36..37,
|
||||
context_expr: Constant(
|
||||
ExprConstant {
|
||||
context_expr: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 36..37,
|
||||
value: Int(
|
||||
0,
|
||||
|
@ -84,8 +84,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
},
|
||||
WithItem {
|
||||
range: 39..40,
|
||||
context_expr: Constant(
|
||||
ExprConstant {
|
||||
context_expr: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 39..40,
|
||||
value: Int(
|
||||
1,
|
||||
|
@ -111,8 +111,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
items: [
|
||||
WithItem {
|
||||
range: 52..58,
|
||||
context_expr: Constant(
|
||||
ExprConstant {
|
||||
context_expr: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 52..53,
|
||||
value: Int(
|
||||
0,
|
||||
|
@ -131,8 +131,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
},
|
||||
WithItem {
|
||||
range: 60..66,
|
||||
context_expr: Constant(
|
||||
ExprConstant {
|
||||
context_expr: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 60..61,
|
||||
value: Int(
|
||||
1,
|
||||
|
@ -169,24 +169,24 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
context_expr: IfExp(
|
||||
ExprIfExp {
|
||||
range: 78..91,
|
||||
test: Constant(
|
||||
ExprConstant {
|
||||
test: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 83..84,
|
||||
value: Int(
|
||||
1,
|
||||
),
|
||||
},
|
||||
),
|
||||
body: Constant(
|
||||
ExprConstant {
|
||||
body: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 78..79,
|
||||
value: Int(
|
||||
0,
|
||||
),
|
||||
},
|
||||
),
|
||||
orelse: Constant(
|
||||
ExprConstant {
|
||||
orelse: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 90..91,
|
||||
value: Int(
|
||||
2,
|
||||
|
@ -217,24 +217,24 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
context_expr: IfExp(
|
||||
ExprIfExp {
|
||||
range: 103..116,
|
||||
test: Constant(
|
||||
ExprConstant {
|
||||
test: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 108..109,
|
||||
value: Int(
|
||||
1,
|
||||
),
|
||||
},
|
||||
),
|
||||
body: Constant(
|
||||
ExprConstant {
|
||||
body: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 103..104,
|
||||
value: Int(
|
||||
0,
|
||||
),
|
||||
},
|
||||
),
|
||||
orelse: Constant(
|
||||
ExprConstant {
|
||||
orelse: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 115..116,
|
||||
value: Int(
|
||||
2,
|
||||
|
@ -330,8 +330,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
items: [
|
||||
WithItem {
|
||||
range: 167..168,
|
||||
context_expr: Constant(
|
||||
ExprConstant {
|
||||
context_expr: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 167..168,
|
||||
value: Int(
|
||||
0,
|
||||
|
@ -357,8 +357,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
items: [
|
||||
WithItem {
|
||||
range: 181..189,
|
||||
context_expr: Constant(
|
||||
ExprConstant {
|
||||
context_expr: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 182..183,
|
||||
value: Int(
|
||||
0,
|
||||
|
@ -392,8 +392,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
items: [
|
||||
WithItem {
|
||||
range: 202..203,
|
||||
context_expr: Constant(
|
||||
ExprConstant {
|
||||
context_expr: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 202..203,
|
||||
value: Int(
|
||||
0,
|
||||
|
@ -423,8 +423,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
ExprTuple {
|
||||
range: 217..221,
|
||||
elts: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 218..219,
|
||||
value: Int(
|
||||
0,
|
||||
|
@ -462,8 +462,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
items: [
|
||||
WithItem {
|
||||
range: 239..240,
|
||||
context_expr: Constant(
|
||||
ExprConstant {
|
||||
context_expr: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 239..240,
|
||||
value: Int(
|
||||
0,
|
||||
|
@ -474,8 +474,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
},
|
||||
WithItem {
|
||||
range: 242..243,
|
||||
context_expr: Constant(
|
||||
ExprConstant {
|
||||
context_expr: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 242..243,
|
||||
value: Int(
|
||||
1,
|
||||
|
@ -505,16 +505,16 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
ExprTuple {
|
||||
range: 256..262,
|
||||
elts: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 257..258,
|
||||
value: Int(
|
||||
0,
|
||||
),
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 260..261,
|
||||
value: Int(
|
||||
1,
|
||||
|
@ -644,8 +644,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
ExprTuple {
|
||||
range: 318..325,
|
||||
elts: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 319..320,
|
||||
value: Int(
|
||||
0,
|
||||
|
@ -692,8 +692,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
ExprTuple {
|
||||
range: 337..344,
|
||||
elts: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 338..339,
|
||||
value: Int(
|
||||
0,
|
||||
|
@ -754,8 +754,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
ctx: Store,
|
||||
},
|
||||
),
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 367..368,
|
||||
value: Int(
|
||||
0,
|
||||
|
@ -793,8 +793,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
ctx: Store,
|
||||
},
|
||||
),
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 387..388,
|
||||
value: Int(
|
||||
0,
|
||||
|
@ -844,8 +844,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
ctx: Store,
|
||||
},
|
||||
),
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 412..413,
|
||||
value: Int(
|
||||
0,
|
||||
|
@ -864,8 +864,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
ctx: Store,
|
||||
},
|
||||
),
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 420..421,
|
||||
value: Int(
|
||||
1,
|
||||
|
@ -911,8 +911,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
ctx: Store,
|
||||
},
|
||||
),
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 440..441,
|
||||
value: Int(
|
||||
0,
|
||||
|
@ -931,8 +931,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
ctx: Store,
|
||||
},
|
||||
),
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 448..449,
|
||||
value: Int(
|
||||
1,
|
||||
|
@ -972,8 +972,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
items: [
|
||||
WithItem {
|
||||
range: 468..474,
|
||||
context_expr: Constant(
|
||||
ExprConstant {
|
||||
context_expr: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 468..469,
|
||||
value: Int(
|
||||
0,
|
||||
|
@ -1007,8 +1007,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
items: [
|
||||
WithItem {
|
||||
range: 488..494,
|
||||
context_expr: Constant(
|
||||
ExprConstant {
|
||||
context_expr: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 488..489,
|
||||
value: Int(
|
||||
0,
|
||||
|
@ -1042,8 +1042,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
items: [
|
||||
WithItem {
|
||||
range: 509..515,
|
||||
context_expr: Constant(
|
||||
ExprConstant {
|
||||
context_expr: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 509..510,
|
||||
value: Int(
|
||||
0,
|
||||
|
@ -1062,8 +1062,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
},
|
||||
WithItem {
|
||||
range: 517..523,
|
||||
context_expr: Constant(
|
||||
ExprConstant {
|
||||
context_expr: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 517..518,
|
||||
value: Int(
|
||||
1,
|
||||
|
@ -1097,8 +1097,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
items: [
|
||||
WithItem {
|
||||
range: 537..543,
|
||||
context_expr: Constant(
|
||||
ExprConstant {
|
||||
context_expr: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 537..538,
|
||||
value: Int(
|
||||
0,
|
||||
|
@ -1117,8 +1117,8 @@ expression: "parse_suite(source, \"<test>\").unwrap()"
|
|||
},
|
||||
WithItem {
|
||||
range: 545..551,
|
||||
context_expr: Constant(
|
||||
ExprConstant {
|
||||
context_expr: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 545..546,
|
||||
value: Int(
|
||||
1,
|
||||
|
|
|
@ -6,16 +6,12 @@ expression: parse_ast
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 0..15,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 0..15,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "\u{8}",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "\u{8}",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
|
|
@ -6,16 +6,12 @@ expression: parse_ast
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 0..9,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 0..9,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "\u{7}",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "\u{7}",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
|
|
@ -6,16 +6,12 @@ expression: parse_ast
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 0..21,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 0..21,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "\r",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "\r",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
|
|
@ -6,16 +6,12 @@ expression: parse_ast
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 0..45,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 0..45,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "\u{89}",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "\u{89}",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
|
|
@ -6,16 +6,12 @@ expression: parse_ast
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 0..12,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 0..12,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "\u{7f}",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "\u{7f}",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
|
|
@ -6,272 +6,268 @@ expression: parse_ast
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 0..738,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: BytesLiteral(
|
||||
ExprBytesLiteral {
|
||||
range: 0..738,
|
||||
value: Bytes(
|
||||
BytesConstant {
|
||||
value: [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
8,
|
||||
9,
|
||||
10,
|
||||
11,
|
||||
12,
|
||||
13,
|
||||
14,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
18,
|
||||
19,
|
||||
20,
|
||||
21,
|
||||
22,
|
||||
23,
|
||||
24,
|
||||
25,
|
||||
26,
|
||||
27,
|
||||
28,
|
||||
29,
|
||||
30,
|
||||
31,
|
||||
32,
|
||||
33,
|
||||
34,
|
||||
35,
|
||||
36,
|
||||
37,
|
||||
38,
|
||||
39,
|
||||
40,
|
||||
41,
|
||||
42,
|
||||
43,
|
||||
44,
|
||||
45,
|
||||
46,
|
||||
47,
|
||||
48,
|
||||
49,
|
||||
50,
|
||||
51,
|
||||
52,
|
||||
53,
|
||||
54,
|
||||
55,
|
||||
56,
|
||||
57,
|
||||
58,
|
||||
59,
|
||||
60,
|
||||
61,
|
||||
62,
|
||||
63,
|
||||
64,
|
||||
65,
|
||||
66,
|
||||
67,
|
||||
68,
|
||||
69,
|
||||
70,
|
||||
71,
|
||||
72,
|
||||
73,
|
||||
74,
|
||||
75,
|
||||
76,
|
||||
77,
|
||||
78,
|
||||
79,
|
||||
80,
|
||||
81,
|
||||
82,
|
||||
83,
|
||||
84,
|
||||
85,
|
||||
86,
|
||||
87,
|
||||
88,
|
||||
89,
|
||||
90,
|
||||
91,
|
||||
92,
|
||||
93,
|
||||
94,
|
||||
95,
|
||||
96,
|
||||
97,
|
||||
98,
|
||||
99,
|
||||
100,
|
||||
101,
|
||||
102,
|
||||
103,
|
||||
104,
|
||||
105,
|
||||
106,
|
||||
107,
|
||||
108,
|
||||
109,
|
||||
110,
|
||||
111,
|
||||
112,
|
||||
113,
|
||||
114,
|
||||
115,
|
||||
116,
|
||||
117,
|
||||
118,
|
||||
119,
|
||||
120,
|
||||
121,
|
||||
122,
|
||||
123,
|
||||
124,
|
||||
125,
|
||||
126,
|
||||
127,
|
||||
128,
|
||||
129,
|
||||
130,
|
||||
131,
|
||||
132,
|
||||
133,
|
||||
134,
|
||||
135,
|
||||
136,
|
||||
137,
|
||||
138,
|
||||
139,
|
||||
140,
|
||||
141,
|
||||
142,
|
||||
143,
|
||||
144,
|
||||
145,
|
||||
146,
|
||||
147,
|
||||
148,
|
||||
149,
|
||||
150,
|
||||
151,
|
||||
152,
|
||||
153,
|
||||
154,
|
||||
155,
|
||||
156,
|
||||
157,
|
||||
158,
|
||||
159,
|
||||
160,
|
||||
161,
|
||||
162,
|
||||
163,
|
||||
164,
|
||||
165,
|
||||
166,
|
||||
167,
|
||||
168,
|
||||
169,
|
||||
170,
|
||||
171,
|
||||
172,
|
||||
173,
|
||||
174,
|
||||
175,
|
||||
176,
|
||||
177,
|
||||
178,
|
||||
179,
|
||||
180,
|
||||
181,
|
||||
182,
|
||||
183,
|
||||
184,
|
||||
185,
|
||||
186,
|
||||
187,
|
||||
188,
|
||||
189,
|
||||
190,
|
||||
191,
|
||||
192,
|
||||
193,
|
||||
194,
|
||||
195,
|
||||
196,
|
||||
197,
|
||||
198,
|
||||
199,
|
||||
200,
|
||||
201,
|
||||
202,
|
||||
203,
|
||||
204,
|
||||
205,
|
||||
206,
|
||||
207,
|
||||
208,
|
||||
209,
|
||||
210,
|
||||
211,
|
||||
212,
|
||||
213,
|
||||
214,
|
||||
215,
|
||||
216,
|
||||
217,
|
||||
218,
|
||||
219,
|
||||
220,
|
||||
221,
|
||||
222,
|
||||
223,
|
||||
224,
|
||||
225,
|
||||
226,
|
||||
227,
|
||||
228,
|
||||
229,
|
||||
230,
|
||||
231,
|
||||
232,
|
||||
233,
|
||||
234,
|
||||
235,
|
||||
236,
|
||||
237,
|
||||
238,
|
||||
239,
|
||||
240,
|
||||
241,
|
||||
242,
|
||||
243,
|
||||
244,
|
||||
245,
|
||||
246,
|
||||
247,
|
||||
248,
|
||||
249,
|
||||
250,
|
||||
251,
|
||||
252,
|
||||
253,
|
||||
254,
|
||||
255,
|
||||
],
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
8,
|
||||
9,
|
||||
10,
|
||||
11,
|
||||
12,
|
||||
13,
|
||||
14,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
18,
|
||||
19,
|
||||
20,
|
||||
21,
|
||||
22,
|
||||
23,
|
||||
24,
|
||||
25,
|
||||
26,
|
||||
27,
|
||||
28,
|
||||
29,
|
||||
30,
|
||||
31,
|
||||
32,
|
||||
33,
|
||||
34,
|
||||
35,
|
||||
36,
|
||||
37,
|
||||
38,
|
||||
39,
|
||||
40,
|
||||
41,
|
||||
42,
|
||||
43,
|
||||
44,
|
||||
45,
|
||||
46,
|
||||
47,
|
||||
48,
|
||||
49,
|
||||
50,
|
||||
51,
|
||||
52,
|
||||
53,
|
||||
54,
|
||||
55,
|
||||
56,
|
||||
57,
|
||||
58,
|
||||
59,
|
||||
60,
|
||||
61,
|
||||
62,
|
||||
63,
|
||||
64,
|
||||
65,
|
||||
66,
|
||||
67,
|
||||
68,
|
||||
69,
|
||||
70,
|
||||
71,
|
||||
72,
|
||||
73,
|
||||
74,
|
||||
75,
|
||||
76,
|
||||
77,
|
||||
78,
|
||||
79,
|
||||
80,
|
||||
81,
|
||||
82,
|
||||
83,
|
||||
84,
|
||||
85,
|
||||
86,
|
||||
87,
|
||||
88,
|
||||
89,
|
||||
90,
|
||||
91,
|
||||
92,
|
||||
93,
|
||||
94,
|
||||
95,
|
||||
96,
|
||||
97,
|
||||
98,
|
||||
99,
|
||||
100,
|
||||
101,
|
||||
102,
|
||||
103,
|
||||
104,
|
||||
105,
|
||||
106,
|
||||
107,
|
||||
108,
|
||||
109,
|
||||
110,
|
||||
111,
|
||||
112,
|
||||
113,
|
||||
114,
|
||||
115,
|
||||
116,
|
||||
117,
|
||||
118,
|
||||
119,
|
||||
120,
|
||||
121,
|
||||
122,
|
||||
123,
|
||||
124,
|
||||
125,
|
||||
126,
|
||||
127,
|
||||
128,
|
||||
129,
|
||||
130,
|
||||
131,
|
||||
132,
|
||||
133,
|
||||
134,
|
||||
135,
|
||||
136,
|
||||
137,
|
||||
138,
|
||||
139,
|
||||
140,
|
||||
141,
|
||||
142,
|
||||
143,
|
||||
144,
|
||||
145,
|
||||
146,
|
||||
147,
|
||||
148,
|
||||
149,
|
||||
150,
|
||||
151,
|
||||
152,
|
||||
153,
|
||||
154,
|
||||
155,
|
||||
156,
|
||||
157,
|
||||
158,
|
||||
159,
|
||||
160,
|
||||
161,
|
||||
162,
|
||||
163,
|
||||
164,
|
||||
165,
|
||||
166,
|
||||
167,
|
||||
168,
|
||||
169,
|
||||
170,
|
||||
171,
|
||||
172,
|
||||
173,
|
||||
174,
|
||||
175,
|
||||
176,
|
||||
177,
|
||||
178,
|
||||
179,
|
||||
180,
|
||||
181,
|
||||
182,
|
||||
183,
|
||||
184,
|
||||
185,
|
||||
186,
|
||||
187,
|
||||
188,
|
||||
189,
|
||||
190,
|
||||
191,
|
||||
192,
|
||||
193,
|
||||
194,
|
||||
195,
|
||||
196,
|
||||
197,
|
||||
198,
|
||||
199,
|
||||
200,
|
||||
201,
|
||||
202,
|
||||
203,
|
||||
204,
|
||||
205,
|
||||
206,
|
||||
207,
|
||||
208,
|
||||
209,
|
||||
210,
|
||||
211,
|
||||
212,
|
||||
213,
|
||||
214,
|
||||
215,
|
||||
216,
|
||||
217,
|
||||
218,
|
||||
219,
|
||||
220,
|
||||
221,
|
||||
222,
|
||||
223,
|
||||
224,
|
||||
225,
|
||||
226,
|
||||
227,
|
||||
228,
|
||||
229,
|
||||
230,
|
||||
231,
|
||||
232,
|
||||
233,
|
||||
234,
|
||||
235,
|
||||
236,
|
||||
237,
|
||||
238,
|
||||
239,
|
||||
240,
|
||||
241,
|
||||
242,
|
||||
243,
|
||||
244,
|
||||
245,
|
||||
246,
|
||||
247,
|
||||
248,
|
||||
249,
|
||||
250,
|
||||
251,
|
||||
252,
|
||||
253,
|
||||
254,
|
||||
255,
|
||||
],
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
|
|
@ -6,16 +6,12 @@ expression: parse_ast
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 0..12,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 0..12,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "\u{1b}",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "\u{1b}",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
|
|
@ -6,26 +6,22 @@ expression: parse_ast
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 0..13,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: BytesLiteral(
|
||||
ExprBytesLiteral {
|
||||
range: 0..13,
|
||||
value: Bytes(
|
||||
BytesConstant {
|
||||
value: [
|
||||
111,
|
||||
109,
|
||||
107,
|
||||
109,
|
||||
111,
|
||||
107,
|
||||
92,
|
||||
88,
|
||||
97,
|
||||
97,
|
||||
],
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: [
|
||||
111,
|
||||
109,
|
||||
107,
|
||||
109,
|
||||
111,
|
||||
107,
|
||||
92,
|
||||
88,
|
||||
97,
|
||||
97,
|
||||
],
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
|
|
@ -6,21 +6,17 @@ expression: parse_ast
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 0..14,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: BytesLiteral(
|
||||
ExprBytesLiteral {
|
||||
range: 0..14,
|
||||
value: Bytes(
|
||||
BytesConstant {
|
||||
value: [
|
||||
35,
|
||||
97,
|
||||
4,
|
||||
83,
|
||||
52,
|
||||
],
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: [
|
||||
35,
|
||||
97,
|
||||
4,
|
||||
83,
|
||||
52,
|
||||
],
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
|
|
@ -6,16 +6,12 @@ expression: parse_ast
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 0..15,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 0..15,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "\u{c}",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "\u{c}",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
|
|
@ -10,16 +10,12 @@ expression: parse_ast
|
|||
ExprFString {
|
||||
range: 0..22,
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 2..5,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "aaa",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "aaa",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
FormattedValue(
|
||||
|
@ -37,16 +33,12 @@ expression: parse_ast
|
|||
format_spec: None,
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 10..13,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "ccc",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "ccc",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
FormattedValue(
|
||||
|
@ -64,16 +56,12 @@ expression: parse_ast
|
|||
format_spec: None,
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 18..21,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "eee",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "eee",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
|
@ -10,16 +10,12 @@ expression: parse_ast
|
|||
ExprFString {
|
||||
range: 0..8,
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 2..4,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "\\",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "\\",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
FormattedValue(
|
||||
|
|
|
@ -10,16 +10,12 @@ expression: parse_ast
|
|||
ExprFString {
|
||||
range: 0..8,
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 2..4,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "\n",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "\n",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
FormattedValue(
|
||||
|
|
|
@ -10,16 +10,12 @@ expression: parse_ast
|
|||
ExprFString {
|
||||
range: 0..9,
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 3..5,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "\\\n",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "\\\n",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
FormattedValue(
|
||||
|
|
|
@ -10,16 +10,12 @@ expression: parse_ast
|
|||
ExprFString {
|
||||
range: 0..38,
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 2..6,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "mix ",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "mix ",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
FormattedValue(
|
||||
|
@ -42,16 +38,12 @@ expression: parse_ast
|
|||
format_spec: None,
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 13..28,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: " with text and ",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: " with text and ",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
FormattedValue(
|
||||
|
|
|
@ -32,16 +32,12 @@ expression: parse_ast
|
|||
ExprFString {
|
||||
range: 9..12,
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 9..12,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: ">10",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: ">10",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
|
@ -10,16 +10,12 @@ expression: parse_ast
|
|||
ExprFString {
|
||||
range: 0..11,
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 4..5,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "\n",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "\n",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
FormattedValue(
|
||||
|
|
|
@ -6,16 +6,12 @@ expression: parse_ast
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 0..9,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 0..9,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "\u{88}",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "\u{88}",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
|
|
@ -10,16 +10,12 @@ expression: parse_ast
|
|||
ExprFString {
|
||||
range: 0..17,
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 1..16,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "Hello world",
|
||||
unicode: false,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
value: "Hello world",
|
||||
unicode: false,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
|
@ -10,16 +10,12 @@ expression: parse_ast
|
|||
ExprFString {
|
||||
range: 0..17,
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 1..16,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "Hello world",
|
||||
unicode: false,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
value: "Hello world",
|
||||
unicode: false,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
|
@ -10,31 +10,23 @@ expression: parse_ast
|
|||
ExprFString {
|
||||
range: 0..22,
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 1..16,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "Hello world",
|
||||
unicode: false,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
value: "Hello world",
|
||||
unicode: false,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
FormattedValue(
|
||||
ExprFormattedValue {
|
||||
range: 16..21,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 17..20,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "!",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "!",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
debug_text: None,
|
||||
|
|
|
@ -10,31 +10,23 @@ expression: parse_ast
|
|||
ExprFString {
|
||||
range: 0..31,
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 1..16,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "Hello world",
|
||||
unicode: false,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
value: "Hello world",
|
||||
unicode: false,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
FormattedValue(
|
||||
ExprFormattedValue {
|
||||
range: 16..21,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 17..20,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "!",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "!",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
debug_text: None,
|
||||
|
@ -42,16 +34,12 @@ expression: parse_ast
|
|||
format_spec: None,
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 24..30,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "again!",
|
||||
unicode: false,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
value: "again!",
|
||||
unicode: false,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
|
@ -40,16 +40,12 @@ expression: parse_ast
|
|||
format_spec: None,
|
||||
},
|
||||
),
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 10..17,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "{foo}",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "{foo}",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
|
@ -16,8 +16,8 @@ expression: parse_ast
|
|||
value: Compare(
|
||||
ExprCompare {
|
||||
range: 3..11,
|
||||
left: Constant(
|
||||
ExprConstant {
|
||||
left: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 3..5,
|
||||
value: Int(
|
||||
42,
|
||||
|
@ -28,8 +28,8 @@ expression: parse_ast
|
|||
Eq,
|
||||
],
|
||||
comparators: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 9..11,
|
||||
value: Int(
|
||||
42,
|
||||
|
|
|
@ -30,16 +30,12 @@ expression: parse_ast
|
|||
FormattedValue(
|
||||
ExprFormattedValue {
|
||||
range: 7..14,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 8..13,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "",
|
||||
unicode: false,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
value: "",
|
||||
unicode: false,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
debug_text: None,
|
||||
|
|
|
@ -30,16 +30,12 @@ expression: parse_ast
|
|||
FormattedValue(
|
||||
ExprFormattedValue {
|
||||
range: 7..11,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 8..10,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
debug_text: None,
|
||||
|
|
|
@ -16,8 +16,8 @@ expression: parse_ast
|
|||
value: Compare(
|
||||
ExprCompare {
|
||||
range: 3..9,
|
||||
left: Constant(
|
||||
ExprConstant {
|
||||
left: NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 3..4,
|
||||
value: Int(
|
||||
1,
|
||||
|
@ -28,8 +28,8 @@ expression: parse_ast
|
|||
NotEq,
|
||||
],
|
||||
comparators: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
NumberLiteral(
|
||||
ExprNumberLiteral {
|
||||
range: 8..9,
|
||||
value: Int(
|
||||
2,
|
||||
|
|
|
@ -27,16 +27,12 @@ expression: parse_ast
|
|||
ExprFString {
|
||||
range: 7..11,
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 7..11,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "spec",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "spec",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
|
@ -6,16 +6,12 @@ expression: parse_ast
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 0..16,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 0..16,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "Hello world",
|
||||
unicode: false,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
value: "Hello world",
|
||||
unicode: false,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
|
|
@ -6,16 +6,12 @@ expression: parse_ast
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 0..20,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 0..20,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "Hello, world!",
|
||||
unicode: true,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "Hello, world!",
|
||||
unicode: true,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
|
|
@ -10,16 +10,12 @@ expression: parse_ast
|
|||
ExprFString {
|
||||
range: 0..18,
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 2..17,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "Hello world",
|
||||
unicode: true,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
value: "Hello world",
|
||||
unicode: true,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
|
@ -10,16 +10,12 @@ expression: parse_ast
|
|||
ExprFString {
|
||||
range: 0..22,
|
||||
values: [
|
||||
Constant(
|
||||
ExprConstant {
|
||||
StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 2..21,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "Hello world!",
|
||||
unicode: true,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
value: "Hello world!",
|
||||
unicode: true,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
|
@ -6,16 +6,12 @@ expression: parse_ast
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 0..17,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 0..17,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "Hello world",
|
||||
unicode: false,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
value: "Hello world",
|
||||
unicode: false,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
|
|
@ -6,16 +6,12 @@ expression: parse_ast
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 0..17,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 0..17,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "Hello world",
|
||||
unicode: true,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
value: "Hello world",
|
||||
unicode: true,
|
||||
implicit_concatenated: true,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
|
|
@ -6,20 +6,16 @@ expression: parse_ast
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 0..8,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: BytesLiteral(
|
||||
ExprBytesLiteral {
|
||||
range: 0..8,
|
||||
value: Bytes(
|
||||
BytesConstant {
|
||||
value: [
|
||||
92,
|
||||
120,
|
||||
49,
|
||||
122,
|
||||
],
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: [
|
||||
92,
|
||||
120,
|
||||
49,
|
||||
122,
|
||||
],
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
|
|
@ -6,18 +6,14 @@ expression: parse_ast
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 0..6,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: BytesLiteral(
|
||||
ExprBytesLiteral {
|
||||
range: 0..6,
|
||||
value: Bytes(
|
||||
BytesConstant {
|
||||
value: [
|
||||
92,
|
||||
92,
|
||||
],
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: [
|
||||
92,
|
||||
92,
|
||||
],
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
|
|
@ -6,272 +6,268 @@ expression: parse_ast
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 0..738,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: BytesLiteral(
|
||||
ExprBytesLiteral {
|
||||
range: 0..738,
|
||||
value: Bytes(
|
||||
BytesConstant {
|
||||
value: [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
8,
|
||||
9,
|
||||
10,
|
||||
11,
|
||||
12,
|
||||
13,
|
||||
14,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
18,
|
||||
19,
|
||||
20,
|
||||
21,
|
||||
22,
|
||||
23,
|
||||
24,
|
||||
25,
|
||||
26,
|
||||
27,
|
||||
28,
|
||||
29,
|
||||
30,
|
||||
31,
|
||||
32,
|
||||
33,
|
||||
34,
|
||||
35,
|
||||
36,
|
||||
37,
|
||||
38,
|
||||
39,
|
||||
40,
|
||||
41,
|
||||
42,
|
||||
43,
|
||||
44,
|
||||
45,
|
||||
46,
|
||||
47,
|
||||
48,
|
||||
49,
|
||||
50,
|
||||
51,
|
||||
52,
|
||||
53,
|
||||
54,
|
||||
55,
|
||||
56,
|
||||
57,
|
||||
58,
|
||||
59,
|
||||
60,
|
||||
61,
|
||||
62,
|
||||
63,
|
||||
64,
|
||||
65,
|
||||
66,
|
||||
67,
|
||||
68,
|
||||
69,
|
||||
70,
|
||||
71,
|
||||
72,
|
||||
73,
|
||||
74,
|
||||
75,
|
||||
76,
|
||||
77,
|
||||
78,
|
||||
79,
|
||||
80,
|
||||
81,
|
||||
82,
|
||||
83,
|
||||
84,
|
||||
85,
|
||||
86,
|
||||
87,
|
||||
88,
|
||||
89,
|
||||
90,
|
||||
91,
|
||||
92,
|
||||
93,
|
||||
94,
|
||||
95,
|
||||
96,
|
||||
97,
|
||||
98,
|
||||
99,
|
||||
100,
|
||||
101,
|
||||
102,
|
||||
103,
|
||||
104,
|
||||
105,
|
||||
106,
|
||||
107,
|
||||
108,
|
||||
109,
|
||||
110,
|
||||
111,
|
||||
112,
|
||||
113,
|
||||
114,
|
||||
115,
|
||||
116,
|
||||
117,
|
||||
118,
|
||||
119,
|
||||
120,
|
||||
121,
|
||||
122,
|
||||
123,
|
||||
124,
|
||||
125,
|
||||
126,
|
||||
127,
|
||||
128,
|
||||
129,
|
||||
130,
|
||||
131,
|
||||
132,
|
||||
133,
|
||||
134,
|
||||
135,
|
||||
136,
|
||||
137,
|
||||
138,
|
||||
139,
|
||||
140,
|
||||
141,
|
||||
142,
|
||||
143,
|
||||
144,
|
||||
145,
|
||||
146,
|
||||
147,
|
||||
148,
|
||||
149,
|
||||
150,
|
||||
151,
|
||||
152,
|
||||
153,
|
||||
154,
|
||||
155,
|
||||
156,
|
||||
157,
|
||||
158,
|
||||
159,
|
||||
160,
|
||||
161,
|
||||
162,
|
||||
163,
|
||||
164,
|
||||
165,
|
||||
166,
|
||||
167,
|
||||
168,
|
||||
169,
|
||||
170,
|
||||
171,
|
||||
172,
|
||||
173,
|
||||
174,
|
||||
175,
|
||||
176,
|
||||
177,
|
||||
178,
|
||||
179,
|
||||
180,
|
||||
181,
|
||||
182,
|
||||
183,
|
||||
184,
|
||||
185,
|
||||
186,
|
||||
187,
|
||||
188,
|
||||
189,
|
||||
190,
|
||||
191,
|
||||
192,
|
||||
193,
|
||||
194,
|
||||
195,
|
||||
196,
|
||||
197,
|
||||
198,
|
||||
199,
|
||||
200,
|
||||
201,
|
||||
202,
|
||||
203,
|
||||
204,
|
||||
205,
|
||||
206,
|
||||
207,
|
||||
208,
|
||||
209,
|
||||
210,
|
||||
211,
|
||||
212,
|
||||
213,
|
||||
214,
|
||||
215,
|
||||
216,
|
||||
217,
|
||||
218,
|
||||
219,
|
||||
220,
|
||||
221,
|
||||
222,
|
||||
223,
|
||||
224,
|
||||
225,
|
||||
226,
|
||||
227,
|
||||
228,
|
||||
229,
|
||||
230,
|
||||
231,
|
||||
232,
|
||||
233,
|
||||
234,
|
||||
235,
|
||||
236,
|
||||
237,
|
||||
238,
|
||||
239,
|
||||
240,
|
||||
241,
|
||||
242,
|
||||
243,
|
||||
244,
|
||||
245,
|
||||
246,
|
||||
247,
|
||||
248,
|
||||
249,
|
||||
250,
|
||||
251,
|
||||
252,
|
||||
253,
|
||||
254,
|
||||
255,
|
||||
],
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
8,
|
||||
9,
|
||||
10,
|
||||
11,
|
||||
12,
|
||||
13,
|
||||
14,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
18,
|
||||
19,
|
||||
20,
|
||||
21,
|
||||
22,
|
||||
23,
|
||||
24,
|
||||
25,
|
||||
26,
|
||||
27,
|
||||
28,
|
||||
29,
|
||||
30,
|
||||
31,
|
||||
32,
|
||||
33,
|
||||
34,
|
||||
35,
|
||||
36,
|
||||
37,
|
||||
38,
|
||||
39,
|
||||
40,
|
||||
41,
|
||||
42,
|
||||
43,
|
||||
44,
|
||||
45,
|
||||
46,
|
||||
47,
|
||||
48,
|
||||
49,
|
||||
50,
|
||||
51,
|
||||
52,
|
||||
53,
|
||||
54,
|
||||
55,
|
||||
56,
|
||||
57,
|
||||
58,
|
||||
59,
|
||||
60,
|
||||
61,
|
||||
62,
|
||||
63,
|
||||
64,
|
||||
65,
|
||||
66,
|
||||
67,
|
||||
68,
|
||||
69,
|
||||
70,
|
||||
71,
|
||||
72,
|
||||
73,
|
||||
74,
|
||||
75,
|
||||
76,
|
||||
77,
|
||||
78,
|
||||
79,
|
||||
80,
|
||||
81,
|
||||
82,
|
||||
83,
|
||||
84,
|
||||
85,
|
||||
86,
|
||||
87,
|
||||
88,
|
||||
89,
|
||||
90,
|
||||
91,
|
||||
92,
|
||||
93,
|
||||
94,
|
||||
95,
|
||||
96,
|
||||
97,
|
||||
98,
|
||||
99,
|
||||
100,
|
||||
101,
|
||||
102,
|
||||
103,
|
||||
104,
|
||||
105,
|
||||
106,
|
||||
107,
|
||||
108,
|
||||
109,
|
||||
110,
|
||||
111,
|
||||
112,
|
||||
113,
|
||||
114,
|
||||
115,
|
||||
116,
|
||||
117,
|
||||
118,
|
||||
119,
|
||||
120,
|
||||
121,
|
||||
122,
|
||||
123,
|
||||
124,
|
||||
125,
|
||||
126,
|
||||
127,
|
||||
128,
|
||||
129,
|
||||
130,
|
||||
131,
|
||||
132,
|
||||
133,
|
||||
134,
|
||||
135,
|
||||
136,
|
||||
137,
|
||||
138,
|
||||
139,
|
||||
140,
|
||||
141,
|
||||
142,
|
||||
143,
|
||||
144,
|
||||
145,
|
||||
146,
|
||||
147,
|
||||
148,
|
||||
149,
|
||||
150,
|
||||
151,
|
||||
152,
|
||||
153,
|
||||
154,
|
||||
155,
|
||||
156,
|
||||
157,
|
||||
158,
|
||||
159,
|
||||
160,
|
||||
161,
|
||||
162,
|
||||
163,
|
||||
164,
|
||||
165,
|
||||
166,
|
||||
167,
|
||||
168,
|
||||
169,
|
||||
170,
|
||||
171,
|
||||
172,
|
||||
173,
|
||||
174,
|
||||
175,
|
||||
176,
|
||||
177,
|
||||
178,
|
||||
179,
|
||||
180,
|
||||
181,
|
||||
182,
|
||||
183,
|
||||
184,
|
||||
185,
|
||||
186,
|
||||
187,
|
||||
188,
|
||||
189,
|
||||
190,
|
||||
191,
|
||||
192,
|
||||
193,
|
||||
194,
|
||||
195,
|
||||
196,
|
||||
197,
|
||||
198,
|
||||
199,
|
||||
200,
|
||||
201,
|
||||
202,
|
||||
203,
|
||||
204,
|
||||
205,
|
||||
206,
|
||||
207,
|
||||
208,
|
||||
209,
|
||||
210,
|
||||
211,
|
||||
212,
|
||||
213,
|
||||
214,
|
||||
215,
|
||||
216,
|
||||
217,
|
||||
218,
|
||||
219,
|
||||
220,
|
||||
221,
|
||||
222,
|
||||
223,
|
||||
224,
|
||||
225,
|
||||
226,
|
||||
227,
|
||||
228,
|
||||
229,
|
||||
230,
|
||||
231,
|
||||
232,
|
||||
233,
|
||||
234,
|
||||
235,
|
||||
236,
|
||||
237,
|
||||
238,
|
||||
239,
|
||||
240,
|
||||
241,
|
||||
242,
|
||||
243,
|
||||
244,
|
||||
245,
|
||||
246,
|
||||
247,
|
||||
248,
|
||||
249,
|
||||
250,
|
||||
251,
|
||||
252,
|
||||
253,
|
||||
254,
|
||||
255,
|
||||
],
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
|
|
@ -6,16 +6,12 @@ expression: parse_ast
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 0..18,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 0..18,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "text more text",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "text more text",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
|
|
@ -6,16 +6,12 @@ expression: parse_ast
|
|||
Expr(
|
||||
StmtExpr {
|
||||
range: 0..18,
|
||||
value: Constant(
|
||||
ExprConstant {
|
||||
value: StringLiteral(
|
||||
ExprStringLiteral {
|
||||
range: 0..18,
|
||||
value: Str(
|
||||
StringConstant {
|
||||
value: "text more text",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
value: "text more text",
|
||||
unicode: false,
|
||||
implicit_concatenated: false,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue