Merge pull request #4389 from harupy/4384-follow-up

Follow-up for #4384
This commit is contained in:
Jim Fasarakis-Hilliard 2023-01-01 14:53:54 +02:00 committed by GitHub
commit e4d2344c41
14 changed files with 286 additions and 629 deletions

View file

@ -1,17 +1,17 @@
---
source: compiler/parser/src/fstring.rs
source: compiler/parser/src/string_parser.rs
expression: parse_ast
---
[
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 10,
},
),
custom: (),
@ -24,13 +24,13 @@ expression: parse_ast
},
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 10,
},
),
custom: (),
@ -43,13 +43,13 @@ expression: parse_ast
},
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 10,
},
),
custom: (),
@ -57,12 +57,12 @@ expression: parse_ast
value: Located {
location: Location {
row: 1,
column: 1,
column: 3,
},
end_location: Some(
Location {
row: 1,
column: 5,
column: 7,
},
),
custom: (),

View file

@ -1,17 +1,17 @@
---
source: compiler/parser/src/fstring.rs
source: compiler/parser/src/string_parser.rs
expression: parse_ast
---
[
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 38,
},
),
custom: (),
@ -24,13 +24,13 @@ expression: parse_ast
},
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 38,
},
),
custom: (),
@ -43,13 +43,13 @@ expression: parse_ast
},
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 38,
},
),
custom: (),
@ -62,13 +62,13 @@ expression: parse_ast
},
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 38,
},
),
custom: (),
@ -76,12 +76,12 @@ expression: parse_ast
value: Located {
location: Location {
row: 1,
column: 1,
column: 7,
},
end_location: Some(
Location {
row: 1,
column: 5,
column: 11,
},
),
custom: (),
@ -96,13 +96,13 @@ expression: parse_ast
},
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 38,
},
),
custom: (),
@ -115,13 +115,13 @@ expression: parse_ast
},
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 38,
},
),
custom: (),
@ -134,13 +134,13 @@ expression: parse_ast
},
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 38,
},
),
custom: (),
@ -153,13 +153,13 @@ expression: parse_ast
},
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 38,
},
),
custom: (),
@ -167,12 +167,12 @@ expression: parse_ast
value: Located {
location: Location {
row: 1,
column: 1,
column: 29,
},
end_location: Some(
Location {
row: 1,
column: 7,
column: 35,
},
),
custom: (),

View file

@ -1,17 +1,17 @@
---
source: compiler/parser/src/fstring.rs
source: compiler/parser/src/string_parser.rs
expression: parse_ast
---
[
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 14,
},
),
custom: (),
@ -24,13 +24,13 @@ expression: parse_ast
},
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 14,
},
),
custom: (),
@ -43,13 +43,13 @@ expression: parse_ast
},
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 14,
},
),
custom: (),
@ -57,12 +57,12 @@ expression: parse_ast
value: Located {
location: Location {
row: 1,
column: 1,
column: 3,
},
end_location: Some(
Location {
row: 1,
column: 5,
column: 7,
},
),
custom: (),
@ -75,13 +75,13 @@ expression: parse_ast
format_spec: Some(
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 14,
},
),
custom: (),
@ -89,13 +89,13 @@ expression: parse_ast
values: [
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 14,
},
),
custom: (),

View file

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

View file

@ -1,17 +1,17 @@
---
source: compiler/parser/src/fstring.rs
source: compiler/parser/src/string_parser.rs
expression: parse_ast
---
[
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 18,
},
),
custom: (),
@ -19,12 +19,12 @@ expression: parse_ast
value: Located {
location: Location {
row: 1,
column: 1,
column: 3,
},
end_location: Some(
Location {
row: 1,
column: 2,
column: 4,
},
),
custom: (),
@ -39,13 +39,13 @@ expression: parse_ast
},
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 18,
},
),
custom: (),
@ -53,12 +53,12 @@ expression: parse_ast
value: Located {
location: Location {
row: 1,
column: 2,
column: 7,
},
end_location: Some(
Location {
row: 1,
column: 3,
column: 8,
},
),
custom: (),
@ -73,13 +73,13 @@ expression: parse_ast
},
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 18,
},
),
custom: (),

View file

