Fix f-string regression

This commit is contained in:
Charles Marsh 2022-08-21 16:55:06 -04:00
parent fa2e69983f
commit 147187d18d
13 changed files with 37 additions and 24 deletions

View file

@ -1,5 +1,5 @@
---
source: parser/src/fstring.rs
source: compiler/parser/src/fstring.rs
expression: parse_ast
---
[

View file

@ -1,5 +1,5 @@
---
source: parser/src/fstring.rs
source: compiler/parser/src/fstring.rs
expression: parse_ast
---
[

View file

@ -1,5 +1,5 @@
---
source: parser/src/fstring.rs
source: compiler/parser/src/fstring.rs
expression: parse_ast
---
[

View file

@ -1,5 +1,5 @@
---
source: parser/src/fstring.rs
source: compiler/parser/src/fstring.rs
expression: "parse_fstring(\"\").unwrap()"
---
[]

View file

@ -1,5 +1,5 @@
---
source: parser/src/fstring.rs
source: compiler/parser/src/fstring.rs
expression: parse_ast
---
[

View file

@ -1,5 +1,5 @@
---
source: parser/src/fstring.rs
source: compiler/parser/src/fstring.rs
expression: parse_ast
---
[

View file

@ -1,5 +1,5 @@
---
source: parser/src/fstring.rs
source: compiler/parser/src/fstring.rs
expression: parse_ast
---
[
@ -37,11 +37,20 @@ expression: parse_ast
column: 0,
},
custom: (),
node: Constant {
value: Str(
"{ spec}",
),
kind: None,
node: FormattedValue {
value: Located {
location: Location {
row: 1,
column: 3,
},
custom: (),
node: Name {
id: "spec",
ctx: Load,
},
},
conversion: 0,
format_spec: None,
},
},
],

View file

@ -1,5 +1,5 @@
---
source: parser/src/fstring.rs
source: compiler/parser/src/fstring.rs
expression: parse_ast
---
[

View file

@ -1,5 +1,5 @@
---
source: parser/src/fstring.rs
source: compiler/parser/src/fstring.rs
expression: parse_ast
---
[

View file

@ -1,5 +1,5 @@
---
source: parser/src/fstring.rs
source: compiler/parser/src/fstring.rs
expression: parse_ast
---
[

View file

@ -1,5 +1,5 @@
---
source: parser/src/fstring.rs
source: compiler/parser/src/fstring.rs
expression: parse_ast
---
[

View file

@ -1,5 +1,5 @@
---
source: parser/src/fstring.rs
source: compiler/parser/src/fstring.rs
expression: parse_ast
---
[