Skip to content

Commit

Permalink
Update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvmanila committed Jun 27, 2024
1 parent a6f7939 commit e3020ef
Showing 1 changed file with 186 additions and 99 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,105 +11,141 @@ Module(
body: [
Expr(
StmtExpr {
range: 0..38,
range: 0..4,
value: FString(
ExprFString {
range: 0..38,
range: 0..4,
value: FStringValue {
inner: Concatenated(
[
FString(
FString {
range: 0..4,
elements: [
Expression(
FStringExpressionElement {
range: 2..3,
expression: Name(
ExprName {
range: 3..3,
id: "",
ctx: Invalid,
},
),
debug_text: None,
conversion: None,
format_spec: None,
},
),
],
flags: FStringFlags {
quote_style: Double,
prefix: Regular,
triple_quoted: false,
},
inner: Single(
FString(
FString {
range: 0..4,
elements: [
Expression(
FStringExpressionElement {
range: 2..3,
expression: Name(
ExprName {
range: 3..3,
id: "",
ctx: Invalid,
},
),
debug_text: None,
conversion: None,
format_spec: None,
},
),
],
flags: FStringFlags {
quote_style: Double,
prefix: Regular,
triple_quoted: false,
},
),
FString(
FString {
range: 5..14,
elements: [
Expression(
FStringExpressionElement {
range: 7..8,
expression: Name(
ExprName {
range: 8..8,
id: "",
ctx: Invalid,
},
),
debug_text: None,
conversion: None,
format_spec: None,
},
),
Literal(
FStringLiteralElement {
range: 8..13,
value: "foo!r",
},
),
],
flags: FStringFlags {
quote_style: Double,
prefix: Regular,
triple_quoted: false,
},
},
),
),
},
},
),
},
),
Expr(
StmtExpr {
range: 5..14,
value: FString(
ExprFString {
range: 5..14,
value: FStringValue {
inner: Single(
FString(
FString {
range: 5..14,
elements: [
Expression(
FStringExpressionElement {
range: 7..14,
expression: Name(
ExprName {
range: 8..11,
id: "foo",
ctx: Load,
},
),
debug_text: None,
conversion: None,
format_spec: None,
},
),
],
flags: FStringFlags {
quote_style: Double,
prefix: Regular,
triple_quoted: false,
},
),
FString(
FString {
range: 15..23,
elements: [
Expression(
FStringExpressionElement {
range: 17..22,
expression: Name(
ExprName {
range: 18..21,
id: "foo",
ctx: Load,
},
),
debug_text: Some(
DebugText {
leading: "",
trailing: "=",
},
),
conversion: None,
format_spec: None,
},
),
],
flags: FStringFlags {
quote_style: Double,
prefix: Regular,
triple_quoted: false,
},
},
),
),
},
},
),
},
),
Expr(
StmtExpr {
range: 15..23,
value: FString(
ExprFString {
range: 15..23,
value: FStringValue {
inner: Single(
FString(
FString {
range: 15..23,
elements: [
Expression(
FStringExpressionElement {
range: 17..22,
expression: Name(
ExprName {
range: 18..21,
id: "foo",
ctx: Load,
},
),
debug_text: Some(
DebugText {
leading: "",
trailing: "=",
},
),
conversion: None,
format_spec: None,
},
),
],
flags: FStringFlags {
quote_style: Double,
prefix: Regular,
triple_quoted: false,
},
),
},
),
),
},
},
),
},
),
Expr(
StmtExpr {
range: 24..37,
value: FString(
ExprFString {
range: 24..37,
value: FStringValue {
inner: Concatenated(
[
FString(
FString {
range: 24..28,
Expand Down Expand Up @@ -139,7 +175,7 @@ Module(
),
FString(
FString {
range: 29..38,
range: 29..37,
elements: [
Expression(
FStringExpressionElement {
Expand Down Expand Up @@ -187,8 +223,42 @@ Module(

|
1 | f"{"
| Syntax Error: f-string: unterminated string
2 | f"{foo!r"
3 | f"{foo="
|


|
1 | f"{"
| Syntax Error: f-string: unterminated string
2 | f"{foo!r"
| ^^ Syntax Error: Expected FStringEnd, found FStringStart
3 | f"{foo="
|


|
1 | f"{"
2 | f"{foo!r"
| ^^ Syntax Error: missing closing quote in string literal
3 | f"{foo="
4 | f"{"
|


|
1 | f"{"
2 | f"{foo!r"
| Syntax Error: f-string: unterminated string
3 | f"{foo="
4 | f"{"
|


|
1 | f"{"
2 | f"{foo!r"
| Syntax Error: f-string: unterminated string
3 | f"{foo="
4 | f"{"
|
Expand All @@ -197,7 +267,17 @@ Module(
|
1 | f"{"
2 | f"{foo!r"
| ^^^^^ Syntax Error: Expected an expression
3 | f"{foo="
| ^^ Syntax Error: f-string: expecting '}'
4 | f"{"
5 | f"""{"""
|


|
1 | f"{"
2 | f"{foo!r"
| Syntax Error: Expected FStringEnd, found Unknown
3 | f"{foo="
4 | f"{"
|
Expand All @@ -214,40 +294,47 @@ Module(


|
1 | f"{"
2 | f"{foo!r"
3 | f"{foo="
| Syntax Error: f-string: unterminated string
4 | f"{"
| ^^ Syntax Error: Expected FStringEnd, found FStringStart
5 | f"""{"""
|


|
1 | f"{"
2 | f"{foo!r"
3 | f"{foo="
| Syntax Error: f-string: unterminated string
4 | f"{"
| ^ Syntax Error: Expected an expression
5 | f"""{"""
|


|
2 | f"{foo!r"
3 | f"{foo="
4 | f"{"
| ^ Syntax Error: missing closing quote in string literal
5 | f"""{"""
|______^
|


|
3 | f"{foo="
4 | f"{"
5 | f"""{"""
| ^^^^ Syntax Error: Expected FStringEnd, found FStringStart
|


|
3 | f"{foo="
4 | f"{"
5 | f"""{"""
| ^^^ Syntax Error: Expected an expression
|


Expand Down

0 comments on commit e3020ef

Please sign in to comment.