@ -1,17 +1,17 @@
---
source: compiler/parser/src/fstring.rs
source: compiler/parser/src/string_parser.rs
expression: parse_ast
---
[
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 13,
},
),
custom: (),
@ -19,12 +19,12 @@ expression: parse_ast
value: Located {
location: Location {
row: 1,
column: 1,
column: 3,
},
end_location: Some(
Location {
row: 1,
column: 9,
column: 11,
},
),
custom: (),
@ -32,12 +32,12 @@ expression: parse_ast
left: Located {
location: Location {
row: 1,
column: 1,
column: 3,
},
end_location: Some(
Location {
row: 1,
column: 3,
column: 5,
},
),
custom: (),
@ -55,12 +55,12 @@ expression: parse_ast
Located {
location: Location {
row: 1,
column: 7,
column: 9,
},
end_location: Some(
Location {
row: 1,
column: 9,
column: 11,
},
),
custom: (),

View file

@ -1,17 +1,17 @@
---
source: compiler/parser/src/fstring.rs
source: compiler/parser/src/string_parser.rs
expression: parse_ast
---
[
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 15,
},
),
custom: (),
@ -19,12 +19,12 @@ expression: parse_ast
value: Located {
location: Location {
row: 1,
column: 1,
column: 3,
},
end_location: Some(
Location {
row: 1,
column: 4,
column: 6,
},
),
custom: (),
@ -37,13 +37,13 @@ expression: parse_ast
format_spec: Some(
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 15,
},
),
custom: (),
@ -51,13 +51,13 @@ expression: parse_ast
values: [
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 15,
},
),
custom: (),
@ -65,12 +65,12 @@ expression: parse_ast
value: Located {
location: Location {
row: 1,
column: 1,
column: 8,
},
end_location: Some(
Location {
row: 1,
column: 5,
column: 12,
},
),
custom: (),

View file

@ -1,17 +1,17 @@
---
source: compiler/parser/src/fstring.rs
source: compiler/parser/src/string_parser.rs
expression: parse_ast
---
[
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 11,
},
),
custom: (),
@ -19,12 +19,12 @@ expression: parse_ast
value: Located {
location: Location {
row: 1,
column: 1,
column: 3,
},
end_location: Some(
Location {
row: 1,
column: 7,
column: 9,
},
),
custom: (),
@ -32,12 +32,12 @@ expression: parse_ast
left: Located {
location: Location {
row: 1,
column: 1,
column: 3,
},
end_location: Some(
Location {
row: 1,
column: 2,
column: 4,
},
),
custom: (),
@ -55,12 +55,12 @@ expression: parse_ast
Located {
location: Location {
row: 1,
column: 6,
column: 8,
},
end_location: Some(
Location {
row: 1,
column: 7,
column: 9,
},
),
custom: (),

View file

@ -1,17 +1,17 @@
---
source: compiler/parser/src/fstring.rs
source: compiler/parser/src/string_parser.rs
expression: parse_ast
---
[
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 13,
},
),
custom: (),
@ -19,12 +19,12 @@ expression: parse_ast
value: Located {
location: Location {
row: 1,
column: 1,
column: 3,
},
end_location: Some(
Location {
row: 1,
column: 4,
column: 6,
},
),
custom: (),
@ -37,13 +37,13 @@ expression: parse_ast
format_spec: Some(
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 13,
},
),
custom: (),
@ -51,13 +51,13 @@ expression: parse_ast
values: [
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 13,
},
),
custom: (),

View file

@ -1,17 +1,17 @@
---
source: compiler/parser/src/fstring.rs
source: compiler/parser/src/string_parser.rs
expression: parse_ast
---
[
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 10,
},
),
custom: (),
@ -24,13 +24,13 @@ expression: parse_ast
},
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 10,
},
),
custom: (),
@ -43,13 +43,13 @@ expression: parse_ast
},
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 10,
},
),
custom: (),
@ -57,12 +57,12 @@ expression: parse_ast
value: Located {
location: Location {
row: 1,
column: 1,
column: 3,
},
end_location: Some(
Location {
row: 1,
column: 2,
column: 4,
},
),
custom: (),

View file

@ -1,17 +1,17 @@
---
source: compiler/parser/src/fstring.rs
source: compiler/parser/src/string_parser.rs
expression: parse_ast
---
[
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 10,
},
),
custom: (),
@ -24,13 +24,13 @@ expression: parse_ast
},
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 10,
},
),
custom: (),
@ -43,13 +43,13 @@ expression: parse_ast
},
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 10,
},
),
custom: (),
@ -57,12 +57,12 @@ expression: parse_ast
value: Located {
location: Location {
row: 1,
column: 1,
column: 3,
},
end_location: Some(
Location {
row: 1,
column: 2,
column: 4,
},
),
custom: (),

View file

@ -1,17 +1,17 @@
---
source: compiler/parser/src/fstring.rs
source: compiler/parser/src/string_parser.rs
expression: parse_ast
---
[
Located {
location: Location {
row: 0,
row: 1,
column: 0,
},
end_location: Some(
Location {
row: 0,
column: 0,
row: 1,
column: 10,
},
),
custom: (),
@ -19,12 +19,12 @@ expression: parse_ast
value: Located {
location: Location {
row: 1,
column: 1,
column: 3,
},
end_location: Some(
Location {
row: 1,
column: 6,
column: 8,
},
),
custom: (),